pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_chk Add a -d option to avoid cleaning aft...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d4edab69f417
branches:  trunk
changeset: 325792:d4edab69f417
user:      martin <martin%pkgsrc.org@localhost>
date:      Sun Nov 25 20:17:26 2018 +0000

description:
Add a -d option to avoid cleaning after building from source - for debuging
purposes or to speed up builds when the full WORKOBJDIR can be blown
away later much more efficently.
Bump version. OK: abs@

diffstat:

 pkgtools/pkg_chk/Makefile         |  4 ++--
 pkgtools/pkg_chk/files/pkg_chk.8  |  8 +++++---
 pkgtools/pkg_chk/files/pkg_chk.sh |  9 ++++++---
 3 files changed, 13 insertions(+), 8 deletions(-)

diffs (97 lines):

diff -r e93b9d39e9c4 -r d4edab69f417 pkgtools/pkg_chk/Makefile
--- a/pkgtools/pkg_chk/Makefile Sun Nov 25 19:26:29 2018 +0000
+++ b/pkgtools/pkg_chk/Makefile Sun Nov 25 20:17:26 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.88 2018/10/08 10:35:15 abs Exp $
+# $NetBSD: Makefile,v 1.89 2018/11/25 20:17:26 martin Exp $
 
-PKGNAME=       pkg_chk-2.0.10
+PKGNAME=       pkg_chk-2.0.11
 CATEGORIES=    pkgtools
 
 OWNER=         abs%NetBSD.org@localhost
diff -r e93b9d39e9c4 -r d4edab69f417 pkgtools/pkg_chk/files/pkg_chk.8
--- a/pkgtools/pkg_chk/files/pkg_chk.8  Sun Nov 25 19:26:29 2018 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.8  Sun Nov 25 20:17:26 2018 +0000
@@ -1,16 +1,16 @@
-.\"    $NetBSD: pkg_chk.8,v 1.30 2014/04/21 21:32:26 abs Exp $
+.\"    $NetBSD: pkg_chk.8,v 1.31 2018/11/25 20:17:26 martin Exp $
 .\"
 .\" Copyright (c) 2001 by David Brownlee (abs%NetBSD.org@localhost)
 .\" Absolutely no warranty.
 .\"
-.Dd May 2, 2008
+.Dd November 25, 2018
 .Dt PKG_CHK 8
 .Sh NAME
 .Nm pkg_chk
 .Nd check, and optionally update, installed packages
 .Sh SYNOPSIS
 .Nm
-.Op Fl aBbcfhiklNnpqrsuv
+.Op Fl aBbcdfhiklNnpqrsuv
 .Op Fl C Ar conf
 .Op Fl D Ar tags
 .Op Fl L Ar file
@@ -61,6 +61,8 @@
 .Pa pkgchk.conf .
 Also includes
 .Ev PKGCHK_TAGS .
+.It Fl d
+do not clean the build directories after updating packages from source.
 .It Fl f
 Fetch all missing/mismatched packages found.
 Can be used with
diff -r e93b9d39e9c4 -r d4edab69f417 pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Sun Nov 25 19:26:29 2018 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Sun Nov 25 20:17:26 2018 +0000
@@ -1,6 +1,6 @@
 #!@SH@ -e
 #
-# $Id: pkg_chk.sh,v 1.74 2018/10/08 10:35:15 abs Exp $
+# $Id: pkg_chk.sh,v 1.75 2018/11/25 20:17:26 martin Exp $
 #
 # TODO: Make -g check dependencies and tsort
 # TODO: Make -g list user-installed packages first, followed by commented
@@ -35,6 +35,7 @@
 PATH=${PATH}:/usr/sbin:/usr/bin
 
 SUMMARY_FILES="pkg_summary.bz2 pkg_summary.gz pkg_summary.txt"
+DO_CLEAN="CLEANDEPENDS=yes"
 
 bin_pkg_info2pkgdb()
     {
@@ -665,7 +666,7 @@
            unset PKG_PATH
        fi
     elif [ -n "$opt_s" ]; then
-       run_cmd "cd $PKGSRCDIR/$PKGDIR && ${MAKE} update CLEANDEPENDS=yes"
+       run_cmd "cd $PKGSRCDIR/$PKGDIR && ${MAKE} update ${DO_CLEAN}"
     fi
 
     if [ -z "$opt_n" -a -z "$opt_q" -a ! -d $PKG_DBDIR/$PKGNAME ];then
@@ -758,6 +759,7 @@
        -b      Use binary packages
        -C conf Use pkgchk.conf file 'conf'
        -D tags Comma separated list of additional pkgchk.conf tags to set
+       -d      do not clean the pkg build dirs
        -f      Perform a 'make fetch' for all required packages
        -g      Generate an initial pkgchk.conf file
        -h      This help
@@ -803,7 +805,7 @@
     }
 
 original_argv="$@" # just used for verbose output
-while getopts BC:D:L:P:U:abcfghiklNnpqrsuv ch; do
+while getopts BC:D:L:P:U:abcdfghiklNnpqrsuv ch; do
     case "$ch" in
        a ) opt_a=1 ;;
        B ) opt_B=1 ;;
@@ -811,6 +813,7 @@
        C ) opt_C="$OPTARG" ;;
        c ) opt_a=1 ; opt_q=1 ; echo "** -c deprecated - use -a -q" 1>&2 ;;
        D ) opt_D="$OPTARG" ;;
+       d ) DO_CLEAN="NOCLEAN=yes" ;;
        f ) opt_f=1 ;;
        g ) opt_g=1 ;;
        h ) opt_h=1 ;;



Home | Main Index | Thread Index | Old Index