3 May 2002 03:16
Re: UNPRIVED & DESTDIR
Luke Mewburn <lukem <at> wasabisystems.com>
2002-05-03 01:16:09 GMT
2002-05-03 01:16:09 GMT
On Tue, Apr 23, 2002 at 03:02:47PM +0100, Richard Earnshaw wrote: | Hmm, it seems that the build system doesn't fault attempts to do an | UNPRIVED build into /, at least, it still continues to pass the options to | install to update the METALOG file. | | Does install still attempt to correctly set the install flags in this | case, or should the Makefiles be altered to fault this case? | | Is there any way to force a privileged re-install into / after an unprived | build? UNPRIVED is only tested for being defined, not for its value, so | it isn't possible to override the setting through the nbmake-wrapper prog. If you've built UNPRIVED into a DESTDIR, you can use something like the following to copy all the files under DESTDIR into / except for those in ./etc and ./var, retaining the privileges: # cd $DESTDIR # ( cat etc/mtree/NetBSD.dist $MAKEOBJDIRPREFIX/usr/src/METALOG ) | \ sed -e "s,^.$DESTDIR,.,' | \ egrep -v '^./(etc|var)/' | \ nbpax -rwMvpe / (change the path to the METALOG as appropriate) Of course, your mileage may vary, use at your own risk, (...) Luke.
(but the copy I had access to wouldn't have handles the METALOG
files from build either).
I've also got a script to merge two (sorted) metalog files...
FWIW there is still a bug in the METALOG file - the permissions
for archive libraries are incorrect [1]. pax won't find this
because it leaves the existing permissions on existing files.
David
RSS Feed