pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
github & FETCH_USING
Hi,
I'm adding a few packages to pkgsrc-wip which will fetch
distfiles from GitHub. This is being done on NetBSD/amd64 10.0.
This is now failing for me with
: {8} make makesum
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Fetching http_status-1.0.0.tar.gz
Requesting https://github.com/DanielOaks/http_status/archive/refs/tags/v1.0.0.tar.gz
ftp: Receiving HTTP reply: Input line is too long
fetch: Unable to fetch expected file http_status-1.0.0.tar.gz
Trying [2a04:4e42:47::262]:443 ...
Requesting https://cdn.NetBSD.org/pub/pkgsrc/distfiles/http_status-1.0.0.tar.gz
ftp: Error retrieving file `404 Not Found'
fetch: Unable to fetch expected file http_status-1.0.0.tar.gz
Trying [2001:660:3302:282a:204:75ff:fe9f:9e11]:80 ...
The highlight is
ftp: Receiving HTTP reply: Input line is too long
and the HTTP server is really presenting a Really Long line that
I'll not try to reproduce here.
So, I vaguely had the recollection that pkgsrc can use different
"fetch methods", such as e.g. "curl", which might not have this
particular problem. I've grep'ed around and found FETCH_USING in
mk/fetch/fetch.mk
and
mk/bsd.prefs.mk
(but no "documentation section" for it that I can see)
I've been trying to do the "simple, obvious" by adding
FETCH_USING=curl
I could have sworn that got me in trouble before, but now it
appears to work as intended, so I'm not arguing against that.
So my currently un-answered questions around this:
I'm guessing I'm not alone in seeing that GitHub issue?
Is this the "correct" way to deal with it?
Has ftp been updated to deal more gracefully with this issue?
Should it be?
Regards,
- Håvard
Home |
Main Index |
Thread Index |
Old Index