Bug 104282 - bsd.apache.mk - strange apache20 vs apache22 issue
Summary: bsd.apache.mk - strange apache20 vs apache22 issue
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 01:10 UTC by edwin
Modified: 2009-01-12 21:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description edwin 2006-10-11 01:10:14 UTC
On a machine with Apache 2.2, I try to install www/mod_perl2.
mod_perl2 has USE_APACHE=2.0+:

    [/usr/ports/www/mod_perl2] root@ports>make all-depends-list
    /usr/ports/lang/perl5.8
    /usr/ports/www/apache22
    /usr/ports/lang/python

And then to install www/p5-Apache-DBI with mod_perl2. p5-Apache-DBI
has USE_APACHE=yes:

    [/usr/ports/www/p5-Apache-DBI] root@ports>WITH_MODPERL2=yes make -V USE_APACHE
    yes
    [/usr/ports/www/p5-Apache-DBI] root@ports>WITH_MODPERL2=yes make all-depends-list
    /usr/ports/lang/perl5.8
    /usr/ports/www/apache20

Changing USE_APACHE=yes to USE_APACHE=1.3+, it depends on:

    [/usr/ports/www/p5-Apache-DBI] root@ports>WITH_MODPERL2=yes make -V USE_APACHE
    1.3+

    [/usr/ports/www/p5-Apache-DBI] root@ports>WITH_MODPERL2=yes make all-depends-list
    /usr/ports/lang/perl5.8
    /usr/ports/www/apache22

Fix: 

In bsd.port.mk, replace:

	APACHE_PORT?=   www/apache20

with something in the line of:

	FOO!=		httpd -v | awk -F/ '{ print $2 }' | awk -F. '{ print $1$2 }' | head -1
	USE_APACHE!=	www/apache${FOO}
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-10-11 01:16:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

bsd.apache.mk is clement territory
Comment 2 Philip M. Gollucci 2007-04-23 03:41:33 UTC
please CC on this (I'm maintainer of www/mod_perl2 and www/p5-Apache-DBI)

Also, remember to account for when httpd is not yet installed aka a 
reasonable default.

-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
Comment 3 pgollucci 2008-07-16 22:04:06 UTC
I think I disagree

I have www/apache22 installed.

I do not have APACHE_PORT set in /etc/make.conf or in ENV.


/usr/ports/www/p5-Apache-DBI>
make all-depends-list WITH_MODPERL2=yes
/usr/ports/lang/perl5.8
/usr/ports/databases/p5-DBI
/usr/ports/www/mod_perl2
/usr/ports/www/apache22
/usr/ports/devel/p5-Storable
/usr/ports/devel/p5-BSD-Resource
/usr/ports/lang/python
/usr/ports/devel/autoconf261
/usr/ports/devel/libtool15
/usr/ports/textproc/expat2
/usr/ports/devel/apr
/usr/ports/devel/pcre
/usr/ports/converters/libiconv
/usr/ports/databases/mysql51-client
/usr/ports/lang/python25
/usr/ports/devel/m4
/usr/ports/misc/help2man
/usr/ports/devel/gmake
/usr/ports/devel/autoconf-wrapper
/usr/ports/devel/automake19
/usr/ports/devel/p5-Locale-gettext
/usr/ports/devel/gettext
/usr/ports/devel/automake-wrapper

I might have inadvertantly fixed in the last www/p5-Apache-DBI update.

I think this can be closed, if not, should mark it suspend pending the 
bsd.apacheNG.mk

-- 
------------------------------------------------------------------------
Philip M. Gollucci (philip@ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
Comment 4 Philip M. Gollucci freebsd_committer freebsd_triage 2008-12-27 20:27:50 UTC
Responsible Changed
From-To: clement->apache

apache team
Comment 5 Philip M. Gollucci freebsd_committer freebsd_triage 2008-12-30 05:15:20 UTC
State Changed
From-To: open->feedback

Edwin, I may have accidentally worked around this when I split 
www/p5-ApacheDBI into -mp1 and -mp2, can you please try again ?
Comment 6 Philip M. Gollucci freebsd_committer freebsd_triage 2009-01-12 21:46:47 UTC
State Changed
From-To: feedback->closed

Fixed with the -mp1, -mp2 split of this port