On 2009/12/07 11:23, Andreas Kahari wrote:
> Hi list,
> 
> Attached are a couple of patches for databases/iodbc and
> devel/boehm-gc that makes their "pkg-config --libs" output mention
> "-pthread". I believe that the pthread library is needed to
> successfully link with the these two ports and I'm working on a
> project that uses CMake with PKG_SEARCH_MODULE(), which relies on
> correct pkg-config output.
> 
> In the case of databases/iodbc, the patch replaces an already existing patch.
> 
> Also in the case of databases/iodbc, this makes the output of
> "pkg-config --libs libiodbc" consistent with the output of
> "iodbc-config --libs".

I think this makes sense. Diff against /usr/ports below - any ok's?


Index: devel/boehm-gc/Makefile
===================================================================
RCS file: /cvs/ports/devel/boehm-gc/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- devel/boehm-gc/Makefile     1 Jul 2008 09:43:19 -0000       1.37
+++ devel/boehm-gc/Makefile     7 Dec 2009 13:05:41 -0000
@@ -7,7 +7,7 @@ COMMENT-atomic= access to hardware provi
 VERSION=       7.0
 DISTNAME=      gc-${VERSION}
 PKGNAME-atomic=        libatomic_ops-1.2
-PKGNAME-main=  boehm-gc-${VERSION}p1
+PKGNAME-main=  boehm-gc-${VERSION}p2
 
 MULTI_PACKAGES=        -main -atomic
 
Index: devel/boehm-gc/patches/patch-bdw-gc_pc_in
===================================================================
RCS file: devel/boehm-gc/patches/patch-bdw-gc_pc_in
diff -N devel/boehm-gc/patches/patch-bdw-gc_pc_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ devel/boehm-gc/patches/patch-bdw-gc_pc_in   7 Dec 2009 13:05:41 -0000
@@ -0,0 +1,10 @@
+$OpenBSD$
+--- bdw-gc.pc.in.orig  Mon Dec  7 10:57:34 2009
++++ bdw-gc.pc.in       Mon Dec  7 10:57:46 2009
+@@ -6,5 +6,5 @@ included...@includedir@
+ Name: Boehm-Demers-Weiser Conservative Garbage Collector
+ Description: A garbage collector for C and C++
+ Version: @PACKAGE_VERSION@
+-Libs: -L${libdir} -lgc
++Libs: -L${libdir} -lgc -pthread
+ Cflags: -I${includedir}
Index: databases/iodbc/Makefile
===================================================================
RCS file: /cvs/ports/databases/iodbc/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- databases/iodbc/Makefile    10 Aug 2009 06:31:07 -0000      1.18
+++ databases/iodbc/Makefile    7 Dec 2009 13:05:41 -0000
@@ -7,7 +7,7 @@ V=                      3.52.6
 
 DISTNAME=              libiodbc-$V
 PKGNAME=               iodbc-$V
-PKGNAME-main=          iodbc-$V
+PKGNAME-main=          iodbc-$Vp0
 PKGNAME-admin=         iodbc-admin-$Vp0
 
 CATEGORIES=            databases
Index: databases/iodbc/patches/patch-admin_libiodbc_pc_in
===================================================================
RCS file: /cvs/ports/databases/iodbc/patches/patch-admin_libiodbc_pc_in,v
retrieving revision 1.1
diff -u -p -r1.1 patch-admin_libiodbc_pc_in
--- databases/iodbc/patches/patch-admin_libiodbc_pc_in  17 Jul 2009 10:45:05 
-0000      1.1
+++ databases/iodbc/patches/patch-admin_libiodbc_pc_in  7 Dec 2009 13:05:41 
-0000
@@ -1,10 +1,10 @@
-$OpenBSD: patch-admin_libiodbc_pc_in,v 1.1 2009/07/17 10:45:05 sthen Exp $
---- admin/libiodbc.pc.in.orig  Mon Jul  6 11:34:03 2009
-+++ admin/libiodbc.pc.in       Mon Jul  6 11:34:18 2009
+$OpenBSD$
+--- admin/libiodbc.pc.in.orig  Mon Jan 23 10:29:22 2006
++++ admin/libiodbc.pc.in       Mon Dec  7 11:03:55 2009
 @@ -88,5 +88,5 @@ Name: iODBC
  Description: @PACKAGE_NAME@
  Version: @PACKAGE_VERSION@
  Requires:
 -Libs: -L${libdir} -liodbc -liodbcinst -ldl
-+Libs: -L${libdir} -liodbc -liodbcinst
++Libs: -L${libdir} -liodbc -liodbcinst -pthread
  Cflags: -I${includedir}

Reply via email to