Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2010 15:15:02 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-current@freebsd.org, Etienne Robillard <erob@gthcfoundation.org>
Subject:   Re: shared lib issue in /usr/obj?
Message-ID:  <20101209131502.GM33073@deviant.kiev.zoral.com.ua>
In-Reply-To: <xeiay67zhzo3.fsf@kobe.laptop>
References:  <4D00CDCE.8040509@gthcfoundation.org> <xeiay67zhzo3.fsf@kobe.laptop>

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

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

On Thu, Dec 09, 2010 at 01:57:16PM +0100, Giorgos Keramidas wrote:
> On Thu, 09 Dec 2010 07:38:38 -0500, Etienne Robillard <erob@gthcfoundatio=
n.org> 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?
>=20
> > $ 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
>=20
> They are installed with "make install" and when you run "make install"
> with PRECIOUSLIB defined, bsd.lib.mk adds this to SHINSTALLFLAGS:
>=20
>   .if defined(PRECIOUSLIB)
>   .if !defined(NO_FSCHG)
>   SHLINSTALLFLAGS+=3D -fschg
>   .endif
>   SHLINSTALLFLAGS+=3D -S
>   .endif
>=20
> The Makefiles that set PRECIOUSLIB today are:
>=20
>   keramida@bokos:/usr/src$ grep -r 'PRECIOUSLIB.*=3D' *
>   lib/libc/Makefile:PRECIOUSLIB=3D
>   lib/libcrypt/Makefile:PRECIOUSLIB=3D
>   lib/libkse/Makefile:PRECIOUSLIB=3D
>   lib/librt/Makefile:PRECIOUSLIB=3D
>   lib/libthr/Makefile:PRECIOUSLIB=3D
>   keramida@bokos:/usr/src$
Would be nice if lib32 installation into the obj/ area somehow eliminated
the setting of schg flag. There is no reason to have schg set on files in
obj.

--fNagykWcDoSVAmSd
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAk0A1lYACgkQC3+MBN1Mb4hA0wCcDfDnPodC454AAwOEILGct/s1
L8gAoPEvN5VOUPjZPFfg9Ak+wfXsnP5T
=6+ix
-----END PGP SIGNATURE-----

--fNagykWcDoSVAmSd--



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