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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Mon, Feb 16, 2004 at 12:53:23PM +0100, Joan Picanyol wrote: > Hi, > > I can't buildworld as a regular user with a clean /usr/obj: > > 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: Operation not permitted > *** Error code 71 > > Stop in /usr/src/tools/build. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > Before Stage 1.1 I also see a bunch of 'Operation not permitted' errors: > > mtree -deU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/obj/usr/src/i386/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 > > Is this expected behaviour? Is there a workaround? > 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= install -C" from /etc/make.conf. Solution: file a PR so I can deal with this later, by fixing src/Makefile.inc1 appropriately. Cheers, -- Ruslan Ermilov FreeBSD committer ru@FreeBSD.org [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAMLWTUkv4P6juNwoRAmCEAJ9nwrMVoaeUYkgJP3GmviSyZdA33wCeOWdR S55/5qJedl5ViRWdUkuJVIg= =8OoX -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040216122036.GB16772>
