NetBSD Problem Report #46748

From www@NetBSD.org  Sat Jul 28 16:44:20 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 21CD763B882
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 28 Jul 2012 16:44:20 +0000 (UTC)
Message-Id: <20120728164419.814F063B85F@www.NetBSD.org>
Date: Sat, 28 Jul 2012 16:44:19 +0000 (UTC)
From: foo@yahoo.com
Reply-To: foo@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: Error occurs when pkg_chk is used with both "-g" and "-C conf" options
X-Send-Pr-Version: www-1.0

>Number:         46748
>Category:       pkg
>Synopsis:       Error occurs when pkg_chk is used with both "-g" and "-C conf" options
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    abs
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 28 16:45:00 +0000 2012
>Closed-Date:    Sun Jul 29 17:34:15 +0000 2012
>Last-Modified:  Sun Jul 29 17:35:01 +0000 2012
>Originator:     foo
>Release:        NetBSD 6.99.10 (GENERIC) i386
>Organization:
xxx
>Environment:
NetBSD 6.99.10 (GENERIC) i386
>Description:
$ pkg_chk -g -C foo.txt
make: cannot open Makefile.
eval:  make: stopped in /home/xxxx: not found
$

>How-To-Repeat:
install pkg_chk-2.0.1,
and do "pkg_chk -g -C file"
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->abs
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 28 Jul 2012 18:58:11 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: abs@NetBSD.org
State-Changed-When: Sun, 29 Jul 2012 17:34:15 +0000
State-Changed-Why:
should be fixed in pkg_chk 2.02 =- thanks for the report!


From: "David Brownlee" <abs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46748 CVS commit: pkgsrc/pkgtools/pkg_chk
Date: Sun, 29 Jul 2012 17:31:11 +0000

 Module Name:	pkgsrc
 Committed By:	abs
 Date:		Sun Jul 29 17:31:11 UTC 2012

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

 Log Message:
 Updated pkgtools/pkg_chk to 2.0.2

 - Fix PR#46748 Error occurs when pkg_chk is used with both "-g" & "-C conf"
   pkg_chk was failing if run outside of a valid pkgsrc/$category/$pkg directory
 - Merge in (adjusted) changes from Mike Volokhov to by default not downgrade
   packages if installed version is larger than that in pkgsrc or packages.
   Will still report, and can override with -B


 To generate a diff of this commit:
 cvs rdiff -u -r1.76 -r1.77 pkgsrc/pkgtools/pkg_chk/Makefile
 cvs rdiff -u -r1.66 -r1.67 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.

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