Subject: pkg/10584: pkglint fails to find depend directories in certain cases
To: None <gnats-bugs@gnats.netbsd.org>
From: None <damon@brodiefamily.org>
List: netbsd-bugs
Date: 07/17/2000 23:48:47
>Number:         10584
>Category:       pkg
>Synopsis:       pkglint fails to find depend directories in certain cases
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 14 08:43:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Damon Brodie
>Release:        NetBSD 1.4.2A
>Organization:
	
>Environment:
	
System: NetBSD nomad.brodiefamily.org 1.4.2A NetBSD 1.4.2A (PLAINS) #8: Thu May 18 10:31:18 EDT 2000 damon@nomad.brodiefamily.org:/usr/src/sys/arch/i386/compile/PLAINS i386


>Description:
	If pkglint is run from a directory other than the pkg directory, it will fail to find dependency pkg directories.
>How-To-Repeat:
	cd pkgsrc/graphics
	pkglint p5-GD

	Watch it send a warning:

	WARN: no package directory ../../graphics/gd found, even though it is listed in DEPENDS.

>Fix:
	cd to the pkg dir and do a "pkglint ."

	or apply this patch to pkglint

--- pkglint.pl.orig     Fri Jul 14 11:26:16 2000
+++ pkglint.pl  Fri Jul 14 11:29:09 2000
@@ -1129,7 +1129,7 @@
                                if ($osname ne "NetBSD") {
                                        $k =~ s/\${PORTSDIR}/$ENV{'PORTSDIR'}/;
                                }
-                               if (! -d $k) {
+                               if (! -d $portdir."/".$k) {
                                        &perror("WARN: no package directory $k ".
                                                "found, even though it is ".
                                                "listed in $j.");
>Release-Note:
>Audit-Trail:
>Unformatted: