Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 2004 14:20:36 +0200
From:      Ruslan Ermilov <ru@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: buildworld fails as non-root user
Message-ID:  <20040216122036.GB16772@FreeBSD.org.ua>
In-Reply-To: <20040216115323.GA94120@grummit.biaix.org>
References:  <20040216115323.GA94120@grummit.biaix.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--+pHx0qQiF2pBVqBT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 16, 2004 at 12:53:23PM +0100, Joan Picanyol wrote:
> Hi,
>=20
> I can't buildworld as a regular user with a clean /usr/obj:
>=20
> building static egacy library
> ranlib libegacy.a
> install -C -C -o root -g wheel -m 444   libegacy.a /usr/obj/usr/src/i386/=
legacy/usr/lib
> install: /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a: chown/chgrp: Op=
eration not permitted
> *** Error code 71
> =20
> Stop in /usr/src/tools/build.
> *** Error code 1
> =20
> Stop in /usr/src.
> *** Error code 1
> =20
> Stop in /usr/src.
> *** Error code 1
> =20
> Stop in /usr/src.
>=20
> Before Stage 1.1 I also see a bunch of 'Operation not permitted' errors:
>=20
> mtree -deU -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/obj/usr/src/i3=
86/usr/include
> . changed
>         user expected 0 found 1000 not modified: Operation not permitted
>         permissions expected 0755 found 0700 modified
> ./arpa missing (created)
> ./arpa: user/group/mode not modified: Operation not permitted
> ./arpa: warning: file mode not set
> ./bsnmp missing (created)
> ./bsnmp: user/group/mode not modified: Operation not permitted
> ./bsnmp: warning: file mode not set
> ./c++ missing (created)
> ./c++/3.3 missing (created)
> ./c++/3.3/backward missing (created)
> ./c++/3.3/backward: user/group/mode not modified: Operation not permitted
> ./c++/3.3/backward: warning: file mode not set
> [...]
> ./sys missing (created)
> ./sys: user/group/mode not modified: Operation not permitted
> ./sys: warning: file mode not set
> ./ufs missing (created)
> ./ufs/ffs missing (created)
> ./ufs/ffs: user/group/mode not modified: Operation not permitted
> ./ufs/ffs: warning: file mode not set
> ./ufs/ufs missing (created)
> ./ufs/ufs: user/group/mode not modified: Operation not permitted
> ./ufs/ufs: warning: file mode not set
> ./ufs: user/group/mode not modified: Operation not permitted
> ./ufs: warning: file mode not set
> ./vm missing (created)
> ./vm: user/group/mode not modified: Operation not permitted
> ./vm: warning: file mode not set
> ln -sf /usr/src/sys /usr/obj/usr/src/i386
>=20
> Is this expected behaviour? Is there a workaround?
>=20
It should work.  It works here:

building static egacy library
ranlib libegacy.a
sh /usr/src/tools/install.sh -C -o root -g wheel -m 444   libegacy.a /home/=
ru/obj/usr/src/i386/legacy/usr/lib

Note the difference: it uses "sh /usr/src/tools/install.sh" as
a replacement for install(1) which in effect strips out options
like -o and -g.

Work around: take out "INSTALL=3D install -C" from /etc/make.conf.

Solution: file a PR so I can deal with this later, by fixing
src/Makefile.inc1 appropriately.


Cheers,
--=20
Ruslan Ermilov
FreeBSD committer
ru@FreeBSD.org

--+pHx0qQiF2pBVqBT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAMLWTUkv4P6juNwoRAmCEAJ9nwrMVoaeUYkgJP3GmviSyZdA33wCeOWdR
S55/5qJedl5ViRWdUkuJVIg=
=8OoX
-----END PGP SIGNATURE-----

--+pHx0qQiF2pBVqBT--



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