pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46709: pkgsrc-2012Q2 www/ap-php uses wrong PKG_OPTIONS variable



>Number:         46709
>Category:       pkg
>Synopsis:       pkgsrc-2012Q2 www/ap-php uses wrong PKG_OPTIONS variable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 16 16:05:00 +0000 2012
>Originator:     Wolfgang Stukenbrock
>Release:        NetBSD 5.1.2
>Organization:
Dr. Nagler & Company GmbH
>Environment:
        
        
System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 
2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
        The make of www/ap-php reports that the correct opitons variable is 
PKG_OPTIONS.ap22-php53.
        But when setting that one, it ignores the value and reports that it has 
not been set.
        PKG_DEFAULT_OPTIONS works as expected.
        I've tried to debug thsi with "make -dA" but haven't found the reason 
for this behaviour.
        I'v only found that a ':C' substitution results in '-php53' near the 
printing that
        the options has not been set and setting PKG_OPTIONS.-php53 will add 
the options to the
        compilation.
        So somewhere in the *.mk files there seems to be a bad substition so 
that not the correct
        variable name is look for the settings.
        There are other packages that are affected by this too. (at least 
www/php-fpm).

        remark: for the php setup it would be nice if all php relevant settings 
would come from
                the same variable. for php53 it is PKG_OPTIONS.php and for 
ap-php, that needs the
                same setup as php53, PKG_OPTIONS.ap22-php53 is used.
                But this is not the main topic of this report.
>How-To-Repeat:
        Try to compile www/ap-php with PKG_OPTIONS.ap22-php53 set, it will 
report that it is
        not set. When useing PKG_OPTIONS.-php53 instead, the make prints that 
PKG_OPTIONS.ap22-php53
        has been set and uses the defintions.
>Fix:
        not know - I thing there is a bug in the *.mk files of pkgsrc
        workaround: use PKG_OPTIONS.-php53

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index