Subject: pkg/32202: BUILD_DEPENDS on nonexisting pkg confuses the bulk build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kristerw@netbsd.org>
List: pkgsrc-bugs
Date: 11/30/2005 21:29:00
>Number: 32202
>Category: pkg
>Synopsis: BUILD_DEPENDS on nonexisting pkg confuses the bulk build
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 30 21:29:00 +0000 2005
>Originator: Krister Walfridsson
>Release: pkgsrc as of Nov 30 2005
>Organization:
>Environment:
System: NetBSD homeworld.netbsd.org 2.0.2_STABLE NetBSD 2.0.2_STABLE (NBMAIL) #0: Fri Jul 22 20:47:54 UTC 2005 root@ADMIN:/usr/src/sys/arch/i386/compile/NBMAIL i386
Architecture: i386
Machine: i386
>Description:
"make show-depends-dirs" does not handle BUILD_DEPENDS on nonexisting
packages. You can see this by adding a line such as
BUILD_DEPENDS+= nonexisting>=0.62:../../devel/nonexisting
to a package:
> make show-depends-dirs
cd: can't cd to ../../devel/nonexisting
usage: dirname path
usage: basename string [suffix]
usage: basename string [suffix]
devel/gmake / graphics/png pkgtools/x11-links
The "make show-depends-dirs" has two problems:
1. It returns success, so the bulk script does not notice that the pkg is
broken when it builds the dependency graph.
2. The dependencies listed by "make show-depends-dirs" does contain "/"
which means that the bulk build eventually want to build "/" (which
means that it runs "make" in ${pkgsrc_dir}).
>How-To-Repeat:
>Fix:
>Unformatted: