Subject: .pc files and pkgviews
To: None <tech-pkg@NetBSD.org>
From: Min Sik Kim <minskim@NetBSD.org>
List: tech-pkg
Date: 04/24/2004 01:45:34
--Signature=_Sat__24_Apr_2004_01_45_34_-0500_AXPTRoLisR8MVBIP
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Hi,

In buildlink3, links to *.h, *.idl, *.pc, lib* files are created in
BUILDLINK_DIR for overwrite packages.  However, only links to lib*.la
files are created when pkgviews is enabled.  Because of that, packages
using pkg-config cannot find *.pc files and thus fail to build.  So
I'd like to apply the patch below to make *.pc files available at
build time.

Is there any reason for not creating links to *.pc files?

Index: bsd.buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/buildlink3/bsd.buildlink3.mk,v
retrieving revision 1.140
diff -u -r1.140 bsd.buildlink3.mk
--- bsd.buildlink3.mk	18 Apr 2004 22:33:06 -0000	1.140
+++ bsd.buildlink3.mk	24 Apr 2004 06:23:27 -0000
@@ -574,7 +574,7 @@
 .  if (${PKG_INSTALLATION_TYPE} == "pkgviews") &&			\
       !empty(BUILDLINK_IS_DEPOT.${_pkg_}:M[yY][eE][sS])
 BUILDLINK_CONTENTS_FILTER.${_pkg_}?=					\
-	${GREP} 'lib.*/lib[^/]*\.la$$'
+	${EGREP} 'lib(/pkgconfig/.*\.pc$$|.*/lib[^/]*\.la$$)'
 .  else
 BUILDLINK_CONTENTS_FILTER.${_pkg_}?=					\
 	${EGREP} '(include.*/|\.h$$|\.idl$$|\.pc$$|/lib[^/]*\.[^/]*$$)'


-- 
Min Sik Kim

--Signature=_Sat__24_Apr_2004_01_45_34_-0500_AXPTRoLisR8MVBIP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iQEVAwUBQIoNDvQsKR/Zi7L+AQK/vQf/UkcBmLud1uVbMogO5Cy/chwl7DZjM8yB
wxdqaYfRuux7sg9ezky6pXuKH2YPunedxxunSw9sBpkBpVZgS/RaTPKKMGmWaSAX
bJEXYpng4TRAQOwZOoCAA1jYe9eUDinXEs+Fy/HwwX+vqOiGMaHr58na7TTT7up1
t6r9J0afqda2KsRspVeANdX5iaxHHQDr2h4izgFQ/3HSoHrtlidIOnBUZcaBWdzJ
uvfMZDVof7xRh4OAJ7bX1yB77xP/aidN+rtekoOBxM/fe1ls9f0+qtN9G7HGzWTm
eho+C/RYhdHrC6r4ADUtkezy6/S9TjctIxjdEkeYkbLOCPfBU20+lA==
=mI2N
-----END PGP SIGNATURE-----

--Signature=_Sat__24_Apr_2004_01_45_34_-0500_AXPTRoLisR8MVBIP--