Subject: Re: package install problem
To: Matthias Scheler <tron@lyssa.owl.de>
From: Alistair Crooks <azcb0@amdahl.com>
List: netbsd-help
Date: 08/04/1998 01:15:03
> On Mon, Aug 03, 1998 at 07:54:25AM -0400, Todd Vierling wrote:
> > : i got error messages like this one: 
> > : 	pkg_add: bad command '@pkgcfl ImageMagick-4.0'
> > 
> > This is because the person creating the binary pkg did it with newer pkg_*
> > tools (it should not have been done that way).
> 
> It can NOT be done another way. This package is based on current package
> sources. And the included "bsd.pkg.mk" will call "pkg_create" with "-C".
> So I had to install the new packages tools on my 1.3.2 system to be able
> to build this package.

Actually, Todd ran through rings to get bsd.pkg.mk to call pkg_create(1)
with a -C flag only if pkg_create supports -C:

.if defined(CONFLICTS)
# Only use -C if the pkg_create command supports it.
__PKG_CMD_C__!= ${PKG_CMD} -C 2>&1 | /usr/bin/egrep 'illegal option' ; echo
.if (${__PKG_CMD_C__} == "")
PKG_ARGS+=              -C "${CONFLICTS}"
.endif
.endif


Alistair