Subject: pkg/9049: pkglint produces incorrect diagnosis
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 12/23/1999 22:09:38
>Number:         9049
>Category:       pkg
>Synopsis:       pkglint produces incorrect diagnosis
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 23 22:09:00 1999
>Last-Modified:
>Originator:     ITOH Yasufumi
>Organization:
	
>Release:        1,4P (Dec. 23, 1999)
>Environment:
System: NetBSD pino.my.domain 1.4P NetBSD 1.4P (PINO) #190: Thu Dec 16 00:21:02 JST 1999 itohy@pino.my.domain:/usr/src/sys/arch/i386/compile/PINO i386

packages:
	pkglint-1.88 (pkglint.pl 1.17, dated 1999/12/07)
	perl-5.00404

a.out environment.


>Description:
	pkglint sometimes produces incorrect diagnosis.

	pkglint at pkgsrc/japanese/skkserv displays 1 warn and 1 error,
	both of which are inaccurate or incorrect.

>How-To-Repeat:

% cd /usr/pkgsrc/japanese/skkserv
% make makepatchsum
===> Making patch checksums
>Fix:
	Unknown.
>Audit-Trail:
>Unformatted:
>> patch-sum file unchanged
% pkglint
OK: checking pkg/COMMENT.
OK: checking pkg/DESCR.
OK: checking Makefile.
WARN: extra item placed in the PATCH_SITES section, for example, "PATCH_SITES".
OK: checking patches/patch-aa.
OK: checking patches/patch-ab.
OK: checking patches/patch-ac.
OK: checking patches/patch-ad.
OK: checking patches/patch-ae.
OK: checking patches/patch-af.
OK: checking patches/patch-ag.
OK: checking patches/patch-bsearch.
OK: checking files/patch-sum.
FATAL: patchfile 'patch-jisyo' is in files/patch-sum
       but not in ./patches/patch-jisyo. Rerun 'make makepatchsum'.
OK: checking files/md5.
1 fatal errors and 1 warnings found.
zsh: 17832 exit 1     pkglint
%

	The "WARN" diagnosis is inaccurate.
	The extra item is not "PATCH_SITES", but "PATCH_DIST_ARGS".

	The "FATAL" diagnosis is totally out-of-point.