audio/grip does not compile when "make WITH_CDPARANOIA=yes" is used
Esa Karkkainen
ejk at iki.fi
Tue Jan 6 01:19:31 PST 2004
>Submitter-Id: current-users
>Originator: Esa Karkkainen
>Organization: Is in state of disintegration
>Confidential: no
>Synopsis: audio/grip does not compile when "make WITH_CDPARANOIA=yes" is used
>Severity: non-critical
>Priority: medium
>Category: ports
>Class: sw-bug
>Release: FreeBSD 5.1-RELEASE-p11 i386
>Environment:
System: FreeBSD 5.1-RELEASE-p11 Sat Dec 13 17:28:07 EET 2003
Ports cvsupped at Tue Jan 6 10:52:51 EET 2004
>Description:
Port audio/grip does not compile when "make WITH_CDPARANOIA=yes" is used
>How-To-Repeat:
cd /usr/ports/audio/grip && make WITH_CDPARANOIA=yes all
[ snip ]
cdpar.c:47:33: cdda/cdda_interface.h: No such file or directory
cdpar.c:48:32: cdda/cdda_paranoia.h: No such file or directory
cdpar.c: In function `CDPCallback':
[ snip ]
gmake[2]: *** [cdpar.o] Error 1
gmake[2]: Leaving directory `/usr/ports/audio/grip/work/grip-3.1.4/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/audio/grip/work/grip-3.1.4'
gmake: *** [all] Error 2
*** Error code 2
Stop in /usr/ports/audio/grip.
>Fix:
I have supplied two fixes which have same net effect.
First patch is tad strange, but passes "portlint -A". Second patch is
"traditional" fix.
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
--- Makefile.orig Tue Jan 6 09:59:01 2004
+++ Makefile Tue Jan 6 11:07:45 2004
@@ -21,11 +21,14 @@
USE_GNOME= gnomehack gnomeprefix gnometarget libgnomeui vte
USE_GMAKE= yes
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if defined(WITH_CDPARANOIA)
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia
+post-patch:
+ @${REINPLACE_CMD} -e 's#<cdda/cdda_#<cdda_#' ${WRKSRC}/src/cdpar.c
.else
CONFIGURE_ARGS+= --disable-cdpar
.endif
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
diff -ruN grip.old/files/patch-src-cdpar.c grip/files/patch-src-cdpar.c
--- grip.old/files/patch-src-cdpar.c Thu Jan 1 02:00:00 1970
+++ grip/files/patch-src-cdpar.c Tue Jan 6 10:46:05 2004
@@ -0,0 +1,13 @@
+--- src/cdpar.c.orig Sun Dec 21 23:03:15 2003
++++ src/cdpar.c Tue Jan 6 10:42:30 2004
+@@ -44,8 +44,8 @@
+ #define size16 short
+ #define size32 int
+
+-#include <cdda/cdda_interface.h>
+-#include <cdda/cdda_paranoia.h>
++#include <cdda_interface.h>
++#include <cdda_paranoia.h>
+
+ static void PutNum(long num,int f,int endianness,int bytes);
+ static void WriteWav(int f,long bytes);
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---
More information about the freebsd-ports
mailing list