Subject: Re: bin-install broken?
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/14/2002 23:07:00
On Fri, 15 Mar 2002, Hubert Feyrer wrote:

> > This worked with bsd.pkg.mk 1.928, but didn't work with bsd.pkg.mk 1.943.
> > I see there have been lots of changes.

> NFC... this works fine for me.
>
> 	miyu# make bin-install
> 	Trying ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All
> 	pkg_add: can't find package 'exim-3.34.tgz'
> 	Installing from source
> 	=> exim-3.34.tar.gz doesn't seem to exist on this system.
> 	=> Attempting to fetch exim-3.34.tar.gz from ftp://ftp.exim.org/pub/exim/.
> 	...
>
> What happens if you just do a "make bin-install", leaving out the

# make bin-install
Trying ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All
ftp: connect to address 3ffe:8050:201:1860:2a0:c9ff:feed:b7ea: No route to
host
pkg_add: can't find package 'exim-3.34.tgz'
# ident Makefile
Makefile:
     $NetBSD: Makefile,v 1.27 2001/12/19 17:11:02 ad Exp $

But I just tried it on another system (with mk/bsd.pkg.mk 1.947) and it
worked correctly.

So I tried with making make more verbose:

# make -d m bin-install 2>&1 | tee LOG2
Trying ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All
ftp: connect to address 3ffe:8050:201:1860:2a0:c9ff:feed:b7ea: No route to
host
pkg_add: can't find package 'exim-3.34.tgz'
Examining bin-install...non-existent...non-existent and no
sources...out-of-date.
update time to now: 19:00:00 Dec 31, 1969

And I did it with "make -A":
.sh             :
        rm -f ${.TARGET}
        cp ${.IMPSRC} ${.TARGET}

Searching for bin-install...failed.
bin-install:@ = bin-install
SuffFindDeps (bin-install)
        No known suffix on bin-install. Using .NULL suffix
not adding suffix rules
bin-install:@ = bin-install
bin-install:* = bin-install
Searching for bin-install...failed.
Examining bin-install...Searching for bin-install...failed.
non-existent...non-existent and no sources...out-of-date.
bin-install:? =
bin-install:> =
Applying :C to "exim-3.34"
Result is "exim"
Applying :C to "/usr/pkgsrc/mail/exim"
Result is "/usr/pkgsrc"
Applying :C to "/usr/pkgsrc/mail/exim"

I am not sure what this means. Any ideas on how I can troubleshoot this?

(As far as I can tell by comparing all ident versions in both make(1),
they are the same.)

> TARGET=... (what's that intended for anyways?)?

I meant to try DEPENDS_TARGET, but I am not sure if that is needed. (I had
used "TARGET", because I thought it would force the dependencies to also
use binary packages if available -- I guess it wasn't needed.)


Thanks,

   Jeremy C. Reed
   http://bsd.reedmedia.net/