Date: Mon, 11 Sep 2006 12:58:19 +0400 From: Boris Samorodov <bsam@ipt.ru> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: Marcin Cieslak <saper@SYSTEM.PL>, freebsd-emulation@freebsd.org Subject: Re: /lib/ld-linux.so.2: cannot execute binary file: fix propsal Message-ID: <94662804@srv.sem.ipt.ru> In-Reply-To: <20060911093616.wnfgseoyogocgksw@webmail.leidinger.net> (Alexander Leidinger's message of "Mon, 11 Sep 2006 09:36:16 %2B0200") References: <45041321.6030003@SYSTEM.PL> <20060910181928.342eefaf@Magellan.Leidinger.net> <45045617.9010508@SYSTEM.PL> <courier.450504A4.00010E53@intron.ac> <20060911093616.wnfgseoyogocgksw@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Sep 2006 09:36:16 +0200 Alexander Leidinger wrote: > Maybe we should only brand ld-linux.so.2 but no other libs. Maybe this > will work. Boris, we should play around with this and see if something > breaks. If not, we should commit this and close the corresponding PR > (linux ldd doesn't work). I don't know if I get time for this before > the WE. OK. Here is the patch (for tests only, w/o PORTREVISON bump): ----- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/linux_base-fc4/Makefile,v retrieving revision 1.19 diff -u -r1.19 Makefile --- Makefile 18 Aug 2006 17:02:37 -0000 1.19 +++ Makefile 11 Sep 2006 08:51:17 -0000 @@ -184,6 +184,7 @@ ${WRKSRC}/usr/sbin -type f -print0 | ${XARGS} -0 ${FILE} \ | ${GREP} ELF | ${CUT} -d : -f 1 \ | ${XARGS} ${BRANDELF} -t Linux + @${BRANDELF} -t Linux ${WRKSRC}/lib/ld-linux.so.2 # Restore the status quo for usr/bin/*db4* files @${CHMOD} u-w ${WRKSRC}/usr/bin/*db4* ----- Those who wish to test it, please do. Any feedback is appreciated. Thanks. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?94662804>