Subject: bin/30276: pkg_add(1) can't add very old package.
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <taca@SmartField.co.jp>
List: netbsd-bugs
Date: 05/19/2005 08:25:00
>Number:         30276
>Category:       bin
>Synopsis:       pkg_add(1) can't add very old package.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 19 08:25:00 +0000 2005
>Originator:     Takahiro Kambe
>Release:        NetBSD 3.0_BETA
>Organization:
Smart Field Corp.
	
>Environment:
	
	
System: NetBSD sakai.i.SmartField.co.jp 3.0_BETA NetBSD 3.0_BETA (SAKAI) #7: Mon May  9 13:53:09 JST 2005  taca@sakai.i.SmartField.co.jp:/var/obj/sys/arch/i386/compile/SAKAI i386
Architecture: i386
Machine: i386
>Description:
	When I adding a binary package which was created by very old days
	(or manually created by pkg_create(1)), it cause error:

# pkg_add foo-1.1.tgz
pkg_add: unable to open +BUILD_INFO file.
pkg_add: can't read build information from +BUILD_INFO: No such file or directory
pkg_add: aborting.
pkg_add: 1 package addition failed

	This error isn't very informative for general users since it
	dosen't describe why such an error was occured.

>How-To-Repeat:
	Try to add a very old package.
>Fix:
	Since pkg_create(1) dosen't mandate "-B" option which speicfy
	+BUILD_INFO file, pkg_add(1) should warn the missing of +BUILD_INFO
	file and add the pacakge.

>Unformatted: