Date: Thu, 19 Jan 2006 16:20:30 +0100 (CET) From: Johan van Selst <johans@stack.nl> To: FreeBSD-gnats-submit@FreeBSD.org Cc: hideo@lastamericanempire.com Subject: ports/92001: [patch] databases/libpbl: respect $CC and fix 4.x support Message-ID: <20060119152030.CBCED17017@mud.stack.nl> Resent-Message-ID: <200601191530.k0JFUB8i004314@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060119152030.CBCED17017>