NetBSD Problem Report #10584

Received: (qmail 946 invoked from network); 14 Jul 2000 15:42:34 -0000
Message-Id: <200007141542.LAA08281@brodiefamily.org>
Date: Fri, 14 Jul 2000 11:42:33 -0400 (EDT)
From: damon@brodiefamily.org
Reply-To: damon@brodiefamily.org
To: gnats-bugs@gnats.netbsd.org
Subject: pkglint fails to find depend directories in certain cases
X-Send-Pr-Version: 3.95

>Number:         10584
>Category:       pkg
>Synopsis:       pkglint fails to find depend directories in certain cases
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hubertf
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 14 15:43:01 +0000 2000
>Closed-Date:    Sat Jul 15 14:39:13 +0000 2000
>Last-Modified:  Sat Jul 15 14:39:13 +0000 2000
>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:
State-Changed-From-To: open->analyzed 
State-Changed-By: hubertf 
State-Changed-When: Fri Jul 14 09:04:00 PDT 2000 
State-Changed-Why:  
The suggested fix is correct for the described problem 
There are a few other cases, though, that aren't caught. Mostly 
if an absolute path (${PKGsomething}) is specified.  
I'll look into this too, while there. 


- Hubert 


Responsible-Changed-From-To: pkg-manager->hubertf 
Responsible-Changed-By: hubertf 
Responsible-Changed-When: Fri Jul 14 09:04:00 PDT 2000 
Responsible-Changed-Why:  
i'll handle this 
State-Changed-From-To: analyzed->feedback 
State-Changed-By: hubertf 
State-Changed-When: Fri Jul 14 09:09:26 PDT 2000 
State-Changed-Why:  
I've committed an update to V2.11, please check and let me know if that works for you (it's mostly 
your change :-) 


- Hubert 
State-Changed-From-To: feedback->closed 
State-Changed-By: hubertf 
State-Changed-When: Sat Jul 15 07:38:27 PDT 2000 
State-Changed-Why:  
problem reported as fixed 


- Hubert 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.