ports/107349: [PATCH] security/gnupg: Unbreak BATCH building
Ulrich Spoerlein
uspoerlein at gmail.com
Sat Dec 30 12:00:38 UTC 2006
>Number: 107349
>Category: ports
>Synopsis: [PATCH] security/gnupg: Unbreak BATCH building
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 30 12:00:37 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Ulrich Spoerlein
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD roadrunner.q.local 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #3: Fri Dec 29 20:43:07 CET 2006
>Description:
The OPTIONS framework is flawed wrt. to BATCH mode. There are around 600
instances where wrong checks are performed. For a general fix see ports/105147
For this port, I'm just submitting a bandaid fix.
Port maintainer (kuriyama at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
% cd /usr/port/security/gnupg
% __MAKE_CONF=/dev/null make -DBATCH -DWITH_LDAP
===> gnupg-2.0.1 is marked as broken: Conflict options: WITHOUT_LDAP/WITH_LDAP.
*** Error code 1
Why? OPTIONS will always define the default value (in this case
WITHOUT_LDAP). Now if the user specifies WITH_LDAP too, the error will occur.
>Fix:
--- gnupg-2.0.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/gnupg/Makefile,v
retrieving revision 1.96
diff -u -p -u -r1.96 Makefile
--- Makefile 25 Dec 2006 02:59:59 -0000 1.96
+++ Makefile 30 Dec 2006 11:36:29 -0000
@@ -51,9 +51,6 @@ PLIST_SUB= NLS=""
USE_OPENLDAP= YES
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
PLIST_SUB+= LDAP=""
-.if defined(WITHOUT_LDAP)
-BROKEN= Conflict options: WITHOUT_LDAP/WITH_LDAP
-.endif
.else
CONFIGURE_ARGS+=--disable-ldap
PLIST_SUB+= LDAP="@comment "
@@ -63,9 +60,6 @@ PLIST_SUB+= LDAP="@comment "
CONFIGURE_ARGS+=--enable-scdaemon
LIB_DEPENDS+= usb-0.1:${PORTSDIR}/devel/libusb
PLIST_SUB+= SCDAEMON=""
-.if defined(WITHOUT_SCDAEMON)
-BROKEN= Conflict options: WITHOUT_SCDAEMON/WITH_SCDAEMON
-.endif
.else
CONFIGURE_ARGS+=--disable-scdaemon
PLIST_SUB+= SCDAEMON="@comment "
@@ -73,9 +67,6 @@ PLIST_SUB+= SCDAEMON="@comment "
.if defined(WITHOUT_CURL)
CONFIGURE_ARGS+=--without-libcurl
-.if defined(WITH_CURL)
-BROKEN= Conflict options: WITHOUT_CURL/WITH_CURL
-.endif
.else
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+=--with-libcurl=${LOCALBASE}
--- gnupg-2.0.1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list