Subject: bin/26429: pkg_create does treat -B (+BUILDINFO) optional, but pkg_add does not work w/o
To: None <gnats-bugs@gnats.NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 07/25/2004 17:40:13
>Number: 26429
>Category: bin
>Synopsis: pkg_create does treat -B (+BUILDINFO) optional, but pkg_add does not work w/o
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 25 15:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Martin Husemann
>Release: NetBSD 2.0
>Organization:
>Environment:
System: any
Architecture: any
Machine: any
>Description:
When creating a pkg with pkg_create the -B option (the +BUILD_INFO file)
is optional. The resulting pkg does not work, however, since pkg_add can
not work without +BUILD_INFO.
Even if used with -f (so it does not terminate due to missing +BUILD_INFO)
it will not install the pkg, since it dumps core - in varions places
strings from the buildinfo[] array (which happen to be all NULL in
case of a missing +BUILD_INFO) are used without checks to call strcmp().
>How-To-Repeat:
s.a.
>Fix:
Either make pkg_create complain about missing +BUILD_INFO contents, or make
pkg_add cope with nonexistant or incomplete +BUILD_INFO
>Release-Note:
>Audit-Trail:
>Unformatted: