ports/99809: audio/openal - patch to fix build error for x86/CPUTYPE
Erik Greenwald
erik at smluc.org
Wed Jul 5 17:20:19 UTC 2006
>Number: 99809
>Category: ports
>Synopsis: audio/openal - patch to fix build error for x86/CPUTYPE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 05 17:20:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Erik Greenwald
>Release: FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD fenris 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 14:38:02 EDT 2006 root at fenris:/usr/obj/usr/src/sys/FENRIS i386
>Description:
When the CPUTYPE is set on an x86 box, and nasm happens to be
installed, audio/openal tries to use nasm and causes "bad objects"
in archive files (as the "-f elf" flag is not set), causing the
build to fail. The reason is because the 'type' flag is only set for
linux... This patch changes that *linux*) to *bsd*) allowing the
build to succeed (with the optimized asm version being used).
This has been tested on p4-xeon, amd32-athlon, and amd64-opteron, both
with CPUTYPE unset and set.
I seem to have forgotten my password to the creative repo (or users
weren't migrated when they changed from CVS to SVN), so I have not
committed my fix there, but will as soon as I get access.
Thanks!
>How-To-Repeat:
>Fix:
--- audio_openal.patch begins here ---
Index: audio/openal/Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/openal/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- audio/openal/Makefile 1 Jul 2006 23:47:49 -0000 1.38
+++ audio/openal/Makefile 5 Jul 2006 16:01:21 -0000
@@ -78,7 +78,7 @@
post-patch:
@${REINPLACE_CMD} -e 's/-pthread/${PTHREAD_LIBS}/; \
s/x86_64\*/amd64\* | \*ia64\*/g; \
- /CPPFLAGS=/ d' ${WRKSRC}/configure
+ /CPPFLAGS=/ d; s/ \*linux\*)/ \*bsd\*)/' ${WRKSRC}/configure
@${REINPLACE_CMD} -e '/#include/ s|SDL/||' \
${WRKSRC}/src/extensions/al_ext_mp3.c
@${REINPLACE_CMD} -e 's|"mixaudio16_mmx_prk.h"|"arch/i386/mixaudio16_mmx_prk.h"|' \
--- audio_openal.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list