buildworld needs root privileges?

Dimitry Andric dimitry at andric.com
Tue Nov 9 15:00:39 PST 2004


On 2004-11-09 at 20:00:57 Joan Picanyol wrote:

>===>> games/fortune/strfile
...
> sh /usr/src/tools/install.sh "" -o root -g wheel -m 555   strfile
> /usr/obj/usr/src/i386/legacy/usr/games
> install: /usr/obj/usr/src/i386/legacy/usr/games/strfile:
> chown/chgrp: Operation not permitted
> *** Error code 71

This is actually a quirk of the install.sh script that is used.  It
discards any unwanted install options (see the script itself for the
details), but that fails if the first argument is "", as it is in your
case.

It seems install.sh is run from bsd.prog.mk, as follows:

        ${INSTALL} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
            ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${BINDIR}

So I guess that you've managed to set ${STRIP} to "", for some reason.
Try unsetting it, or setting it to -s if you like, and run buildworld
again.

As a comparison, here's part of a (successful) buildworld log from one
of my machines, from today:

===> games/fortune/strfile
/usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for /usr/src/games/fortune/strfile
rm -f .depend
mkdep -f .depend -a    -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/games/fortune/strfile/strfile.c
echo strfile: /usr/lib/libc.a /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend
cc -O -pipe  -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c
cc -O -pipe  -I/usr/obj/usr/src/i386/legacy/usr/include  -static -L/usr/obj/usr/src/i386/legacy/usr/lib -o strfile strfile.o -le
sh /usr/src/tools/install.sh -s -o root -g wheel -m 555   strfile /usr/obj/usr/src/i386/legacy/usr/games
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041110/2c7a54c3/attachment.bin


More information about the freebsd-stable mailing list