Date: Fri, 13 Nov 2015 17:48:04 -0800 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Konstantin Belousov <kostikbel@gmail.com>, Ian Lepore <ian@freebsd.org> Cc: Chris H <bsd-lists@bsdforge.com>, freebsd-current@freebsd.org Subject: Re: buildworld broken Message-ID: <564692D4.3050307@FreeBSD.org> In-Reply-To: <20151110063106.GJ2257@kib.kiev.ua> References: <20151101164707.GA5847@troutmask.apl.washington.edu> <CD2B8B15-BFD7-48AA-BFAA-41BFE48635D7@gmail.com> <20151108182817.GA49944@troutmask.apl.washington.edu> <e066bd38f8b8bb46c5022ad6fbce3c3e@ultimatedns.net> <1447091772.91534.483.camel@freebsd.org> <20151110063106.GJ2257@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 11/9/2015 10:31 PM, Konstantin Belousov wrote:
>> In 19 years of using freebsd, I have never once needed to chflags on an
>> obj directory. Nothing in the build process sets any non-standard
>> flags in the obj dirs, and a simple rm -rf will remove everything just
>> fine (you would need to sudo the rm -rf if you built as root).
> You do not build amd64 as root, do you ?
>
> pooma% ls -lo obj-amd64/usr/home/kostik/work/build/bsd/DEV/src/lib32/usr/lib32/libc.so.7
> -r--r--r-- 1 root wheel schg 1429600 Oct 24 23:23 obj-amd64/usr/home/kostik/work/build/bsd/DEV/src/lib32/usr/lib32/libc.so.7
>
> This is an annoyance with COMPAT32 build which existed forewer.
r290812 should fix this.
I was not able to reproduce though.
Do you have INSTALL defined in your /etc/make.conf?
Before the fix I had during buildworld:
sh /root/svn/base/tools/install.sh -o root -g wheel -m 444 -fschg -S
libthr.so.3 /usr/obj/root/svn/base/lib32/usr/lib32/
It does pass the -fschg flag to install, but it is also using the
install.sh script which just eats the -f flag. The result is:
-rwxr-xr-x 1 root wheel uarch 122069 Nov 13 16:36
/usr/obj/root/svn/base/lib32/usr/lib32/libthr.so.3*
I find no schg on libc.so.7 either:
> ~/svn/base # find /usr/obj/root/svn/base -name libc.so.7 -exec ls -alo {} +
> -rw-r--r-- 1 root wheel uarch 1872397 Nov 13 16:13 /usr/obj/root/svn/base/lib/libc/libc.so.7
> -rwxr-xr-x 1 root wheel uarch 1604846 Nov 13 16:35 /usr/obj/root/svn/base/lib32/usr/lib32/libc.so.7
> -rwxr-xr-x 1 root wheel uarch 1872397 Nov 13 16:13 /usr/obj/root/svn/base/tmp/lib/libc.so.7
> -rw-r--r-- 1 root wheel uarch 1604846 Nov 13 16:35 /usr/obj/root/svn/base/world32/root/svn/base/lib/libc/libc.so.7
With the fix the -fschg is removed for the objtree install:
sh /root/svn/base/tools/install.sh -o root -g wheel -m 444 -S
libc.so.7 /usr/obj/root/svn/base/lib32/usr/lib32/
All is fine in the DESTDIR still:
~/svn/base # make installworld -j15 DESTDIR=/tmp/blah
...
~/svn/base # ls -alo /tmp/blah/{usr/,}lib*/libc.so.7
-r--r--r-- 1 root wheel schg 1872397 Nov 13 17:41 /tmp/blah/lib/libc.so.7
-r--r--r-- 1 root wheel schg 1604846 Nov 13 17:42
/tmp/blah/usr/lib32/libc.so.7
--
Regards,
Bryan Drewery
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBAgAGBQJWRpLUAAoJEDXXcbtuRpfPnGIIAIWOMaUmzIEUB6mtlBMaUhUa
uL1f7K6HkPl2zGzg0n860DMp3muQ95T6AQSNJYBTulBwc+oL/bZY47xy2mVcKtAJ
5rHoxlawQLSK5TH95tsrfqqzJZOYR6XXVuSc0wNodq5F5Ro71WUDEX4bu5xjK4ek
7hNqcab5GHOtw9zKS1mo13oOq+kmRomq7xW2DRd/K4MmWA0QHvfGizjbo8f723kr
6W042wRWqBVT0YZ2VbLxkyKoGbMLVj5ixDuagFMmWXDyBEWEJnvUI6H2sWu2YXsn
4nYBc+7Lq7nKPK3DkzsUnI3nQ+dVLmPOHooGc/N3kTAv1gcXjEYJenf4Fpsl2bI=
=00q8
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?564692D4.3050307>
