From owner-freebsd-current@FreeBSD.ORG Thu Dec 9 13:11:01 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8201E1065672 for ; Thu, 9 Dec 2010 13:11:01 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 033E78FC14 for ; Thu, 9 Dec 2010 13:11:00 +0000 (UTC) X-Spam-Status: No X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.9, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: oB9CvH0B027821 Received: from gkeramidas-glaptop.linux.gr ([74.125.57.36]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.4) with ESMTP id oB9CvH0B027821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 9 Dec 2010 14:57:25 +0200 From: Giorgos Keramidas To: Etienne Robillard References: <4D00CDCE.8040509@gthcfoundation.org> Date: Thu, 09 Dec 2010 13:57:16 +0100 In-Reply-To: <4D00CDCE.8040509@gthcfoundation.org> (Etienne Robillard's message of "Thu, 09 Dec 2010 07:38:38 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-current@freebsd.org Subject: Re: shared lib issue in /usr/obj? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 13:11:01 -0000 On Thu, 09 Dec 2010 07:38:38 -0500, Etienne Robillard wrote: > Hi > > $ sudo rm -rf /usr/obj/* > rm: /usr/obj/usr/local/freebsd8/src/lib32/usr/lib32/libc.so.7: Operation > not permitted > rm: /usr/obj/usr/local/freebsd8/src/lib32/usr/lib32/libcrypt.so.5: > Operation not permitted > rm: /usr/obj/usr/local/freebsd8/src/lib32/usr/lib32/libthr.so.3: > Operation not permitted > rm: /usr/obj/usr/local/freebsd8/src/lib32/usr/lib32/librt.so.1: > Operation not permitted > rm: /usr/obj/usr/local/freebsd8/src/lib32/usr/lib32: Directory not empty > rm: /usr/obj/usr/local/freebsd8/src/lib32/usr: Directory not empty > rm: /usr/obj/usr/local/freebsd8/src/lib32: Directory not empty > rm: /usr/obj/usr/local/freebsd8/src: Directory not empty > rm: /usr/obj/usr/local/freebsd8: Directory not empty > rm: /usr/obj/usr/local: Directory not empty > rm: /usr/obj/usr: Directory not empty > $ uname -a > FreeBSD marina 8.1-STABLE FreeBSD 8.1-STABLE #1: Sun Nov 21 00:48:28 EST > 2010 root@:/usbj/usr/local/freebsd8/src/sys/GENERIC.ndebug amd64 > > Is this a corrupted obj directory ? If so, why should theses libs have > the schg flag enabled? > $ sudo ls -lao /usr/obj/usr/local/freebsd8/src/lib32/usr/lib32/ > total 2520 > drwxr-xr-x 2 root wheel - 12288 Dec 9 07:24 . > drwxr-xr-x 3 root wheel - 512 Dec 9 07:25 .. > -r--r--r-- 1 root wheel schg 1128116 Nov 21 02:15 libc.so.7 > -r--r--r-- 1 root wheel schg 32060 Nov 21 02:18 libcrypt.so.5 > -r--r--r-- 1 root wheel schg 16444 Nov 21 02:27 librt.so.1 > -r--r--r-- 1 root wheel schg 76668 Nov 21 02:19 libthr.so.3 They are installed with "make install" and when you run "make install" with PRECIOUSLIB defined, bsd.lib.mk adds this to SHINSTALLFLAGS: .if defined(PRECIOUSLIB) .if !defined(NO_FSCHG) SHLINSTALLFLAGS+= -fschg .endif SHLINSTALLFLAGS+= -S .endif The Makefiles that set PRECIOUSLIB today are: keramida@bokos:/usr/src$ grep -r 'PRECIOUSLIB.*=' * lib/libc/Makefile:PRECIOUSLIB= lib/libcrypt/Makefile:PRECIOUSLIB= lib/libkse/Makefile:PRECIOUSLIB= lib/librt/Makefile:PRECIOUSLIB= lib/libthr/Makefile:PRECIOUSLIB= keramida@bokos:/usr/src$