Bug 183113 - security/gnupg fails to detect adns (and package) with non-default LOCALBASE/PREFIX
Summary: security/gnupg fails to detect adns (and package) with non-default LOCALBASE/...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Eitan Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-19 21:40 UTC by Erick Turnquist
Modified: 2013-11-14 05:40 UTC (History)
0 users

See Also:


Attachments
file.diff (353 bytes, patch)
2013-10-19 21:40 UTC, Erick Turnquist
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erick Turnquist 2013-10-19 21:40:02 UTC
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.

Fix: Patch is attached

Patch attached with submission follows:
How-To-Repeat: Set KDNS=on, change LOCALBASE and PREFIX, and build security/gnupg.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-19 21:40:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-11-14 05:37:35 UTC
Author: eadler
Date: Thu Nov 14 05:37:22 2013
New Revision: 333739
URL: http://svnweb.freebsd.org/changeset/ports/333739

Log:
  Fix build with KDNS: --with-adns must be passed to configure.
  
  PR:		ports/183113
  Submitted by:	Erick Turnquist <jhujhiti@adjectivism.org>
  Approved by:	maintainer timeout (3 weeks)

Modified:
  head/security/gnupg/Makefile

Modified: head/security/gnupg/Makefile
==============================================================================
--- head/security/gnupg/Makefile	Thu Nov 14 04:26:45 2013	(r333738)
+++ head/security/gnupg/Makefile	Thu Nov 14 05:37:22 2013	(r333739)
@@ -68,7 +68,8 @@ CONFIGURE_ARGS+=--disable-ldap
 .endif
 
 .if ${PORT_OPTIONS:MKDNS}
-LIB_DEPENDS+=	adns:${PORTSDIR}/dns/adns
+LIB_DEPENDS+=	libadns.so:${PORTSDIR}/dns/adns
+CONFIGURE_ARGS+=	--with-adns=${LOCALBASE}
 .else
 CONFIGURE_SUB=	-e '/GPGKEYS_KDNS=/s/".*"/""/'
 .endif
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2013-11-14 05:37:53 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2013-11-14 05:38:04 UTC
Responsible Changed
From-To: kuriyama->eadler

I closed it.