Module Name:    src
Committed By:   bouyer
Date:           Tue Aug 18 10:33:25 UTC 2009

Modified Files:
        src/external/bsd/pkg_install/dist/info [netbsd-4]: perform.c
        src/external/bsd/pkg_install/dist/lib [netbsd-4]: license.c
            pkg_install.conf.5.in version.h

Log Message:
Pull up following revision(s) (requested by joerg in ticket #1346):
        external/bsd/pkg_install/dist/info/perform.c: revision 1.1.1.10
        external/bsd/pkg_install/dist/lib/license.c: revision 1.1.1.4
        external/bsd/pkg_install/dist/lib/pkg_install.conf.5.in: revision 
1.1.1.5
        external/bsd/pkg_install/dist/lib/version.h: revision 1.1.1.17
Import pkg_install-20090724:
- license handling: accept upper case letters. Keep license checks
  case-sensitive as done in the older pkgsrc logic. Document this.
  OK dillo@, schmonz@, wiz@
- pkg_info:
- fix handling of non-packages, that are valid archives
- invert order of pkg_info -r to better match the expectations of
  make update.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.9.4.2 -r1.1.1.9.4.3 \
    src/external/bsd/pkg_install/dist/info/perform.c
cvs rdiff -u -r1.1.1.2.8.3 -r1.1.1.2.8.4 \
    src/external/bsd/pkg_install/dist/lib/license.c
cvs rdiff -u -r1.1.1.4.10.2 -r1.1.1.4.10.3 \
    src/external/bsd/pkg_install/dist/lib/pkg_install.conf.5.in
cvs rdiff -u -r1.1.1.15.4.3 -r1.1.1.15.4.4 \
    src/external/bsd/pkg_install/dist/lib/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/pkg_install/dist/info/perform.c
diff -u src/external/bsd/pkg_install/dist/info/perform.c:1.1.1.9.4.2 src/external/bsd/pkg_install/dist/info/perform.c:1.1.1.9.4.3
--- src/external/bsd/pkg_install/dist/info/perform.c:1.1.1.9.4.2	Fri Jun  5 17:19:40 2009
+++ src/external/bsd/pkg_install/dist/info/perform.c	Tue Aug 18 10:33:25 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: perform.c,v 1.1.1.9.4.2 2009/06/05 17:19:40 snj Exp $	*/
+/*	$NetBSD: perform.c,v 1.1.1.9.4.3 2009/08/18 10:33:25 bouyer Exp $	*/
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -13,7 +13,7 @@
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
-__RCSID("$NetBSD: perform.c,v 1.1.1.9.4.2 2009/06/05 17:19:40 snj Exp $");
+__RCSID("$NetBSD: perform.c,v 1.1.1.9.4.3 2009/08/18 10:33:25 bouyer Exp $");
 
 /*-
  * Copyright (c) 2008 Joerg Sonnenberger <[email protected]>.
@@ -232,7 +232,7 @@
 	}
 
 	meta->is_installed = 0;
-	if (found_required != 0 && r != ARCHIVE_OK && r != ARCHIVE_EOF) {
+	if (found_required != 0 || (r != ARCHIVE_OK && r != ARCHIVE_EOF)) {
 		free_pkg_meta(meta);
 		meta = NULL;
 	}
@@ -326,7 +326,7 @@
 		build_full_reqby(reqby, meta_dep, limit + 1);
 		free_pkg_meta(meta_dep);
 
-		TAILQ_INSERT_TAIL(reqby, lpp, lp_link);
+		TAILQ_INSERT_HEAD(reqby, lpp, lp_link);
 	}
 }
 

Index: src/external/bsd/pkg_install/dist/lib/license.c
diff -u src/external/bsd/pkg_install/dist/lib/license.c:1.1.1.2.8.3 src/external/bsd/pkg_install/dist/lib/license.c:1.1.1.2.8.4
--- src/external/bsd/pkg_install/dist/lib/license.c:1.1.1.2.8.3	Sun Jun 21 11:41:38 2009
+++ src/external/bsd/pkg_install/dist/lib/license.c	Tue Aug 18 10:33:25 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: license.c,v 1.1.1.2.8.3 2009/06/21 11:41:38 bouyer Exp $	*/
+/*	$NetBSD: license.c,v 1.1.1.2.8.4 2009/08/18 10:33:25 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 2009 Joerg Sonnenberger <[email protected]>.
@@ -56,7 +56,9 @@
     "artistic artistic-2.0 "
     "cddl-1.0 "
     "cpl-1.0 "
-    "open-font-license ";
+    "open-font-license "
+    "mpl-1.1 "
+    "zpl";
 
 #ifdef DEBUG
 static size_t hash_collisions;
@@ -64,7 +66,8 @@
 
 static char **license_hash[HASH_SIZE];
 static const char license_spaces[] = " \t\n";
-static const char license_chars[] = "abcdefghijklmnopqrstuvwxyz0123456789_-.";
+static const char license_chars[] =
+    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-.";
 
 static size_t
 hash_license(const char *license, size_t len)

Index: src/external/bsd/pkg_install/dist/lib/pkg_install.conf.5.in
diff -u src/external/bsd/pkg_install/dist/lib/pkg_install.conf.5.in:1.1.1.4.10.2 src/external/bsd/pkg_install/dist/lib/pkg_install.conf.5.in:1.1.1.4.10.3
--- src/external/bsd/pkg_install/dist/lib/pkg_install.conf.5.in:1.1.1.4.10.2	Fri Jun  5 17:19:41 2009
+++ src/external/bsd/pkg_install/dist/lib/pkg_install.conf.5.in	Tue Aug 18 10:33:25 2009
@@ -1,4 +1,4 @@
-.\"	$NetBSD: pkg_install.conf.5.in,v 1.1.1.4.10.2 2009/06/05 17:19:41 snj Exp $
+.\"	$NetBSD: pkg_install.conf.5.in,v 1.1.1.4.10.3 2009/08/18 10:33:25 bouyer Exp $
 .\"
 .\" Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -50,6 +50,7 @@
 .Bl -tag -width indent
 .It Dv ACCEPTABLE_LICENSES
 List of licenses packages are allowed to carry.
+License names are case-sensitive.
 .It Dv ACTIVE_FTP
 Force the use of active FTP.
 .It Dv CERTIFICATE_ANCHOR_PKGS
@@ -83,6 +84,9 @@
 .El
 .It Dv DEFAULT_ACCEPTABLE_LICENSES
 List of common Free and Open Source licenses packages are allowed to carry.
+The default value contains all OSI approved licenses in pkgsrc on the date
+pkg_install was released.
+License names are case-sensitive.
 .It Dv GPG
 Path to
 .Xr gpg 1 ,

Index: src/external/bsd/pkg_install/dist/lib/version.h
diff -u src/external/bsd/pkg_install/dist/lib/version.h:1.1.1.15.4.3 src/external/bsd/pkg_install/dist/lib/version.h:1.1.1.15.4.4
--- src/external/bsd/pkg_install/dist/lib/version.h:1.1.1.15.4.3	Sun Jun 21 11:41:38 2009
+++ src/external/bsd/pkg_install/dist/lib/version.h	Tue Aug 18 10:33:25 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: version.h,v 1.1.1.15.4.3 2009/06/21 11:41:38 bouyer Exp $	*/
+/*	$NetBSD: version.h,v 1.1.1.15.4.4 2009/08/18 10:33:25 bouyer Exp $	*/
 
 /*
  * Copyright (c) 2001 Thomas Klausner.  All rights reserved.
@@ -27,6 +27,6 @@
 #ifndef _INST_LIB_VERSION_H_
 #define _INST_LIB_VERSION_H_
 
-#define PKGTOOLS_VERSION "20090610"
+#define PKGTOOLS_VERSION "20090724"
 
 #endif /* _INST_LIB_VERSION_H_ */

Reply via email to