ports/154754: [patch] port www/suphp fix leftover during package building

olli hauer ohauer at FreeBSD.org
Sun Feb 13 21:50:06 UTC 2011


>Number:         154754
>Category:       ports
>Synopsis:       [patch] port www/suphp fix leftover during package 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:   Sun Feb 13 21:50:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Olli Hauer
>Release:        
>Organization:
>Environment:


>Description:
Fix lefetover during package building

During deinstall apxs -e -A ... is executed, this will normally
remove the LoadModule $modulename line if there is any, else a
line with an '#' in front of LoadModule $modulename is added.

Since apxs is not executed during port install the commented line
will be added during deinstall into httpd.conf and this leads to a
build failed with leftover in tinderbox and pointyhat.FreeBSD.org

>How-To-Repeat:
Build the module with apache22 and inspect httpd.conf after install
and deinstall of the port

Reference: 
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147009
http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/a.8-exp.20110129080700/suphp-0.7.1_3.log

>Fix:

--- suphp.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/suphp/Makefile,v
retrieving revision 1.41
diff -u -r1.41 Makefile
--- Makefile	22 Dec 2010 20:05:48 -0000	1.41
+++ Makefile	13 Feb 2011 21:37:02 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	suphp
 PORTVERSION=	0.7.1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	www
 MASTER_SITES=	http://www.suphp.org/download/ \
 		${MASTER_SITE_LOCAL:S|%SUBDIR%|koitsu|}
@@ -60,6 +60,7 @@
 	@${STRIP_CMD} ${PREFIX}/sbin/suphp
 .endif
 	@${INSTALL_DATA} ${WRKSRC}/doc/suphp.conf-example ${PREFIX}/etc/suphp.conf-example
+	@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/mod_${MODULENAME}.so"
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/www/suphp/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- distinfo	20 Mar 2009 07:33:13 -0000	1.13
+++ distinfo	13 Feb 2011 21:37:02 -0000
@@ -1,3 +1,2 @@
-MD5 (suphp-0.7.1.tar.gz) = c172dd4f15a75f4dcb08ea97d4202bb8
 SHA256 (suphp-0.7.1.tar.gz) = 91d180046f95f66c9ad12f3ca67bba87e2b64338543145e68370babc4434e58a
 SIZE (suphp-0.7.1.tar.gz) = 386521
--- suphp.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list