diff options
author | jlam <jlam@pkgsrc.org> | 2006-06-06 14:19:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-06-06 14:19:10 +0000 |
commit | 586ee78fb4b30e99ee11408a4156588e4c8703ea (patch) | |
tree | 0764934707592ff45affd0c1b86c1e8a4a087e8b /mk/flavor | |
parent | 0745c2824428d3b47135241557099606f1b4803f (diff) | |
download | pkgsrc-586ee78fb4b30e99ee11408a4156588e4c8703ea.tar.gz |
We diverged too much from reduce-depends.mk -- reduce-depends.mk
outputted dependencies if they conflicted and it didn't know how to
handle them, whereas reduce-depends.awk was removing them completely.
Restore the old behavior.
This fixes problems that manifest when multiple dependencies can be
built from the same pkgsrc package directory and which don't conflict
with each other, e.g. py23-gtk2 and py23-gtk2 can both be built from
pkgsrc/x11/py-gtk2.
Diffstat (limited to 'mk/flavor')
-rwxr-xr-x | mk/flavor/pkg/reduce-depends.awk | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mk/flavor/pkg/reduce-depends.awk b/mk/flavor/pkg/reduce-depends.awk index d7c416fb22f..6ff5bc1d049 100755 --- a/mk/flavor/pkg/reduce-depends.awk +++ b/mk/flavor/pkg/reduce-depends.awk @@ -1,6 +1,6 @@ #!/usr/bin/awk -f # -# $NetBSD: reduce-depends.awk,v 1.1 2006/06/03 23:11:42 jlam Exp $ +# $NetBSD: reduce-depends.awk,v 1.2 2006/06/06 14:19:10 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -126,10 +126,15 @@ BEGIN { if (match_all == 0) continue reduced[N++] = dep ":" pkgsrcdirs[pkgpath] } - # This should theoretically never happen. - if (match_all == "no") { - print "ERROR: [" PROGNAME "] conflicting dependencies" | ERRCAT - exit 1 + # + # If there are conflicting dependencies, then just pass them + # through and let the rest of the pkgsrc machinery handle it. + # + if (match_all == 0) { + for (d = 1; d <= D; d++) { + dep = depends[pkgpath, d] + reduced[N++] = dep ":" pkgsrcdirs[pkgpath] + } } for (dep in ge_depends) delete ge_depends[dep] |