Date: Thu, 19 Feb 2004 22:16:30 -0500 (EST) From: Hendrik Scholz <hendrik@scholz.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: brianv@phreaker.net Subject: ports/63103: amd64-fix: audio/xmms-mp3cue Message-ID: <20040220031630.7C12D39845@slurmcan.wormulon.net> Resent-Message-ID: <200402200320.i1K3K40t017400@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040220031630.7C12D39845>