ports/63103: amd64-fix: audio/xmms-mp3cue
Hendrik Scholz
hendrik at scholz.net
Fri Feb 20 03:20:05 UTC 2004
>Number: 63103
>Category: ports
>Synopsis: amd64-fix: audio/xmms-mp3cue
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 19 19:20:04 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Hendrik Scholz
>Release: FreeBSD 5.2.1-RC amd64
>Organization:
>Environment:
System: FreeBSD slurmcan.wormulon.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan 31 12:38:34 GMT 2004 root at ngoc.NUXI.com:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
bento reports the usual -fPIC problem:
http://bento.freebsd.org/errorlogs/amd64-5-latest/xmms-mp3cue-0.94.log
The port does not honor the CFLAGS environment variable so we have
to add this in configure.in and run autoconf on amd64.
CC'ed to author.
Brian: Just add the CFLAGS="$CFLAGS $XMMS_CFLAGS" line to your configure.in
and you should be fine.
>How-To-Repeat:
>Fix:
--- xmms-mp3cue.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/audio/xmms-mp3cue/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 14 Feb 2004 14:44:20 -0000 1.1
+++ Makefile 20 Feb 2004 03:12:20 -0000
@@ -23,7 +23,13 @@
PLIST_SUB= PORTDOCS=${DISTNAME}
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+CONFIGURE_ENV= CFLAGS="-fPIC" CPPFLAGS="-fPIC"
+USE_AUTOCONF= yes
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/*.c
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- xmms-mp3cue.diff ends here ---
files/patch-configure.in:
--- configure.in.orig Thu Feb 19 22:06:49 2004
+++ configure.in Thu Feb 19 22:07:03 2004
@@ -23,7 +23,7 @@
AC_MSG_CHECKING("XMMS cflags")
XMMS_CFLAGS=`xmms-config --cflags`
-CFLAGS="$XMMS_CFLAGS"
+CFLAGS="$CFLAGS $XMMS_CFLAGS"
AC_MSG_RESULT(yes)
AC_MSG_CHECKING("XMMS installpath")
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list