pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk To check if the pkg_install tools are up to da...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d604e909485
branches:  trunk
changeset: 503353:9d604e909485
user:      agc <agc%pkgsrc.org@localhost>
date:      Sat Nov 19 00:30:54 2005 +0000

description:
To check if the pkg_install tools are up to date, the bulk build script
cd's into pkgtools/pkglint and does a "make fetch".

Since the audit-packages check was introduced to bsd.pkg.mk, this
"make fetch" will fail with an error message which looks like:

        ===> do-fetch [pkglint-4.42.1] ===> Checking for vulnerabilities in pkglint-4.42.1
        ===> check-vulnerable [pkglint-4.42.1] ===> *** The audit-packages package must be at least version 1.40
        ===> check-vulnerable [pkglint-4.42.1] ===> *** Please install the security/audit-packages package and run
        ===> check-vulnerable [pkglint-4.42.1] ===> *** '/usr/pkg/sbin/download-vulnerability-list'.
        *** Error code 1

since there is no audit-packages package installed at this point (we
are still doing the pre-installation checks).

So call "make fetch" with an additional SKIP_AUDIT_PACKAGES=yes
argument at this point.

diffstat:

 mk/bulk/build |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 1c2c55d1c06c -r 9d604e909485 mk/bulk/build
--- a/mk/bulk/build     Fri Nov 18 23:46:18 2005 +0000
+++ b/mk/bulk/build     Sat Nov 19 00:30:54 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: build,v 1.78 2005/11/18 11:43:25 agc Exp $
+# $NetBSD: build,v 1.79 2005/11/19 00:30:54 agc Exp $
 
 #
 # Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%NetBSD.org@localhost>
@@ -216,7 +216,7 @@
 # Check that the package tools are up to date.
 #
 ( cd "${pkglint_dir}" \
-  && ${BMAKE} fetch >/dev/null 2>&1
+  && ${BMAKE} fetch SKIP_AUDIT_PACKAGES=yes >/dev/null 2>&1
 ) || {
        echo "Updating pkgtools"
        ( cd "${pkgsrc_dir}/pkgtools/pkg_install" \



Home | Main Index | Thread Index | Old Index