NetBSD Problem Report #32068

From feyrer@cs.stevens.edu  Mon Nov 14 01:15:15 2005
Return-Path: <feyrer@cs.stevens.edu>
Received: from guinness.cs.stevens.edu (guinness.cs.stevens-tech.edu [155.246.89.8])
	by narn.netbsd.org (Postfix) with ESMTP id 3388A63BA17
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 14 Nov 2005 01:15:15 +0000 (UTC)
Message-Id: <20051114011508.99F8C1AB16@chimay-bleu.cs.stevens.edu>
Date: Sun, 13 Nov 2005 20:15:08 -0500 (EST)
From: feyrer@cs.stevens.edu
Reply-To: hubert@feyrer.de
To: gnats-bugs@netbsd.org
Subject: pkg_info -Q broken for (local) binary pkgs, output inconsistent
X-Send-Pr-Version: 3.95

>Number:         32068
>Category:       bin
>Synopsis:       pkg_info -Q broken for (local) binary pkgs, output inconsistent
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 14 01:16:00 +0000 2005
>Closed-Date:    Thu Jan 24 16:30:49 +0000 2008
>Last-Modified:  Thu Jan 24 16:30:49 +0000 2008
>Originator:     hubert@feyrer.de
>Release:        NetBSD 2.0.2_STABLE
>Organization:

>Environment:


System: NetBSD chimay-bleu.cs.stevens.edu 2.0.2_STABLE NetBSD 2.0.2_STABLE (BOCK) #9: Wed Oct 12 13:24:50 EDT 2005 jschauma@doppelbock.hpcf.cs.stevens-tech.edu:/usr/2.0/src/sys/arch/i386/compile/obj/BOCK i386
Architecture: i386
Machine: i386
>Description:
	1)
	pkg_info -Q claims to be able to extract values from the 
	buildinfo(?). This does not work when applied to (local) 
	binary packages, and I strongly doubt it works for FTP/HTTP 
	remote ones.

	(How did this come up? A user asked how to find out what operating
	system version a certain binary package was built for)

	2) 
	The output format should be changed to print "variable=value"
	if -q is not given, and just "value" (as now) if -q is used.

>How-To-Repeat:
	chimay-bleu% pkg_info -Q OS_VERSION freetype2-2.1.10.tgz
	pkg_info: show_var: can't open '+BUILD_INFO' for reading
	chimay-bleu% pkg_info -V
	20050607
	chimay-bleu% pkg_info -Q OS_VERSION png
	2.0.2_STABLE

>Fix:
	Please (both items)

	Implementing this by having information in the +CONTENTS file
	is probably a lot easier than to have it in various other +-files,
	even if those +-files are low-hanging fruits when operating on
	installed packages. But that's not everyting.

>Release-Note:

>Audit-Trail:
From: Dieter Baron <dillo@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32068 CVS commit: src/usr.sbin/pkg_install/info
Date: Mon, 14 Nov 2005 09:39:45 +0000 (UTC)

 Module Name:	src
 Committed By:	dillo
 Date:		Mon Nov 14 09:39:45 UTC 2005

 Modified Files:
 	src/usr.sbin/pkg_install/info: perform.c

 Log Message:
 Fix first part of PR 32068: pkg_info -Q broken for local binary packages
 	Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.


 To generate a diff of this commit:
 cvs rdiff -r1.65 -r1.66 src/usr.sbin/pkg_install/info/perform.c

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

From: Dieter Baron <dillo@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32068 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Mon, 14 Nov 2005 09:42:39 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	dillo
 Date:		Mon Nov 14 09:42:39 UTC 2005

 Modified Files:
 	pkgsrc/pkgtools/pkg_install/files/info: perform.c
 	pkgsrc/pkgtools/pkg_install/files/lib: version.h

 Log Message:
 Sync with src/usr.sbin/pkg_install:

 Fix first part of PR 32068: pkg_info -Q broken for local binary packages
         Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.
 Bump version.


 To generate a diff of this commit:
 cvs rdiff -r1.24 -r1.25 pkgsrc/pkgtools/pkg_install/files/info/perform.c
 cvs rdiff -r1.50 -r1.51 pkgsrc/pkgtools/pkg_install/files/lib/version.h

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

From: Dieter Baron <dillo@danbala.tuwien.ac.at>
To: gnats-bugs@netbsd.org, hubertf@netbsd.org
Cc: 
Subject: Re: bin/32068: pkg_info -Q broken for (local) binary pkgs, output inconsistent
Date: Mon, 14 Nov 2005 11:20:03 +0100

 On Mon, Nov 14, 2005 at 01:16:00AM +0000, feyrer@cs.stevens.edu wrote:
 > 	1)
 > 	pkg_info -Q claims to be able to extract values from the 
 > 	buildinfo(?). This does not work when applied to (local) 
 > 	binary packages, and I strongly doubt it works for FTP/HTTP 
 > 	remote ones.

   Fixed, thank's for the bug report.  (It did work with remote binary
 packages.)

 > 	2) 
 > 	The output format should be changed to print "variable=value"
 > 	if -q is not given, and just "value" (as now) if -q is used.

   This is a user-visible interface change with a good chance of
 breaking scripts.  Please bring this up (with a rationale for the
 change) on tech-pkg.

 						yours,
 						dillo

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32068 CVS commit: [netbsd-3] src/usr.sbin/pkg_install/info
Date: Mon, 21 Nov 2005 20:11:12 +0000 (UTC)

 Module Name:	src
 Committed By:	tron
 Date:		Mon Nov 21 20:11:12 UTC 2005

 Modified Files:
 	src/usr.sbin/pkg_install/info [netbsd-3]: perform.c

 Log Message:
 Pull up following revision(s) (requested by dillo in ticket #963):
 	usr.sbin/pkg_install/info/perform.c: revision 1.66
 Fix first part of PR 32068: pkg_info -Q broken for local binary packages
 	Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.


 To generate a diff of this commit:
 cvs rdiff -r1.62.2.3 -r1.62.2.4 src/usr.sbin/pkg_install/info/perform.c

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

State-Changed-From-To: open->closed
State-Changed-By: hubertf@narn.netbsd.org
State-Changed-When: Thu, 24 Jan 2008 16:30:49 +0000
State-Changed-Why:
Fixed in 4.0


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