-- William Gibson, All Tomorrow's Parties
Recently I moved our x86-64 pkgsrc build zone to another system. When I did so, I had forgotten I had built the original zone as full, to get around an annoying
install(1M) bug. Basically, when you tried to build a package, it would attempt to recursively
mkdir /usr/pkg. On sparse zones,
/usr is shared read-only from the global zone.
So the install would fail, because it couldn't create
/usr for obvious reasons. At the time, I thought I had tried various
install programs, but given that the problem was being re-addressed and I didn't feel like reprovisioning a zone, I figured I would tackle it again.
After some minor discussion on
#pkgsrc and grepping through
mk/ I "discovered" the following variable:
mk.conf and all is good. Mainly because
ginstall actually uses
mkdir -p, so...
The contents of
pkgsrc/mk/platform/ are very useful if you aren't on NetBSD.