At Sat, 13 May 2000 15:45:02 -0500,
emre <[EMAIL PROTECTED]> wrote:
> bash-2.03# rvplayer
> ELF interpreter /lib/ not found
> Abort trap

This is the same problem as ports/18489, caused by binary branding

$ file /usr/local/bin/rvplayer 
/usr/local/bin/rvplayer: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), 
dynamically linked, stripped

/usr/bin/strip(used during INSTALL_PROGRAM) forces Linux binary to be
branded as FreeBSD with old method and then it will always be treated
as FreeBSD binary. The effort to brand it as Linux with new method
will be ignored.

Stripping Linux binary with Linux strip would be a workaround.


Index: Makefile
RCS file: /home/ncvs/ports/audio/linux-realplayer/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile    2000/04/08 21:23:56     1.12
+++ Makefile    2000/05/14 06:37:17
@@ -20,6 +20,8 @@
 NO_BUILD=      yes
 WRKSRC=                ${WRKDIR}/rvplayer5.0/
+STRIP=         # linux binary should not be stripped by INSTALL_PROGRAM
@@ -58,6 +60,7 @@
        ${INSTALL_PROGRAM} ${WRKSRC}/rvplayer ${PREFIX}/bin/
+       /compat/linux/usr/bin/strip ${PREFIX}/bin/rvplayer
        /usr/bin/brandelf -t Linux ${PREFIX}/bin/rvplayer
        ${INSTALL_DATA} ${WRKSRC}/welcome.rm ${PREFIX}/share/rvplayer5.0/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to