ports/104282: bsd.apache.mk - strange apache20 vs apache22 issue

Edwin Groothuis edwin at mavetju.org
Wed Oct 11 00:10:16 UTC 2006


>Number:         104282
>Category:       ports
>Synopsis:       bsd.apache.mk - strange apache20 vs apache22 issue
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 11 00:10:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root at opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386


>Description:

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 at 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 at ports>WITH_MODPERL2=yes make -V USE_APACHE
    yes
    [/usr/ports/www/p5-Apache-DBI] root at 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 at ports>WITH_MODPERL2=yes make -V USE_APACHE
    1.3+

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

>How-To-Repeat:
>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}
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list