Subject: bin/11648: pkg_add does not know how to add png>=1.0.6 style dependencies
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kivinen@ssh.fi>
List: netbsd-bugs
Date: 12/06/2000 07:48:34
>Number:         11648
>Category:       bin
>Synopsis:       Pkg_add ImageMagic-5.2.2.tgz fails, even when png-1.0.8.tgz is present
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 06 07:48:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Tero Kivinen
>Release:        NetBSD 1.5
>Organization:
SSH Communications Security
>Environment:
System: NetBSD kahva.ssh.fi 1.5 NetBSD 1.5 (KAHVA) #1
Architecture: i386
Machine: i386
>Description:

	I created two cd-roms containing all packages with batch
	build. When I try to install the packages using pkg_add * most
	of them fail in the first time because they dont find the
	required packages. The reason they don't find the required
	packages is that the dependencies contains wildcards, or
	version requirements, and pkg_add does not seem to know how to
	expand those dependencies to the actual file names. 

>How-To-Repeat:

	Create ImageMagick-5.2.2.tgz, png-1.0.8.tgz, jpeg-6b.tgz,
	mpeg2codec-1.2.tgz, tiff-3.5.5.tgz files and put them in one
	directory. Remove all of those packages. Run pkg_add * on the
	directory. That will fail that it cannot install ImageMagick
	because of missing dependencies. Running it second time will
	install ImageMagick as now the tiff-* and png>=1.0.6 are
	already installed and pkg_add notices that. 

>Fix:

	Easiest way to fix it, is just running the pkg_add * multiple
	times. Each time it will add more and more packages and
	finally all packages are installed.
>Release-Note:
>Audit-Trail:
>Unformatted: