NetBSD Problem Report #36641

From cheusov@tut.by  Thu Jul 12 23:26:41 2007
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 52B1E63B97E
	for <gnats-bugs@gnats.netbsd.org>; Thu, 12 Jul 2007 23:26:41 +0000 (UTC)
Message-Id: <s93odihnuh1.fsf@chen.chizhovka.net>
Date: Fri, 13 Jul 2007 01:11:06 +0300
From: cheusov@tut.by
Reply-To:
To: gnats-bugs@NetBSD.org
Subject: bug: pkg_chk -g requires pkgsrc source tree
X-Send-Pr-Version: 3.95

>Number:         36641
>Category:       pkg
>Synopsis:       bug: pkg_chk -g requires pkgsrc source tree
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    abs
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 12 23:30:00 +0000 2007
>Closed-Date:    Sat Aug 01 19:48:58 +0000 2009
>Last-Modified:  Sat Aug 01 19:48:58 +0000 2009
>Originator:     cheusov@tut.by
>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:/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.
>How-To-Repeat:

>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 \

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->abs
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Tue, 24 Jul 2007 00:24:51 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: tnn@narn.netbsd.org
State-Changed-When: Sun, 17 Feb 2008 00:55:58 +0000
State-Changed-Why:
committed


From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: abs@NetBSD.org,  pkgsrc-bugs@netbsd.org,  gnats-admin@netbsd.org,
	  tnn@NetBSD.org
Subject: Re: pkg/36641 (bug: pkg_chk -g requires pkgsrc source tree)
Date: Tue, 13 May 2008 14:15:07 +0300

 > Synopsis: bug: pkg_chk -g requires pkgsrc source tree

 > State-Changed-From-To: open->closed
 > State-Changed-By: tnn@narn.netbsd.org
 > State-Changed-When: Sun, 17 Feb 2008 00:55:58 +0000
 > State-Changed-Why:
 > committed

 pkg_chk 1.92 still requires pkgsrc sourde tree with -g option..

 lab305-monster:~# /usr/pkg/sbin/pkg_chk -g
 *** Unable to locate PKGSRCDIR (/srv/pkgsrc)
 lab305-monster:~# 


 The following fragment should be fixed.

     173     if [ ! -d $PKGSRCDIR -a \( -z "$opt_b" -o -n "$opt_s" \) ] ; then
     174         fatal "Unable to locate PKGSRCDIR (${PKGSRCDIR:-not set})"
     175     fi

 -- 
 Best regards, Aleksey Cheusov.

State-Changed-From-To: closed->open
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Tue, 13 May 2008 11:22:14 +0000
State-Changed-Why:
another issue was reported.


State-Changed-From-To: open->feedback
State-Changed-By: abs@NetBSD.org
State-Changed-When: Sat, 21 Feb 2009 20:50:29 +0000
State-Changed-Why:
Should be fixed in v1.97


From: David Brownlee <abs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/36641 CVS commit: pkgsrc/pkgtools/pkg_chk
Date: Sat, 21 Feb 2009 20:50:06 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	abs
 Date:		Sat Feb 21 20:50:06 UTC 2009

 Modified Files:
 	pkgsrc/pkgtools/pkg_chk: Makefile
 	pkgsrc/pkgtools/pkg_chk/files: pkg_chk.sh

 Log Message:
 Updated pkgtools/pkg_chk to 1.97

 Fix PR 36641 - pkg_chk -g requires pkgsrc source tree, from Aleksey Cheusov.


 To generate a diff of this commit:
 cvs rdiff -r1.69 -r1.70 pkgsrc/pkgtools/pkg_chk/Makefile
 cvs rdiff -r1.61 -r1.62 pkgsrc/pkgtools/pkg_chk/files/pkg_chk.sh

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

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 01 Aug 2009 19:48:58 +0000
State-Changed-Why:
feedback timeout


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.