From nobody@FreeBSD.org  Wed Jan 20 07:27:27 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A02C31065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Jan 2010 07:27:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 8F5CC8FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Jan 2010 07:27:27 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o0K7RRCg054007
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Jan 2010 07:27:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o0K7RRS5054006;
	Wed, 20 Jan 2010 07:27:27 GMT
	(envelope-from nobody)
Message-Id: <201001200727.o0K7RRS5054006@www.freebsd.org>
Date: Wed, 20 Jan 2010 07:27:27 GMT
From: Alex Deiter <alex.deiter@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] www/mod_perl2: USE_APACHE?=2.0+
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         143005
>Category:       ports
>Synopsis:       [PATCH] www/mod_perl2: USE_APACHE?=2.0+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 20 07:30:07 UTC 2010
>Closed-Date:    Wed Jan 20 08:43:17 UTC 2010
>Last-Modified:  Wed Jan 20 22:25:53 UTC 2010
>Originator:     Alex Deiter
>Release:        9.0-CURRENT
>Organization:
N/A
>Environment:
FreeBSD blackbox.deiter.net.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Tue Jan 19 19:14:46 MSK 2010     root@blackbox.deiter.net.ru:/usr/obj/usr/src/sys/BLACKBOX  i386

>Description:
I set USE_APACHE=22, but www/mod_perl2 build with www/apache20:

# cat /etc/make.conf

.if ${.CURDIR} == ${PORTSDIR}/www/mod_perl2
USE_APACHE=22
.endif

# cd /usr/ports/www/mod_perl2
# make  build-depends-list | grep apache
/usr/ports/www/apache20

>How-To-Repeat:
# cd /usr/ports/www/mod_perl2 && make USE_APACHE=22
>Fix:
--- www/mod_perl2/Makefile.orig 2010-01-20 10:16:45.861396150 +0300
+++ www/mod_perl2/Makefile      2010-01-20 10:16:56.769508454 +0300
@@ -24,7 +24,7 @@
 
 SUB_FILES=     pkg-message
 SUB_LIST=      APACHEMODDIR=${APACHEMODDIR}
-USE_APACHE=    2.0+
+USE_APACHE?=   2.0+
 PERL_CONFIGURE=        5.8.0+
 GMAKE=         yes


Patch attached with submission follows:

--- www/mod_perl2/Makefile.orig	2010-01-20 10:16:45.861396150 +0300
+++ www/mod_perl2/Makefile	2010-01-20 10:16:56.769508454 +0300
@@ -24,7 +24,7 @@
 
 SUB_FILES=	pkg-message
 SUB_LIST=	APACHEMODDIR=${APACHEMODDIR}
-USE_APACHE=	2.0+
+USE_APACHE?=	2.0+
 PERL_CONFIGURE=	5.8.0+
 GMAKE=		yes
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pgollucci 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jan 20 07:30:19 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143005 
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Wed Jan 20 08:43:15 UTC 2010 
State-Changed-Why:  
invalid, you never ever ever set USE_* in /etc/make.conf, you want 
APACHE_PORT=www/apache22

http://www.freebsd.org/cgi/query-pr.cgi?pr=143005 
>Unformatted:
