NetBSD Problem Report #10087
Received: (qmail 10960 invoked from network); 10 May 2000 01:20:27 -0000
Message-Id: <200005100119.SAA05669@fartmangler.redback.com>
Date: Tue, 9 May 2000 18:19:56 -0700 (PDT)
From: <dogcow@redback.com>
Reply-To: dogcow@redback.com
To: gnats-bugs@gnats.netbsd.org
Subject: Multiply found dependencies screw up pkgsrc
X-Send-Pr-Version: 3.95
>Number: 10087
>Category: pkg
>Synopsis: Multiply found dependencies screw up pkgsrc
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 10 01:21:00 +0000 2000
>Closed-Date: Wed May 10 15:45:23 +0000 2000
>Last-Modified: Wed May 10 15:45:23 +0000 2000
>Originator:
>Release: NetBSD-1.4.2, pkgsrc as of 9 May 2000
>Organization:
Redback Networks
>Environment:
System: NetBSD fartmangler.redback.com 1.4.2 NetBSD 1.4.2 (EQUITY) #5: Thu Mar 23 12:49:57 PST 2000 dogcow@admin:/build/nbsrc/1.4.2/syssrc/sys/arch/i386/compile/EQUITY i386
>Description:
Some pkgsrc Makefiles have lines like this, taken from xv:
DEPENDS+= ghostscript{,-nox11,-x11}-[0-9]*:../../print/ghostscript-x11
with ghostscript6, there are now /ghostscript/ _and_ /ghostscript-x11/
packages; because both of these are found, the error
===> Validating dependencies for xv-3.10apl1
Installed package ghostscript{,-nox11,-x11}-[0-9]* is an a.out
a.out package.
You are building an a.out package, which will not inter-operate.
Please update the ghostscript{,-nox11,-x11}-[0-9]* package to a.out
*** Error code 1
will occur
>How-To-Repeat:
install pkgsrc ghostscript6, and attempt to install a program that
requires ghostscript in the manner described above.
>Fix:
For a workaround, you can simply delete the initial comma in the depends:
DEPENDS+= ghostscript{-nox11,-x11}-[0-9]*:../../print/ghostscript-x11
However, it would probably be desirable to fix this problem in the
pkgsrc makefiles to properly handle multiply-found dependencies per line.
(and/or have a 'pkgsrc lint' program.)
>Release-Note:
>Audit-Trail:
From: Frederick Bruckman <fb@enteract.com>
To: dogcow@redback.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10087: Multiply found dependencies screw up pkgsrc
Date: Tue, 9 May 2000 20:46:44 -0500 (CDT)
On Tue, 9 May 2000 dogcow@redback.com wrote:
> Some pkgsrc Makefiles have lines like this, taken from xv:
>
> DEPENDS+= ghostscript{,-nox11,-x11}-[0-9]*:../../print/ghostscript-x11
What's wrong with ghostscript-*, or even ghostscript (to get
ghostscript5-*)? "Xv" just execs() "gs", so any version should do.
> with ghostscript6, there are now /ghostscript/ _and_ /ghostscript-x11/
> packages; because both of these are found, the error
> ===> Validating dependencies for xv-3.10apl1
> Installed package ghostscript{,-nox11,-x11}-[0-9]* is an a.out
> a.out package.
> You are building an a.out package, which will not inter-operate.
> Please update the ghostscript{,-nox11,-x11}-[0-9]* package to a.out
> *** Error code 1
State-Changed-From-To: open->analyzed
State-Changed-By: hubertf
State-Changed-When: Wed May 10 04:37:46 PDT 2000
State-Changed-Why:
This problem should be fixed in the pkgs, as described
in my other mail.
Still the pkg system should be fixed to at least *warn* properly
about dependencies fulfilled by more than one pkg. (This is already
done so in the fake-pkg target, but should be moved to the "depends"
target or so... I'd like to clean up the BUILD_DEPENDS sytax before
that, though.)
- Hubert
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: jlam@netbsd.org
Cc: dogcow@redback.com, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10087: Multiply found dependencies screw up pkgsrc
Date: Wed, 10 May 2000 13:38:20 +0200 (MET DST)
Johnny,
looking at PR 10087, it seems that the DEPENDS for at least xv and
probably some others is wrong. Looking at print/ghostscript it even says:
# This package is an alias for ghostscript-x11 to facilitate correct
# dependencies involving older versions of ghostscript for binary packages.
... and should not be used as depends.
The pkg system does catch the case of multiply fulfilled dependency in
some places, but it should be done much earlier - unfortunately that's not
really possible/easy & elegant to do with the current BUILD_DEPENDS
syntax, so we'll have to live with this for now. Still, iff more than one
package fulfils a dependency, this indicates some problem that should not
happen. That's exactly the reason we don't allow conflicting pkgs to be
installed, or have multiple versions of the same pkg installed.
Can we please resolve this to either
1) Move the ghostscript-x11 pkg to ghostscript or
2) Make it clear that the ghostscript-x11 package is the thing to use
I'd prefer 1), as it will not give us another pkg that can lead to
confusion and errors (as in this PR), plus it does what most people
expect. Still users wanting a tty version can get one.
In any case, the DEPENDS should only list one of the two pkgs.
Affected pkgs are:
comms/hylafax/Makefile
graphics/xv/Makefile
japanese/vfghostscript5/Makefile
print/ggv/Makefile
print/ghostscript-nox11/Makefile.common
print/ghostscript/Makefile
print/gnome-print/Makefile
print/gv/Makefile
print/html2ps/Makefile
print/magicfilter/Makefile
print/stylewriter/Makefile
- Hubert
On Tue, 9 May 2000 dogcow@redback.com wrote:
>
> >Number: 10087
> >Category: pkg
> >Synopsis: Multiply found dependencies screw up pkgsrc
> >Confidential: no
> >Severity: serious
> >Priority: low
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Tue May 09 18:21:00 PDT 2000
> >Closed-Date:
> >Last-Modified:
> >Originator:
> >Release: NetBSD-1.4.2, pkgsrc as of 9 May 2000
> >Organization:
> Redback Networks
>
> >Environment:
>
> System: NetBSD fartmangler.redback.com 1.4.2 NetBSD 1.4.2 (EQUITY) #5: Thu Mar 23 12:49:57 PST 2000 dogcow@admin:/build/nbsrc/1.4.2/syssrc/sys/arch/i386/compile/EQUITY i386
>
>
> >Description:
> Some pkgsrc Makefiles have lines like this, taken from xv:
>
> DEPENDS+= ghostscript{,-nox11,-x11}-[0-9]*:../../print/ghostscript-x11
>
> with ghostscript6, there are now /ghostscript/ _and_ /ghostscript-x11/
> packages; because both of these are found, the error
> ===> Validating dependencies for xv-3.10apl1
> Installed package ghostscript{,-nox11,-x11}-[0-9]* is an a.out
> a.out package.
> You are building an a.out package, which will not inter-operate.
> Please update the ghostscript{,-nox11,-x11}-[0-9]* package to a.out
> *** Error code 1
>
> will occur
>
> >How-To-Repeat:
> install pkgsrc ghostscript6, and attempt to install a program that
> requires ghostscript in the manner described above.
>
> >Fix:
> For a workaround, you can simply delete the initial comma in the depends:
>
> DEPENDS+= ghostscript{-nox11,-x11}-[0-9]*:../../print/ghostscript-x11
>
> However, it would probably be desirable to fix this problem in the
> pkgsrc makefiles to properly handle multiply-found dependencies per line.
> (and/or have a 'pkgsrc lint' program.)
>
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>
--
NetBSD - because Unix isn't just #include <linux.h>, i386, ELF, ...!
From: "Johnny C. Lam" <lamj@stat.cmu.edu>
To: hubert.feyrer@informatik.fh-regensburg.de
Cc: jlam@netbsd.org, dogcow@redback.com, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10087: Multiply found dependencies screw up pkgsrc
Date: Wed, 10 May 2000 11:01:40 -0400
Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de> writes:
> Can we please resolve this to either
> 1) Move the ghostscript-x11 pkg to ghostscript or
> 2) Make it clear that the ghostscript-x11 package is the thing to use
>
> I'd prefer 1), as it will not give us another pkg that can lead to
> confusion and errors (as in this PR), plus it does what most people
> expect. Still users wanting a tty version can get one.
Okay. I think you're right about moving ghostscript-x11 to
ghostscript. I was trying too hard to make current packages work
correctly with older ghostscript packages, and clearly I didn't get it
right.
-- Johnny C. Lam <lamj@stat.cmu.edu>
Department of Statistics, Carnegie Mellon University
http://www.stat.cmu.edu/~lamj/
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
To: "Johnny C. Lam" <lamj@stat.cmu.edu>
Cc: jlam@netbsd.org, dogcow@redback.com, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10087: Multiply found dependencies screw up pkgsrc
Date: Wed, 10 May 2000 17:10:42 +0200 (MET DST)
On Wed, 10 May 2000, Johnny C. Lam wrote:
> Okay. I think you're right about moving ghostscript-x11 to
> ghostscript. I was trying too hard to make current packages work
> correctly with older ghostscript packages, and clearly I didn't get it
> right.
Thanks in advance for handling this - please take over the PR as well
then.
- Hubert
--
NetBSD - because Unix isn't just #include <linux.h>, i386, ELF, ...!
State-Changed-From-To: analyzed->closed
State-Changed-By: jlam
State-Changed-When: Wed May 10 08:41:44 PDT 2000
State-Changed-Why:
Ghostscript package merged with ghostscript-x11. Multiple matches for
dependencies have been fixed to not occur.
>Unformatted:
(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.