Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2013 20:39:18 GMT
From:      Erick Turnquist <jhujhiti@adjectivism.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183113: security/gnupg fails to detect adns (and package) with non-default LOCALBASE/PREFIX
Message-ID:  <201310192039.r9JKdIYa011754@oldred.freebsd.org>
Resent-Message-ID: <201310192040.r9JKe2tw067061@freefall.freebsd.org>

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

>Number:         183113
>Category:       ports
>Synopsis:       security/gnupg fails to detect adns (and package) with non-default LOCALBASE/PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 19 20:40:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Erick Turnquist
>Release:        9.1
>Organization:
>Environment:
FreeBSD rhea 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #4: Sat Sep 14 03:52:41 UTC 2013     root@rhea:/usr/obj/usr/src/sys/CUSTOM  amd64
>Description:
security/gnupg (rather helpfully) is failing on 'make package' due to adns not being found and the gpg2keys_kdns utility not being built.

With KDNS=on, LOCALBASE and PREFIX=/usr/pkg (log from poudriere):

===>  Building package for gnupg-2.0.22
pkg-static: lstat(/wrkdirs/usr/ports/security/gnupg/work/stage/usr/pkg/libexec/gpg2keys_kdns): No such file or directory
*** [do-package] Error code 1

config.log shows:
checking adns.h usability... no
checking adns.h presence... no
checking for adns.h... no
checking for adns_free... no

We need to use --with-adns, just like the LDAP options above it in the port Makefile. A patch is attached.
>How-To-Repeat:
Set KDNS=on, change LOCALBASE and PREFIX, and build security/gnupg.
>Fix:
Patch is attached

Patch attached with submission follows:

--- Makefile-orig	2013-10-19 15:21:12.607735985 -0400
+++ Makefile-patched	2013-10-19 15:25:35.240009199 -0400
@@ -68,7 +68,8 @@
 .endif
 
 .if ${PORT_OPTIONS:MKDNS}
-LIB_DEPENDS+=	adns:${PORTSDIR}/dns/adns
+LIB_DEPENDS+=	 adns:${PORTSDIR}/dns/adns
+CONFIGURE_ARGS+= --with-adns=${LOCALBASE}
 .else
 CONFIGURE_SUB=	-e '/GPGKEYS_KDNS=/s/".*"/""/'
 .endif


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



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