From owner-freebsd-ports@FreeBSD.ORG Wed Apr 17 13:52:45 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C2CF44C2 for ; Wed, 17 Apr 2013 13:52:45 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay009.isp.belgacom.be (mailrelay009.isp.belgacom.be [195.238.6.176]) by mx1.freebsd.org (Postfix) with ESMTP id 04767A41 for ; Wed, 17 Apr 2013 13:52:44 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmwGAM6oblFR8npE/2dsb2JhbABQgwY2wQyBAxd0gh8BAQVWIgEQCxgJDQEIDwkDAgECASceBg0BBQIBAYgUvUqNdYElBwkJAYMzA49VgSmQA4cZgw06gTAHFw Received: from 68.122-242-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.242.122.68]) by relay.skynet.be with ESMTP; 17 Apr 2013 15:52:12 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.6/8.14.6) with ESMTP id r3HDqAbR061864; Wed, 17 Apr 2013 15:52:12 +0200 (CEST) (envelope-from tijl@coosemans.org) Message-ID: <516EA904.2040403@coosemans.org> Date: Wed, 17 Apr 2013 15:52:04 +0200 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130408 Thunderbird/17.0.5 MIME-Version: 1.0 To: David Wolfskill Subject: Re: Succsessful Upgrade linux_base-f10-10_6 seems to break... a lot References: <20130417133705.GA1404@albert.catwhisker.org> In-Reply-To: <20130417133705.GA1404@albert.catwhisker.org> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2FLBJXWUARSGMWDXBKVUH" Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Apr 2013 13:52:45 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2FLBJXWUARSGMWDXBKVUH Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-04-17 15:37, David Wolfskill wrote: > I updated FreeBSD on my laptop from: >=20 > FreeBSD g1-227.catwhisker.org 9.1-STABLE FreeBSD 9.1-STABLE #427 r2495= 34M/249542:901504: Tue Apr 16 04:46:43 PDT 2013 root@g1-227.catwhiske= r.org:/usr/obj/usr/src/sys/CANARY i386 >=20 > to: >=20 > FreeBSD g1-227.catwhisker.org 9.1-STABLE FreeBSD 9.1-STABLE #428 r2495= 61M/249581:901504: Wed Apr 17 04:52:06 PDT 2013 root@g1-227.catwhiske= r.org:/usr/obj/usr/src/sys/CANARY i386 >=20 > as I normally do each day. This was uneventful. >=20 > I also updated /usr/ports to r315956. >=20 > On reboot, I then issued: >=20 > sudo script -a portmaster portmaster -ad --index >=20 > which requested an OK for upgrading: >=20 > =3D=3D=3D>>> The following actions will be taken if you choose to proce= ed: > Upgrade linux_base-f10-10_5 to linux_base-f10-10_6 > Upgrade tcl-8.5.13 to tcl-8.5.14 > Upgrade sudo-1.8.6.p7 to sudo-1.8.6.p8 > Upgrade tk-8.5.13 to tk-8.5.14 >=20 > =3D=3D=3D>>> Proceed? y/n [y]=20 >=20 > (to which I assented). >=20 > It subsequently reported: >=20 > =3D=3D=3D>>> Done displaying pkg-message files >=20 > (END)^M=3D=3D=3D>>> The following actions were performed: > Upgrade of linux_base-f10-10_5 to linux_base-f10-10_6 > Upgrade of tcl-8.5.13 to tcl-8.5.14 > Upgrade of sudo-1.8.6.p7 to sudo-1.8.6.p8 > Upgrade of tk-8.5.13 to tk-8.5.14 >=20 > =3D=3D=3D>>> Exiting >=20 >=20 > I then found that any attempt of mine to invoke csh (my login shell) > reported errors -- e.g.: >=20 > g1-227(9.1-S)[3] csh > ELF interpreter /lib/ld-linux.so.2 not found > Abort > ELF interpreter /lib/ld-linux.so.2 not found > Abort > ELF interpreter /lib/ld-linux.so.2 not found > Abort > g1-227(9.1-S)[1]=20 >=20 >=20 > I found similar issues invoking commands such as "cat", "mkdir", "rm", > "grep".... >=20 > I was able to examine the most recent svn log entry for > ports/emulators/linux_base-f10/Makefile: >=20 > -----------------------------------------------------------------------= - > r315899 | tijl | 2013-04-16 13:38:06 -0700 (Tue, 16 Apr 2013) | 8 lines= >=20 > Add some symlinks to linux_base-f10 for executables that exist in /usr/= bin > on Linux but /bin on FreeBSD. This guarantees that Linux shell scripts = run > the Linux executables and not the FreeBSD ones. >=20 > No objection from: -emulation > PR: ports/176819 > Feature safe: yes >=20 > -----------------------------------------------------------------------= - >=20 > Based on that, I made a list of entries now in /usr/local/bin that > file(1) identified as "GNU/Linux" binaries that I desperately needed > to work, and moved those to the newly-created /usr/local/bin/.broken_li= nux: >=20 > arch cut link nice sync > basename date ln pwd touch > cat dd ls rm true > chgrp echo mkdir rmdir uname > chmod env mknod sleep unlink > chown false mktemp sort > cp grep mv stty >=20 > That seems to have somewhat-mitigated the damage, but I'm still seeing > a fair number of errors. >=20 > I tried backing the Makefile down to r315898 and asking portmaster > to re-install it, but that attempt generates lots of: >=20 > ... > =3D> SHA256 Checksum OK for rpm/i386/fedora/10/slang-2.1.4-1.fc10.i386.= rpm. > =3D> SHA256 Checksum OK for rpm/i386/fedora/10/zlib-1.2.3-18.fc9.i386.r= pm. > =3D=3D=3D> linux_base-f10-10_5 depends on file: /usr/local/bin/rpm2cp= io - found > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Segmentation fault (core dumped) > .... >=20 > and dies. >=20 >=20 > I tried to find ld-linux.so\*; it seems to now be in /usr/local/lib, > rather than /compat/linux/lib. Is that intended? After I created a > symlink in /compat/linux/lib for ld-linux.so.2, I now see a different > error when starting csh: >=20 > g1-227(9.1-S)[3] csh > test: error while loading shared libraries: libc.so.6: cannot open shar= ed object file: No such file or directory > test: error while loading shared libraries: libc.so.6: cannot open shar= ed object file: No such file or directory > expr: error while loading shared libraries: libc.so.6: cannot open shar= ed object file: No such file or directory > g1-227(9.1-S)[1]=20 >=20 > OK; I see that libc.so.6 has also moved, so creating a symlink in > /compat/linux/lib (pointing to its new location in /usr/loical/lib) > seems to allow me to invoke csh without whines (even after moving > the binaries back to /usr/local/bin from their place of exile): >=20 > g1-227(9.1-S)[5] csh > g1-227(9.1-S)[1] echo $? > 0 > g1-227(9.1-S)[2]=20 >=20 >=20 >=20 > OK, so .... what did I doi wrong, here...? It seems linux_base git installed in /usr/local rather than /compat/linux. Can you give the output of: cd /usr/ports/linux_base-f10 make -V PREFIX ------enig2FLBJXWUARSGMWDXBKVUH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iF4EAREIAAYFAlFuqQoACgkQfoCS2CCgtitqugD/Wtn1UavY9TA/sfPuZI2piGht LE6ED1B7Iaza7DmVM5YA/RYtLHRO5wXTqoc8vtzj7xj+Jv8N955tiRti+cJD/9Gk =eB7/ -----END PGP SIGNATURE----- ------enig2FLBJXWUARSGMWDXBKVUH--