ports/155216: [patch] port www/p5-Bundle-Sledge fix depends if apache22 is default

olli hauer ohauer at FreeBSD.org
Wed Mar 2 23:20:06 UTC 2011


>Number:         155216
>Category:       ports
>Synopsis:       [patch] port www/p5-Bundle-Sledge fix depends if apache22 is default
>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:   Wed Mar 02 23:20:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Olli Hauer
>Release:        
>Organization:
>Environment:


>Description:
If the port is build on a fresh system where apache22 is the default 
it choose the wrong p5-libapreq version.

Note: Apache22 will be the default in near time.

>How-To-Repeat:
Build the port against apache22

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

>Fix:

--- p5-Bundle-Sledge.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/p5-Bundle-Sledge/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	25 Dec 2009 00:33:23 -0000	1.15
+++ Makefile	2 Mar 2011 23:07:05 -0000
@@ -18,7 +18,14 @@
 BUILD_DEPENDS=	${PM_DEPENDS}
 RUN_DEPENDS=	${PM_DEPENDS}
 
+USE_APACHE=	13+
+.include <bsd.port.pre.mk>
+
+.if ${APACHE_VERSION} == 13
 PM_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq
+.else
+PM_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Apache2/Request.pm:${PORTSDIR}/www/p5-libapreq2
+.endif
 PM_DEPENDS+=	${SITE_PERL}/Apache/Reload.pm:${PORTSDIR}/www/p5-Apache-Reload
 PM_DEPENDS+=	${SITE_PERL}/Test/Inline.pm:${PORTSDIR}/devel/p5-Test-Inline
 PM_DEPENDS+=	${SITE_PERL}/Carp/Assert.pm:${PORTSDIR}/devel/p5-Carp-Assert
@@ -45,4 +52,4 @@
 
 JCODE=	${SITE_PERL}/Jcode.pm
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/www/p5-Bundle-Sledge/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	19 Feb 2006 10:47:06 -0000	1.5
+++ distinfo	2 Mar 2011 23:07:05 -0000
@@ -1,3 +1,2 @@
-MD5 (Bundle-Sledge-0.04.tar.gz) = 487e4b67139595f71ef936034f8448b9
 SHA256 (Bundle-Sledge-0.04.tar.gz) = 454a503cc9060df664de00e6db701275904a7f4befa99fcc136e119093861282
 SIZE (Bundle-Sledge-0.04.tar.gz) = 2108
--- p5-Bundle-Sledge.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list