tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compound depends



On Mon, 24 Oct 2011 19:37:55 +0900, David Holland 
<dholland-pkgtech%netbsd.org@localhost> wrote:

1) is that depends entry supposed to work the way it is, or should it
be split up, as per the following patch?

It should not be split out.

2) is there a canonical reference for the syntax of depends entries?

PACKAGE WILDCARDS in pkg_info(1).


How about following?

Index: mk/pkgformat/pkg/reduce-depends.awk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/pkgformat/pkg/reduce-depends.awk,v
retrieving revision 1.1
diff -u -r1.1 reduce-depends.awk
--- mk/pkgformat/pkg/reduce-depends.awk 15 Oct 2011 00:23:09 -0000      1.1
+++ mk/pkgformat/pkg/reduce-depends.awk 24 Oct 2011 13:22:26 -0000
@@ -116,7 +116,7 @@
                for (d = 1; d <= D; d++) {
                        dep = depends[pkgpath, d]
                        if (dep ~ /[{]/ || \
-                           dep ~ />=[0-9][0-9\.]*<[0-9]+/ || \
+                           dep ~ />=[0-9][0-9\.]*(nb[0-9]+)?<[0-9]+/ || \
                            dep !~ />=[0-9]+/)
                        {
                                reduced[N++] = dep ":" pkgsrcdirs[pkgpath]


--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index