ports/189263: dns/ldns omits .pc file from staging
Josh Cepek
josh.cepek at usa.net
Fri May 2 19:40:01 UTC 2014
>Number: 189263
>Category: ports
>Synopsis: dns/ldns omits .pc file from staging
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri May 02 19:40:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Josh Cepek
>Release: FreeBSD 10.0-RELEASE-p1 amd64
>Organization:
>Environment:
System: FreeBSD pkg.claimlynx.com 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The dns/ldns upstream source build results in the generation of a libldns.pc
file, used by pkgconf. However, the port build does not install this file,
causing build systems using pkgconf to fail the check.
>How-To-Repeat:
1. Install dns/ldns (1.6.17 as of this report.)
2. Run `pkgconf --exists libldns`
3. It will fail, reporting no such library.
>Fix:
The included patch allows the upstream's `packaging` build output to be
installed into the pkgconfig directory where pkgconf expects it. The pkgconf
command from above will then work, allowing library consumers to detect it.
--- ldns-pc.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 352683)
+++ Makefile (working copy)
@@ -3,6 +3,7 @@
PORTNAME= ldns
PORTVERSION= 1.6.17
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://www.nlnetlabs.nl/downloads/ldns/ \
CRITICAL
@@ -132,6 +133,7 @@
.if ${PORT_OPTIONS:MDRILL}
@(cd ${WRKSRC}/drill; ${GMAKE} ${MAKE_ARGS} install)
.endif
+ ${INSTALL_DATA} ${WRKSRC}/packaging/libldns.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
.endif # BUILD_PYLDNS || BUILD_P5PERL
Index: pkg-plist
===================================================================
--- pkg-plist (revision 352683)
+++ pkg-plist (working copy)
@@ -532,4 +532,5 @@
lib/libldns.la
lib/libldns.so
lib/libldns.so.1
+libdata/pkgconfig/libldns.pc
@dirrm include/ldns
--- ldns-pc.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list