NetBSD Problem Report #32351

From www@netbsd.org  Wed Dec 21 11:01:31 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id A0A0163B8E9; Wed, 21 Dec 2005 11:01:31 +0000 (UTC)
Message-Id: <20051221110131.A0A0163B8E9@narn.netbsd.org>
Date: Wed, 21 Dec 2005 11:01:31 +0000 (UTC)
From: krille@users.sf.net
Reply-To: krille@users.sf.net
To: gnats-bugs@netbsd.org
Subject: make readme fails when packages directory is missing
X-Send-Pr-Version: www-1.0

>Number:         32351
>Category:       pkg
>Synopsis:       make readme fails when packages directory is missing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dmcmahill
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 21 11:05:00 +0000 2005
>Closed-Date:    Wed Feb 22 14:27:18 +0000 2006
>Last-Modified:  Wed Feb 22 14:27:18 +0000 2006
>Originator:     Christian Hattemer
>Release:        3.0
>Organization:
>Environment:
NetBSD webster 3.0 NetBSD 3.0 (WEBSTER-TMP) #1: Tue Dec 20 19:48:09 CET 2005  krille@webster:/usr/src/sys/arch/i386/compile/WEBSTER-TMP i386
>Description:
"make readme" fails when the directory containing the binary packages is missing. This happens e.g. when PACKAGES is set to /usr/local/packages/${OS_VERSION}/${MACHINE_ARCH} and the system is updated to a new version.
>How-To-Repeat:
Make $PACKAGES point to a nonexisting directory

cd /usr/pkgsrc/lang/perl5
make readme

---->  Creating new database in /usr/pkgsrc/lang/perl5/README.html.tmp1
---->  Depending in /usr/pkgsrc/lang/perl5 (pass #1)
Complete dependency database left in /usr/pkgsrc/lang/perl5/README.html.tmp1
Reading database file
Making sure binary package cache file is up to date...
Packages directory /usr/local/packages/3.0/i386 seems to be missing

**** WARNING ****
Command: /usr/bin/env AWK=/usr/bin/awk CMP=/usr/bin/cmp FIND= GREP=/usr/bin/grep PKG_INFO="/usr/bin/env  /usr/sbin/pkg_info -K /var/db/pkg" PKG_SUFX=.tgz SED=/usr/bin/sed SORT=/usr/bin/sort /usr/pkgsrc/mk/scripts/binpkg-cache --packages /usr/local/packages/3.0/i386
failed.**** ------- ****
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/perl5
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/perl5

>Fix:
Since listing the available binary packages isn't really essential for the readme files the process should continue withouth them.

Either binpkg-cache could return a code to indicate that no data is available which genreadme.awk would use to place a notice about the condition in the readme files, or genreadme.awk could ignore the return code of binpkg-cache completely.

BTW: In case of a failure it would also be nice to clean up the database file.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->dmcmahill
Responsible-Changed-By: recht@netbsd.org
Responsible-Changed-When: Wed, 21 Dec 2005 12:05:24 +0000
Responsible-Changed-Why:
over to README.html maintainer


From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32351 (make readme fails when packages directory is missing)
Date: Wed, 21 Dec 2005 06:25:19 -0800 (PST)

 > over to README.html maintainer

 He is unavailable until the end of this month (as mentioned on an internal 
 list). Anyone else to look at this?

   Jeremy C. Reed

   	  	 	 open source, Unix, *BSD, Linux training
  	  	 	 http://www.pugetsoundtechnology.com/

From: Dan McMahill <dmcmahill@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32351 CVS commit: pkgsrc/mk/scripts
Date: Thu,  5 Jan 2006 22:19:42 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	dmcmahill
 Date:		Thu Jan  5 22:19:42 UTC 2006

 Modified Files:
 	pkgsrc/mk/scripts: binpkg-cache genreadme.awk

 Log Message:
 Fix a bug which caused the README.html generation to fail when the packages
 directory did not exist.  Now the generation completes with a warning that
 no binary packages were found.  Reported in PR pkg/32351.


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.7 pkgsrc/mk/scripts/binpkg-cache
 cvs rdiff -r1.19 -r1.20 pkgsrc/mk/scripts/genreadme.awk

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

From: Christian Hattemer <c.hattemer@arcor.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32351 (make readme fails when packages directory is missing)
Date: Wed, 22 Feb 2006 13:42:17 +0100

 Hi,

 from my point of view the issue described in the stated PR has been resolved
 so that it may be closed.

 Bye, Chris

State-Changed-From-To: open->closed
State-Changed-By: dmcmahill@netbsd.org
State-Changed-When: Wed, 22 Feb 2006 14:27:18 +0000
State-Changed-Why:
submitter verifies that the problem has been fixed.
.


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