Summary: | [maintainer-update] audio/ocp 0.1.7 -> 0.1.9 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Emanuel Haupt <ehaupt> | ||||
Component: | Individual Port(s) | Assignee: | Sam Lawrance <lawrance> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | ||||||
Priority: | Normal | ||||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Emanuel Haupt
2005-06-11 07:00:39 UTC
Responsible Changed From-To: freebsd-ports-bugs->lawrance Take State Changed From-To: open->feedback Asked submitter for feedback [ gcc fail lines ]
> Heimdal installs /usr/local/include/fnmatch.h. OCP attempts to use this
> header, when it should be using /usr/include/fnmatch.h.
>
> Could you look into this?
since we -I${LOCALBASE}/include ${LOCALBASE}/include has priority over
/usr/include. for now this patch hacks arround this problem.
i'm in constant contact with the author. i will advise him to catch
this problem earlier with autoconf.
cheers,
emanuel
--- Makefile.patch starts here ---
--- Makefile.orig Sun Jun 12 11:46:23 2005
+++ Makefile Sun Jun 12 11:42:40 2005
@@ -42,6 +42,9 @@
TIMIDITY_CFG= ${LOCALBASE}/share/timidity/timidity.cfg
+# conflicts with fnmatch.h from security/heimdal
+FNMATCHCONFL= ${LOCALBASE}/include/fnmatch.h
+
.include <bsd.port.pre.mk>
.if exists(${TIMIDITY_CFG}) || !defined(WITHOUT_MIDI)
@@ -95,6 +98,11 @@
@${REINPLACE_CMD} -e 's|stdint\.h|inttypes\.h|' ${WRKSRC}/types.h
@${REINPLACE_CMD} -e 's|/etc/.*\.cfg|${TIMIDITY_CFG}|' \
${WRKSRC}/playgmi/gmitimidity.c
+.if exists(${FNMATCHCONFL})
+ @${REINPLACE_CMD} -e 's|<\(fnmatch.h\)>|"/usr/include/\1"|' \
+ ${WRKSRC}/filesel/adb.c \
+ ${WRKSRC}/filesel/pfilesel.c
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ocp ${PREFIX}/bin
--- Makefile.patch ends here ---
State Changed From-To: feedback->open Feedback received State Changed From-To: open->closed Committed, thanks! Hi, I came across an amusing obscure problem. OCP (the version in ports and in this PR) fails to build when security/heimdal is installed: cc -O -pipe -I/usr/local/include -I/usr/X11R6/include -Wall -I.././lrmi-0.8 -I.././ -DVERSION=\"0.1.7\" -DPREFIX=\"/usr/local\" -DLIBDIR=\"/usr/local/lib/ocp\" -DDIR_SUFFIX=\"\" adb.c -o adb.o -c adb.c: In function `arcReadDir': adb.c:481: error: `FNM_CASEFOLD' undeclared (first use in this function) adb.c:481: error: (Each undeclared identifier is reported only once adb.c:481: error: for each function it appears in.) gmake[1]: *** [adb.o] Error 1 gmake[1]: Leaving directory `/usr/ports/audio/ocp/work/ocp-0.1.7/filesel' gmake: *** [dirs] Error 2 *** Error code 2 Stop in /usr/ports/audio/ocp. Heimdal installs /usr/local/include/fnmatch.h. OCP attempts to use this header, when it should be using /usr/include/fnmatch.h. Could you look into this? Cheers Sam |