ports/148637: Ports: Options are ignored for any port that defers setting PKGNAMEPREFIX

Christopher Key cjk32 at cam.ac.uk
Thu Jul 15 13:40:01 UTC 2010


>Number:         148637
>Category:       ports
>Synopsis:       Ports: Options are ignored for any port that defers setting PKGNAMEPREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 13:40:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Christopher Key
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD chacal.wzl33 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #2: Sat Jun 19 15:45:05 BST 2010 root at chacal.wzl33:/usr/obj/usr/src/sys/CHACAL amd64


	
>Description:
Many ports defer setting of PKGNAMEPREFIX, basing it upon variables set in other parts of the ports infrastructure.  This can result in differing values for ${OPTIONSFILE} between when the WITH_ and WITHOUT_ variables are set, and when the config target is run, meaning that any options set for such ports are ignored.

>How-To-Repeat:
Consider www/mod_musicindex.  Its Makefile contains:

#v+
PKGNAMEPREFIX=  ${APACHE_PKGNAMEPREFIX}
...
USE_APACHE=     2.0+
#v-

The WITH_ and WITHOUT_ variables are set before the bsd.apache.mk is included, giving an expansion of /var/db/ports/mod_musicindex/options for ${OPTIONSFILE}.  However, when the config or showconfig targets are run, bsd.apache.mk has now been included, giving an expansion of /var/db/ports/ap20-mod_musicindex/options for ${OPTIONSFILE}.

#v+
# cd /usr/ports/www/mod_musicindex
# make rmconfig
# make showconfig
===> The following configuration options are available for ap20-mod_musicindex-1.3.3_2:
     NLS=on (default) "Native language support"
     FLAC=off (default) "FLAC support"
     MP3=on (default) "MP3 support"
     MP4=off (default) "MP4 support"
     VORBIS=off (default) "Ogg/Vorbis support"
     LIBARCHIVE=on (default) "Archive downloading support"
     FILECACHE=on (default) "Caching support"
===> Use 'make config' to modify these settings
# make -V WITH_MP4

# make -V WITHOUT_MP4
true
# make config (enable MP4)
# make showconfig
===> The following configuration options are available for ap20-mod_musicindex-1.3.3_2:
     NLS=on "Native language support"
     FLAC=off "FLAC support"
     MP3=on "MP3 support"
     MP4=on "MP4 support"
     VORBIS=off "Ogg/Vorbis support"
     LIBARCHIVE=on "Archive downloading support"
     FILECACHE=on "Caching support"
===> Use 'make config' to modify these settings
# make -V WITH_MP4

# make -V WITHOUT_MP4
true
# cp -r /var/db/ports/ap20-mod_musicindex /var/db/ports/mod_musicindex
# make -V WITH_MP4
true
# make -V WITHOUT_MP4

#v-

>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list