Subject: bin/30658: 3.0_BETA: pkg_add broken for installing valid binary pkgs
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <hubert@feyrer.de>
List: netbsd-bugs
Date: 07/03/2005 20:25:00
>Number:         30658
>Category:       bin
>Synopsis:       3.0_BETA: pkg_add broken for installing valid binary pkgs
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 03 20:25:00 +0000 2005
>Originator:     hubert@feyrer.de
>Release:        NetBSD 3.0_BETA
>Organization:
Hubert Feyrer <hubertf@channel.regensburg.org>
>Environment:
	
	
System: NetBSD miyu 3.0_BETA NetBSD 3.0_BETA (MIYU) #1: Sat Jul  2 17:00:22 MEST 2005  feyrer@miyu:/home/cvs/src-3/sys/arch/i386/compile/obj.i386/MIYU i386
Architecture: i386
Machine: i386
>Description:
	When building a binary pkg with "IGNORE_RECOMMENDED=yes" in 
 	/etc/mk.conf, pkg_add refuses to install that package again
	later:

pkg_comp:default.conf# pkg_add mc-4.6.1rc4.1.tgz 
pkg_add: Warning: package `/usr/pkgsrc/packages/i386/3.0/All/./mc-4.6.1rc4.1.tgz' was built for a different version of the OS:
pkg_add: NetBSD/i386 3.0_BETA (pkg) vs. NetBSD/i386 3.0 (this host)
pkg_add: Package `/usr/pkgsrc/packages/i386/3.0/All/./mc-4.6.1rc4.1.tgz' has
pkg_add: IGNORE_RECOMMENDED set: This package was built with
pkg_add: dependency recommendations ignored.  It may have been
pkg_add: built against a set of installed packages that is
pkg_add: different from the recommended set of pre-requisites.
pkg_add: As a consequence, this package may not work on this
pkg_add: or other systems with a different set of packages.
pkg_add: aborting.
pkg_add: 1 package addition failed
pkg_comp:default.conf# 


>How-To-Repeat:
	See above.
>Fix:
	Fix pkg_add to not care for IGNORE_RECOMMENDED.
	First creating a binary pkg and the not being able to install
	it is a waste of time, energy and cpu cycles, and does not
	follow the principe of having me the rope I want.

	The only way to get that package installed by using -f
	has too many negative side effects to be useful.

	While there, it would be nice if that warning about the OS
	version not matching would go away, as it can be expected that
	3.0 and 3.0_BETA are compatible.

>Unformatted: