NetBSD Problem Report #34136

From tv@server.duh.org  Thu Aug  3 18:37:29 2006
Return-Path: <tv@server.duh.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 58CD963B8C1
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  3 Aug 2006 18:37:29 +0000 (UTC)
Message-Id: <200608031837.k73IbHkc023307@server.duh.org>
Date: Thu, 3 Aug 2006 14:37:17 -0400 (EDT)
From: tv@pobox.com
Reply-To: tv@pobox.com
To: gnats-bugs@NetBSD.org
Subject: pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file
X-Send-Pr-Version: 3.95

>Number:         34136
>Category:       pkg
>Synopsis:       pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    abs
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 03 18:40:03 +0000 2006
>Last-Modified:  Sat Oct 27 08:55:27 +0000 2007
>Originator:     Todd Vierling
>Release:        NetBSD 2.1.0_STABLE
>Organization:
DUH.ORG:  Pointing out the obvious since 1994.
>Environment:
N/A

>Description:

Recently I'm now seeing the following from pkg_chk (1.77, but I don't know
what revision started this):

*** Unable to read PKGCHK_CONF '/usr/pkgsrc/pkgchk_update-server.duh.org.conf'

That's nice and all, but there should be no reason to require a configuration
file when using "-u -q", which *only* reports on version number mismatches.
It seems that $opt_q should be skipping something and is not doing so.

("-u -q" is the replacement for the old "-i" option.  When using "-u -q",
pkg_chk should check the versions of installed packages and then simply exit
without further processing.)

>How-To-Repeat:

Don't have a pkgchk_update config file, and run:
$ pkg_chk -u -q

>Fix:

This is new stuff in pkg_chk, so I'm leery of touching it lest it breaks
something.  I only use pkg_chk for *checking* for changes; I have never
used it for actually doing upgrades (as I use "make replace" most of the
time, not "make update").

>Release-Note:

>Audit-Trail:
Date: Mon, 30 Oct 2006 10:57:04 -0500
From: "George Georgalis" <george@galis.org>
Message-Id: <20061030155704.GA28072@run.galis.org>
To: tv@pobox.com, gnats-bugs@NetBSD.org, pkgsrc-users@netbsd.org
In-Reply-To: <200608031837.k73IbHkc023307@server.duh.org>
Subject: pkg-manager/34136  Re: pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file
References: <200608031837.k73IbHkc023307@server.duh.org>

 I cannot figure out how to send patch to this PR
 http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=34136

 --- /usr/pkg/sbin/pkg_chk.orig  2006-10-30 10:25:21.000000000 -0500
 +++ /usr/pkg/sbin/pkg_chk       2006-10-30 10:37:49.000000000 -0500
 @@ -296,7 +296,7 @@
      {
      CONF=$1; shift
      LIST="$*"
 -    if [ ! -r $CONF ];then
 +    if [ ! -r $CONF -a -z "$opt_n" ];then
         fatal "Unable to read PKGCHK_CONF '$CONF'"
      fi



 This email is my best guess...

 Thanks,
 // George

From: Christian Biere <christianbiere@gmx.de>
To: gnats-bugs@NetBSD.org, pkgsrc-users@netbsd.org
Cc: 
Subject: Re: pkg/34136
Date: Mon, 30 Oct 2006 17:09:11 +0100

 George Georgalis wrote:
 > I cannot figure out how to send patch to this PR
 > http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=34136

 Just sent a mail to "gnats-bugs at NetBSD dot org" with a subject that looks
 like "Re: <category>/<PR number>". In your case:

 Subject: Re: pkg/34136

 The "Re: " is important. Otherwise, a new PR is opened.

 -- 
 Christian

Responsible-Changed-From-To: pkg-manager->abs
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Sat, 27 Oct 2007 08:55:27 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.