Subject: pkg/18462: devel/pkgconfig requires threads
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jmmv@hispabsd.org>
List: netbsd-bugs
Date: 09/29/2002 12:55:02
>Number:         18462
>Category:       pkg
>Synopsis:       devel/pkgconfig requires threads
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 29 03:52:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6H
>Organization:
HispaBSD
>Environment:
	
	
System: NetBSD darkstar.local 1.6H NetBSD 1.6H (DARKSTAR) #0: Sat Sep 28 19:58:50 CEST 2002 jmmv@darkstar.local:/var/build/kernel/DARKSTAR i386
Architecture: i386
Machine: i386
>Description:
	The package devel/pkgconfig is not building properly in a freshly
	installed system. The problem is that it contains `glib' (so it
	can be compiled "standalone") and this library needs threading.
	Currently, the package does not include threading support, so
	glib build fails.
>How-To-Repeat:
	cd /usr/pkgsrc/devel/pkgconfig && make
	If you can't reproduce the error, pkg_comp can be helpful.
>Fix:
	This fixes the problem, at least for me.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/pkgconfig/Makefile,v
retrieving revision 1.5
diff -u -u -r1.5 Makefile
--- Makefile	2002/09/10 19:59:55	1.5
+++ Makefile	2002/09/29 10:49:38
@@ -2,6 +2,7 @@
 #
 
 DISTNAME=	pkgconfig-0.12.0
+PKGREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://www.freedesktop.org/software/pkgconfig/releases/
 
@@ -14,7 +15,10 @@
 USE_LIBTOOL=		YES
 LIBTOOL_OVERRIDE=	${WRKSRC}/libtool ${WRKSRC}/glib-1.2.8/libtool
 
+PTHREAD_OPTS+=		require
+
 post-install:
 	${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig
 
+.include "../../mk/pthread.buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: