NetBSD Problem Report #6413
Received: (qmail 5883 invoked from network); 9 Nov 1998 13:43:54 -0000
Message-Id: <199811091340.OAA05248@jdolecek.per4mance.cz>
Date: Mon, 9 Nov 1998 14:40:45 +0100 (MET)
From: Jaromir Dolecek <jdolecek@jdolecek.per4mance.cz>
Reply-To: jdolecek@jdolecek.per4mance.cz
To: gnats-bugs@gnats.netbsd.org
Subject: pkg_add fails to add binary package w/o BUILD_VERSION file
X-Send-Pr-Version: 3.95
>Number: 6413
>Category: pkg
>Synopsis: pkg_add(1) fails to add binary package w/o BUILD_VERSION file
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 09 05:50:01 +0000 1998
>Closed-Date: Mon Nov 09 15:01:07 +0000 1998
>Last-Modified: Mon Nov 09 15:02:58 +0000 1998
>Originator: Jaromir Dolecek
>Release: 1.3.2
>Organization:
Per4mance, Brno, Czech Republic
>Environment:
System: NetBSD jdolecek.per4mance.cz 1.3.2 NetBSD 1.3.2 (JDOLECEK) #1: Sat Nov 7 15:11:51 PST 1998 jdolecek@jdolecek.per4mance.cz:/root/usr/src/sys/arch/i386/compile/JDOLECEK i386
>Description:
I noticed the problem whle adding kde - packages failed to install
due to failure to find +BUILD_VERSION file
>How-To-Repeat:
pkg_add jpeg-6b.tgz
>Fix:
This patch changes pkg_add so that it only tries
to install BUILD_VERSION & BUILD_INFO when they actually exist.
--- add/perform.c.orig Mon Nov 9 14:35:28 1998
+++ add/perform.c Mon Nov 9 14:36:35 1998
@@ -488,8 +488,10 @@
fclose(cfile);
move_file(".", DESC_FNAME, LogDir);
move_file(".", COMMENT_FNAME, LogDir);
- move_file(".", BUILD_VERSION_FNAME, LogDir);
- move_file(".", BUILD_INFO_FNAME, LogDir);
+ if (fexists(BUILD_VERSION_FNAME))
+ move_file(".", BUILD_VERSION_FNAME, LogDir);
+ if (fexists(BUILD_INFO_FNAME))
+ move_file(".", BUILD_INFO_FNAME, LogDir);
if (fexists(DISPLAY_FNAME))
move_file(".", DISPLAY_FNAME, LogDir);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: hubertf
State-Changed-When: Mon Nov 9 07:01:07 PST 1998
State-Changed-Why:
This bug was fixed in -current some days ago, I'm right in
the middle of updating the pkg_install pkg and bsd.pkg.mk
to get users a newer version. Please check again after the
next sup-scan, which will update your pkg_install pkg (which you'll be kindly
forced to install via bsd.pkg.mk then 8-)
- Hubert
>Unformatted:
(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.