Date: Wed, 13 Nov 2002 18:22:59 +0100 From: Morten Grunnet Buhl <no-spam@deter.dk> To: freebsd-questions@freebsd.org Subject: Buildworld as root??? Message-ID: <20021113172259.GA76179@deter.dk>
next in thread | raw e-mail | index | archive | help
So we meet again.... In all my life (with FreeBSD) I have always happily buildworld as an non privileged user (operator). But today I cvsup'ed from cvsup.dk.FreeBSD.org and committed the build with: mgb@nautilus:/usr/src> sudo -u operator make buildworld But instead of going to work as it used to it stops fairly quickly with the message <SNIP> -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- rm -rf /usr/obj/usr/src/i386 mkdir -p /usr/obj/usr/src/i386/usr/bin mkdir -p /usr/obj/usr/src/i386/usr/lib/compat/aout mkdir -p /usr/obj/usr/src/i386/usr/games mkdir -p /usr/obj/usr/src/i386/usr/libdata/ldscripts mkdir -p /usr/obj/usr/src/i386/usr/libexec/elf mkdir -p /usr/obj/usr/src/i386/usr/sbin mkdir -p /usr/obj/usr/src/i386/usr/share/misc mkdir -p /usr/obj/usr/src/i386/usr/share/dict mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devX100 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devX100-12 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devX75 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devX75-12 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devascii mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devcp1047 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devdvi mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devhtml mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devkoi8-r mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devlatin1 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devlbp mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devlj4 mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devps mkdir -p /usr/obj/usr/src/i386/usr/share/groff_font/devutf8 mkdir -p /usr/obj/usr/src/i386/usr/share/tmac/mdoc mkdir -p /usr/obj/usr/src/i386/usr/share/tmac/mm mkdir -p /usr/obj/usr/src/i386/usr/include/arpa mkdir -p /usr/obj/usr/src/i386/usr/include/dev mkdir -p /usr/obj/usr/src/i386/usr/include/fs mkdir -p /usr/obj/usr/src/i386/usr/include/g++/std mkdir -p /usr/obj/usr/src/i386/usr/include/isc mkdir -p /usr/obj/usr/src/i386/usr/include/isofs mkdir -p /usr/obj/usr/src/i386/usr/include/libmilter mkdir -p /usr/obj/usr/src/i386/usr/include/objc mkdir -p /usr/obj/usr/src/i386/usr/include/openssl mkdir -p /usr/obj/usr/src/i386/usr/include/protocols mkdir -p /usr/obj/usr/src/i386/usr/include/readline mkdir -p /usr/obj/usr/src/i386/usr/include/rpc mkdir -p /usr/obj/usr/src/i386/usr/include/rpcsvc mkdir -p /usr/obj/usr/src/i386/usr/include/security mkdir -p /usr/obj/usr/src/i386/usr/include/ufs ln -sf /usr/src/sys /usr/obj/usr/src/i386 -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/i386 DESTDIR= INSTALL="sh /usr/src/tools/install.sh" make -f Makefile.inc1 -DBOOTSTRAPPING -DNOHTML -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED -DNO_WERROR bootstrap-tools echo "===> games/fortune/strfile"; cd /usr/src/games/fortune/strfile; make DIRPRFX=games/fortune/strfile/ obj; make DIRPRFX=games/fortune/strfile/ depend; make DIRPRFX=games/fortune/strfile/ all; make DIRPRFX=games/fortune/strfile/ DESTDIR=/usr/obj/usr/src/i386 install ===> 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 -D__FBSDID=__RCSID /usr/src/games/fortune/strfile/strfile.c echo strfile: /usr/lib/libc.a >> .depend cc -O -pipe -Wall -D__FBSDID=__RCSID -c /usr/src/games/fortune/strfile/strfile.c cc -O -pipe -Wall -D__FBSDID=__RCSID -static -o strfile strfile.o install -C -s -o root -g wheel -m 555 strfile /usr/obj/usr/src/i386/usr/games install: /usr/obj/usr/src/i386/usr/games/strfile: chown/chgrp: Operation not permitted *** Error code 71 Stop in /usr/src/games/fortune/strfile. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. </SNIP> My make.conf file includes these configurations <SNIP> #KERNCONF=NAUTILUS DETER JUKEBOX BUFFY INSTALLKERNEL=NAUTILUS CFLAGS= -O -pipe INSTALL="install -C" NOPROFILE= true NO_SENDMAIL= true NO_BIND=true BOOTWAIT= 30000 MAKE_KERBEROS5= yes DOC_LANG= en_US.ISO8859-1 </SNIP> I used to have the COPY in the file but as mentioned in UPDATING I switch to INSTALL="install -C", and this is what is causing th problems. I tried commenting it out and the world compiles fine. uname: FreeBSD nautilus.deter.dk 4.6-STABLE FreeBSD 4.6-STABLE #6: Mon Aug 5 13:12:41 CEST 2002 operator@nautilus.deter.dk:/usr/obj/usr/src/sys/NAUTILUS i386 Now to my question('s): Why does the flag INSTALL="install -C" have influence on the buildworld? And am I doing something wrong or do you really have to be root to do a buildworld with the INSTALL="install -C" flag? I hope anyone can clarify this for me. TIA Morten. -- DetEr.dk - Rules are made to control the fun. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021113172259.GA76179>