From owner-freebsd-perl@FreeBSD.ORG Sat Feb 19 01:11:24 2011 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87E73106566B; Sat, 19 Feb 2011 01:11:24 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from u18-124.dslaccess.de (unknown [194.231.39.124]) by mx1.freebsd.org (Postfix) with ESMTP id 428188FC0A; Sat, 19 Feb 2011 01:11:24 +0000 (UTC) To: To: From: olli hauer X-send-pr-version: 3.113 X-GNATS-Notify: Date: Sat, 19 Feb 2011 02:11:18 +0100 (CET) Message-Id: <20110219011124.87E73106566B@hub.freebsd.org> Cc: ohauer@FreeBSD.org Subject: [patch] port www/p5-Apache-Reload depends on wrong mod_perl if apache22 is default X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: olli hauer List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 01:11:24 -0000 >Submitter-Id: current-users >Originator: Olli Hauer >Organization: >Confidential: no >Synopsis: [patch] port www/p5-Apache-Reload depends on wrong mod_perl if apache22 is default >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: >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. Reference: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/147009 http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/a.8-exp.20110129080700/otrs-3.0.5.log >Fix: --- p5-Apache-Reload.diff begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/p5-Apache-Reload/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- Makefile 15 Jan 2011 10:33:00 -0000 1.12 +++ Makefile 18 Feb 2011 23:08:03 -0000 @@ -17,12 +17,13 @@ MAKE_JOBS_SAFE= yes PERL_CONFIGURE= yes +USE_APACHE= 13+ MAN3= Apache2::Reload.3 Apache::Reload.3 .include -.if defined(WITH_MODPERL2) +.if defined(WITH_MODPERL2) || ${APACHE_VERSION} > 13 BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2 RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/mod_perl2.pm:${PORTSDIR}/www/mod_perl2 MAKE_ENV+= MOD_PERL=2 --- p5-Apache-Reload.diff ends here ---