Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 00:00:26 +0100
From:      Dimitry Andric <dimitry@andric.com>
To:        Joan Picanyol <lists-freebsd-stable@biaix.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: buildworld needs root privileges?
Message-ID:  <1194477750.20041110000026@andric.com>
In-Reply-To: <20041109190057.GA99585@grummit.biaix.org>
References:  <20041109190057.GA99585@grummit.biaix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
------------E7B9662639A916
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

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

>=3D=3D=3D>> 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:

=3D=3D=3D> games/fortune/strfile
/usr/obj/usr/src/i386/usr/src/games/fortune/strfile created for /usr/src/ga=
mes/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/f=
ortune/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

------------E7B9662639A916
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFBkUwJsF6jCi4glqMRAvplAKC+58suuTXXzo3CXekSvzLmGt3yzQCgtDVo
uTMV3l/xhcde3hSblDv36t4=
=26Nz
-----END PGP MESSAGE-----

------------E7B9662639A916--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1194477750.20041110000026>