/lib/ld-linux.so.2: cannot execute binary file: fix propsal
Boris Samorodov
bsam at ipt.ru
Mon Sep 11 04:57:26 PDT 2006
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
More information about the freebsd-emulation
mailing list