pkgsrc-Bugs archive

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

pkg/36641: bug: pkg_chk -g requires pkgsrc source tree



>Number:         36641
>Category:       pkg
>Synopsis:       bug: pkg_chk -g requires pkgsrc source tree
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 12 23:30:00 +0000 2007
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_BETA2
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #20: Wed 
Jun 20 19:58:12 EEST 2007 
cheusov%chen.chizhovka.net@localhost:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
pkg_chk -g requires pkgsrc source tree which is actually not needed for -g
and therefore doesn't allow to use pkg_chk for binary only upgrades.
>Fix:

--- /home/cheusov/tmp/pkg_chk   2007-07-13 01:09:27.000000000 +0300
+++ /usr/pkg/sbin/pkg_chk       2007-07-13 01:03:43.000000000 +0300
@@ -171,7 +171,9 @@
     # as well as AWK, GREP, SED, PKGCHK_TAGS and PKGCHK_NOTAGS
     #
 
-    if [ -z "$opt_b" -o -n "$opt_s" -o -d $PKGSRCDIR/pkgtools/pkg_chk ] ; then
+    if [ -n "$opt_g" ]; then
+       true
+    elif [ -z "$opt_b" -o -n "$opt_s" -o -d $PKGSRCDIR/pkgtools/pkg_chk ] ; 
then
        cd $PKGSRCDIR/pkgtools/pkg_chk
        extract_make_vars Makefile \
                AWK GREP GZIP_CMD ID PACKAGES PKGCHK_CONF PKGCHK_NOTAGS \




Home | Main Index | Thread Index | Old Index