ports/92001: [patch] databases/libpbl: respect $CC and fix 4.x support
Johan van Selst
johans at stack.nl
Thu Jan 19 15:30:12 UTC 2006
>Number: 92001
>Category: ports
>Synopsis: [patch] databases/libpbl: respect $CC and fix 4.x support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 19 15:30:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Johan van Selst
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 6.0-STABLE FreeBSD 6.0-STABLE #9: Wed Jan 11 14:40:03 CET 2006 johans at mud.stack.nl:/usr/obj/usr/src/sys/mud i386
>Description:
[Cc: maintainer]
Please consider the following simple patch for libpbl.
- makes the port honour $CC setting
- do not use %zd on FreeBSD 4.x
- note there is no <malloc.h> in pbl.h to be replaced
>How-To-Repeat:
>Fix:
diff -uNr libpbl/Makefile libpbl/Makefile
--- libpbl/Makefile Tue Jan 3 23:13:34 2006
+++ libpbl/Makefile Fri Jan 6 12:33:23 2006
@@ -26,11 +26,14 @@
.include <bsd.port.pre.mk>
post-extract:
- @${REINPLACE_CMD} -e 's/= -Wall -O3/+= -Wall/' ${WRKSRC}/makefile
+ @${REINPLACE_CMD} -e 's/= -Wall -O3/+= -Wall/' \
+ -e 's/^CC=/CC?=/' ${WRKSRC}/makefile
+.if ${OSVERSION} >= 500000
@${REINPLACE_CMD} -e 's/%d/%zd/' ${WRKSRC}/pbl.c
+.endif
@${REINPLACE_CMD} -e 's/dir\.h/dirent\.h/' ${WRKSRC}/pbl.h
@${REINPLACE_CMD} -e 's/malloc\.h/stdlib\.h/' \
- ${WRKSRC}/pbl.h ${WRKSRC}/pbl.c ${WRKSRC}/pblhash.c
+ ${WRKSRC}/pbl.c ${WRKSRC}/pblhash.c
do-install:
@${INSTALL_DATA} ${WRKSRC}/libpbl.a ${LOCALBASE}/lib
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list