ports/154872: [patch] port www/p5-Apache-DBI depends on wrong mod_perl if apache22 is default
olli hauer
ohauer at FreeBSD.org
Sat Feb 19 01:20:12 UTC 2011
>Number: 154872
>Category: ports
>Synopsis: [patch] port www/p5-Apache-DBI depends on wrong mod_perl 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: Sat Feb 19 01:20:11 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
the wrong mod_perl version is choosen.
Note: Apache22 will be the default in near time.
>How-To-Repeat:
Fresh system, make apache22 the default and build the port.
For example the port devel/otrs will not build on a fresh system
since p5-Apache-Reload choose the wrong mod_perl.
>Fix:
--- p5-Apache-DBI.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/p5-Apache-DBI/Makefile,v
retrieving revision 1.35
diff -u -r1.35 Makefile
--- Makefile 17 Dec 2010 20:16:51 -0000 1.35
+++ Makefile 19 Feb 2011 01:15:39 -0000
@@ -7,6 +7,7 @@
PORTNAME?= Apache-DBI
PORTVERSION= 1.09
+PORTREVISION= 1
CATEGORIES= www databases perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -24,8 +25,10 @@
MAN3= Apache::DBI.3 Apache::AuthDBI.3
PERL_CONFIGURE= yes
+USE_APACHE= 13+
+.include <bsd.port.pre.mk>
-.if defined(WITH_MODPERL2)
+.if defined(WITH_MODPERL2) || ${APACHE_VERSION} > 13
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2
.else
@@ -41,4 +44,4 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Apache \
%%SITE_PERL%%/Apache
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- p5-Apache-DBI.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list