ports/182566: Fix mail/dbmail not building with DOCS unset

Alan Hicks ahicks at p-o.co.uk
Wed Oct 2 10:40:02 UTC 2013


>Number:         182566
>Category:       ports
>Synopsis:       Fix mail/dbmail not building with DOCS unset
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 02 10:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Alan Hicks
>Release:        FreeBSD 9.1-RELEASE-p7 i386
>Organization:
>Environment:
System: FreeBSD schnittke.p-o.co.uk 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #0: Mon Sep 9 21:23:37 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Port does not build package with DOCS unset as there is no documentation
in the ports and incorrectly prevents building man pages.
	
>How-To-Repeat:
Building package fails when DOCS is unset
	
>Fix:
Apply patch to remove DOCS from options and add --enable-manpages
to CONFIGURE_ARGS

	

--- dbmail-docs.diff begins here ---
--- Makefile.orig	2013-10-02 10:41:52.000000000 +0100
+++ Makefile	2013-10-02 10:45:39.000000000 +0100
@@ -22,7 +22,7 @@
 
 CONFLICTS=	dbmail-2.*
 
-OPTIONS_DEFINE=	DOCS LDAP SIEVE THREADS
+OPTIONS_DEFINE=	LDAP SIEVE THREADS
 OPTIONS_DEFAULT=	THREADS
 SIEVE_DESC=	Build with support for Sieve mail sorting language
 
@@ -36,7 +36,8 @@
 CFLAGS+=	-fPIC ${PTHREAD_CFLAGS}
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
-CONFIGURE_ARGS+=	--with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc
+CONFIGURE_ARGS+=	--with-zdb=${LOCALBASE} --sysconfdir=${LOCALBASE}/etc --enable-manpages
+
 MAKE_ARGS+=	mandir=${MANPREFIX}/man
 
 PORTDOCS=	AUTHORS BUGS INSTALL THANKS UPGRADING
@@ -73,10 +74,6 @@
 EXTRA_PATCHES=	${FILESDIR}/extra-patch-acinclude.m4
 .endif
 
-.if ${PORT_OPTIONS:MDOCS}
-CONFIGURE_ARGS+=	--enable-manpages
-.endif
-
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${STAGEDIR}${PREFIX}/etc/dbmail.conf-dist
 	@${MKDIR} ${STAGEDIR}${DATADIR}
--- dbmail-docs.diff ends here ---


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


More information about the freebsd-ports-bugs mailing list