From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Oct 19 20:40:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 11A9C381 for ; Sat, 19 Oct 2013 20:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E33C62F97 for ; Sat, 19 Oct 2013 20:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9JKe2YN067062 for ; Sat, 19 Oct 2013 20:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9JKe2tw067061; Sat, 19 Oct 2013 20:40:02 GMT (envelope-from gnats) Resent-Date: Sat, 19 Oct 2013 20:40:02 GMT Resent-Message-Id: <201310192040.r9JKe2tw067061@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Erick Turnquist Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6CD22373 for ; Sat, 19 Oct 2013 20:39:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 59AF92F8E for ; Sat, 19 Oct 2013 20:39:19 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9JKdIPS011755 for ; Sat, 19 Oct 2013 20:39:18 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9JKdIYa011754; Sat, 19 Oct 2013 20:39:18 GMT (envelope-from nobody) Message-Id: <201310192039.r9JKdIYa011754@oldred.freebsd.org> Date: Sat, 19 Oct 2013 20:39:18 GMT From: Erick Turnquist To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/183113: security/gnupg fails to detect adns (and package) with non-default LOCALBASE/PREFIX X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Oct 2013 20:40:03 -0000 >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: