Subject: pkg/37284: pkglint could check for an even # of args to CONF_FILES
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <he@uninett.no>
List: pkgsrc-bugs
Date: 11/05/2007 11:00:00
>Number:         37284
>Category:       pkg
>Synopsis:       pkglint could check for an even # of args to CONF_FILES
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 05 11:00:00 +0000 2007
>Originator:     Havard Eidnes
>Release:        NetBSD 3.1_STABLE
>Organization:
	UNINETT AS
>Environment:
System: NetBSD smistad.uninett.no 3.1_STABLE NetBSD 3.1_STABLE (SMISTAD) #1: Wed Jan 24 17:28:31 CET 2007 he@smistad.uninett.no:/usr/obj/sys/arch/i386/compile/SMISTAD i386
Architecture: i386
Machine: i386
>Description:
	pkglint could benefit from checking that the CONF_FILES
	setting contains an even number of entries.  Failure to do so
	exposes the user to the following rather obtuse error message
	during install:

shift: can't shift that many
*** Error code 2

	while pkglint says "looks fine."  (This is on pkgsrc-2007Q3.)

>How-To-Repeat:
	Try to make a package with just one entry in CONF_FILES, watch
	install fail.

>Fix:
	
	Sorry, none provided.