ports/117850: [patch] audio/baudline: brandelf linux binary
Boris Samorodov
bsam at FreeBSD.org
Mon Nov 5 19:50:02 UTC 2007
>Number: 117850
>Category: ports
>Synopsis: [patch] audio/baudline: brandelf linux binary
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Nov 05 19:50:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Boris Samorodov
>Release: FreeBSD 6.2-STABLE amd64
>Organization:
InPharmTech, Co.
>Environment:
System: FreeBSD srv.sem.ipt.ru 6.2-STABLE FreeBSD 6.2-STABLE #0: Tue Jul 24 19:30:05 MSD 2007 bsam at srv.sem.ipt.ru:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
From the Russian fido:
A linux binary should be branded as "Linux" to run under FreeBSD.
The current port does not do it.
>How-To-Repeat:
Install the port and run the binary:
-----
baudline: error while loading shared libraries: /usr/local/lib/libXt.so.6: ELF file OS ABI invalid
-----
>Fix:
. brandelf the binary (use a do-build stage);
. bump PORTREVISION.
--- baudline.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/audio/baudline/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile 12 Oct 2007 22:52:45 -0000 1.32
+++ Makefile 5 Nov 2007 19:34:10 -0000
@@ -7,6 +7,7 @@
PORTNAME= baudline
PORTVERSION= 1.06
+PORTREVISION= 1
CATEGORIES= audio linux
# We have permission from author Erik Olsen <erik at sigblips.net> for the
# package cluster to automatically fetch baudline
@@ -22,7 +23,6 @@
USE_XORG= x11 xext xt ice
USE_LINUX= yes
ONLY_FOR_ARCHS= i386 amd64
-NO_BUILD= yes
RESTRICTED= author requests no distribution except from their site
@@ -39,6 +39,9 @@
restart this build
.endif
+do-build:
+ @${BRANDELF} -t Linux ${WRKSRC}/baudline
+
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/baudline ${PREFIX}/bin
.if !defined(NOPORTDOCS)
--- baudline.diff ends here ---
WBR
--
bsam
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list