ports/159873: net/libgcrypt needs libgpg error > 1.8
Michael Scheidell
scheidell at secnap.net
Thu Aug 18 14:20:07 UTC 2011
>Number: 159873
>Category: ports
>Synopsis: net/libgcrypt needs libgpg error > 1.8
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 18 14:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Michael Scheidell
>Release: 7.3
>Organization:
SECNAP Network Security
>Environment:
i386/
>Description:
when compiling libgcrypt, we get this error:
checking for gpg-error-config... /usr/local/bin/gpg-error-config
checking for GPG Error - version >= 1.8... no
configure: error: libgpg-error is needed.
See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
===> Script "configure" failed unexpectedly.
even though the depends is looking for this:
===> Applying FreeBSD patches for libgcrypt-1.5.0
===> libgcrypt-1.5.0 depends on package: libtool>=2.4 - found
===> libgcrypt-1.5.0 depends on shared library: gpg-error.0 - found
===> Configuring for libgcrypt-1.5.0
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
>How-To-Repeat:
compile libgcrypt with libgpg error of < 1.8
>Fix:
change LIB_DEPENDS to both RUN and BUILD depends
(note: don't set BUILD_DEPENDS=RUN_DEPENDS. TAKES IN TOO MUCH)
patch below, quick, easy one.
diff -bBru /tmp/Makefile ./
--- /tmp/Makefile 2011-07-03 07:39:40.000000000 -0400
+++ ./Makefile 2011-08-18 10:08:19.000000000 -0400
@@ -6,6 +6,8 @@
PORTNAME= libgcrypt
PORTVERSION= 1.5.0
+PORTREVISION= 1
+
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,7 +19,8 @@
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING ${WRKSRC}/COPYING.LIB
-LIB_DEPENDS= gpg-error.0:${PORTSDIR}/security/libgpg-error
+BUILD_DEPENDS= libgpg-error>=1.8:${PORTSDIR}/security/libgpg-error
+RUN_DEPENDS= libgpg-error>=1.8:${PORTSDIR}/security/libgpg-error
USE_BZIP2= yes
USE_AUTOTOOLS= libtool
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list