tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make fetch-list suport for DIST_PATH



Jörg Sonnenberger <joerg%bec.de@localhost> writes:

> On 5/14/25 5:02 AM, Darrin B. Jewell wrote:
>> I noticed that "make fetch-list | sh" does not behave the same as
>> "make fetch" with respect to the DIST_PATH variable as documented in
>> pkgsrc/mk/defaults/mk.conf and pkgsrc/mk/fetch/bsd.fetch-vars.mk.
>> The attached patch fixes this and I'd like to commit it.  It cribs
>> the DIST_PATH support from pkgsrc/mk/fetch/fetch.mk
>
> fetch-list has many restrictions and really only is useful when you
> want to fetch distfiles somewhere else (e.g. because you still have
> metered internet at home). Generally, it is much better to use:
>     make depends-checksum
> ...which provides the recursion and also handles errors much better.
>
> Joerg

So this is exactly the case I'm dealing with.  I frequently do
development offline or on the road where I can create a fetch list but
have to wait for an opportunity to do a bulk download.  I carry around
an rsync mirror of distfiles when I'm on the road and my sandbox scheme
separates downloads and builds as separate operations.  Make fetch-list
facilitates this.

I've been running this patch for a couple of years, unless there
is a stronger objection I'll push it out sometime soon when I get
to test it for another round.

I'm open to a stronger argument. For example, maintenance that I may not
be responsive to, since I've not been as active as I would like
recently.

Darrin


Home | Main Index | Thread Index | Old Index