Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 2010 08:58:33 GMT
From:      Vitaly Magerya <vmagerya@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/149567: [patch] devel/boehm-gc-threaded: add it's own pkg-config file
Message-ID:  <201008120858.o7C8wXMV029389@www.freebsd.org>
Resent-Message-ID: <201008120950.o7C9o3Mp067942@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         149567
>Category:       ports
>Synopsis:       [patch] devel/boehm-gc-threaded: add it's own pkg-config file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 12 09:50:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Vitaly Magerya
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
>Environment:
>Description:
One of the ports I maintain requires the threaded version of Boehm GC,
but since it tries to detect it via "pkg-config bdw-gc", it links
against the non-threaded libraries. It would simplify my life a bit if
devel/boehm-gc-threaded would install it's own .pc file, so I could
depend on it.

Note: I think a similar thing can be done to devel/boehm-gc-redirect,
if the maintainer wishes so.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN boehm-gc-threaded.orig/Makefile boehm-gc-threaded/Makefile
--- boehm-gc-threaded.orig/Makefile	2010-08-12 11:31:58.000000000 +0000
+++ boehm-gc-threaded/Makefile	2010-08-12 11:33:54.000000000 +0000
@@ -32,7 +32,8 @@
 		FULLDEBUG "Debugging support (see documentation)" off
 
 PLIST_FILES=	${INSTLIBS:S,^,lib/lib,g:S,$,-${GC_VARIANT}.so.${SOVER},g} \
-		${INSTLIBS:S,^,lib/lib,g:S,$,-${GC_VARIANT}.so,g}
+		${INSTLIBS:S,^,lib/lib,g:S,$,-${GC_VARIANT}.so,g} \
+		libdata/pkgconfig/bdw-gc-${GC_VARIANT}.pc
 
 .include <bsd.port.pre.mk>
 
@@ -54,6 +55,7 @@
 		-e 's,libgccpp\.la,libgccpp-${GC_VARIANT}.la,g' \
 		-e 's,libcord\.la,libcord-${GC_VARIANT}.la,g' \
 		${WRKSRC}/Makefile.in
+	${REINPLACE_CMD} -e 's,-lgc,-lgc-${GC_VARIANT},' ${WRKSRC}/bdw-gc.pc.in
 
 do-install:
 .for LIB in ${INSTLIBS}
@@ -62,5 +64,7 @@
 	@(cd ${PREFIX}/lib && ${LN} -s lib${LIB}-${GC_VARIANT}.so.${SOVER} \
 	    lib${LIB}-${GC_VARIANT}.so)
 .endfor
+	${INSTALL_DATA} ${WRKSRC}/bdw-gc.pc \
+		${PREFIX}/libdata/pkgconfig/bdw-gc-${GC_VARIANT}.pc
 
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008120858.o7C8wXMV029389>