Subject: pkg/36881: lintpkgsrc -g does not understand variable package name prefixes (python, apache and PHP)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <adrianp@stindustries.net>
List: pkgsrc-bugs
Date: 09/02/2007 09:15:01
>Number:         36881
>Category:       pkg
>Synopsis:       lintpkgsrc -g does not understand variable package name prefixes (python, apache and PHP)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 02 09:15:01 +0000 2007
>Originator:     Adrian Portelli
>Release:        NetBSD 3.1
>Organization:
STIndustries
>Environment:
NetBSD jimbo.stindustries.local 3.1 NetBSD 3.1 (STI-JIMBO-2006010101) #0: Sat Dec 30 13:51:42 GMT 2006  bb@quimby.stindustries.local:/var/builds/kernels/STI-JIMBO/sys/arch/i386/compile/STI-JIMBO i386
>Description:
When running lintpkgsrc -g against pkgsrc HEAD or pkgsrc stable the top of the file is littered with entries such as:

-auth-external  www/ap-auth-external    2.2.11nb1
-cjkcodecs      converters/py-cjkcodecs 1.1.1nb1
-pear-Date      time/pear-Date  1.4.3nb1

>From a quick glance lintpkgsrc does not seem to comprehend packages which have a variable PKGNAME prefix.  This causes problems for Python (py15, py20, py21, py22, py23, py24), Apache (ap13, ap2, ap22) and PHP (php4, php5) based packages. 

It should use the default values for these on a per package basis:

PYTHON_VERSION_DEFAULT 
(but honoring PYTHON_VERSIONS_ACCEPTED of the package)

PKG_APACHE_DEFAULT     
(but honoring PKG_APACHE_ACCEPTED of the package)

PHP_VERSION_DEFAULT    
(but honoring PHP_VERSIONS_ACCEPTED of the package)
>How-To-Repeat:
lintpkgsrc -g
>Fix: