Wednesday, December 30, 2020

Re: FETCH_PACKAGES, mk.conf and make variable substitution time

On Wed, Dec 30, 2020 at 11:20:20PM +0100, Klemens Nanni wrote:
> On Wed, Dec 30, 2020 at 09:30:57PM +0000, Stuart Henderson wrote:
> > Oh wow, quite a deep rabbit hole to go down for this. I went for the
> > simple approach:
> >
> > $ echo $PKG_PATH
> > http://ftp.hostserver.de/pub/OpenBSD/snapshots/packages/%a/
> I don't use `-Dsnap' to ensure snapshot packages but rather to fetch
> binary packages in the first place when ensuring dependencies during
> ports building rather than building everything from source.
>
> I see how pkg_add(1) "special sequences" in PKG_PATH are much nicer than
> the too simple installurl(5), but this is another topic.
>
> The mail's subject probably should not have mentioned FETCH_PACKAGES as
> this issue is really about make(1)/bsd.port.mk(5) internals per se;
> quirks/FETCH_PACKAGES is simply one specific case I encountered.
>

There aren't that many specific cases.

Actually, you've got an example of bsd.port.mk dealing with things
for dwz, for instance.

and the boostrap pseudo-flavor is another instance.

This is definitely to be expected and is a design choice.

the alternative would be to insist you install some binary packages before
building anything, and we don't do that.

No comments:

Post a Comment