tech-pkg archive

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

FETCH_USING and FETCH_CMD



Hi,

I have a problem understanding how to properly use alternative agents for downloading distfiles. For a package that I am updating (sysutils/tsm8), the default 'fetch' corrupts the distfile (which, after half a GB of download, is rather annoying, and it doesn't help that the libarchive tar(1) reacts with an endless stream of errors, unlike gtar), when a manual fetch with curl(1) does not.

According to <https://www.netbsd.org/docs/pkgsrc/faq.html#resume-transfers>, you are supposed to set FETCH_USING to your preferred agent, leaving it open whether this is a global (mk.conf) setting, or per-package, or both.

<http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44396>, on the other hand, talks about 'manual' and 'custom' settings for FETCH_USING.

Setting
FETCH_USING= curl
FETCH_CMD= curl

for tsm8 leads to

%> make fetch
=> Bootstrap dependency digest>=20010302: found digest-20190127
WARNING: [license.mk] Every package should define a LICENSE.
=> Fetching 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
=> Total size: 616130560 bytes
curl: (6) Could not resolve host: 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
fetch: Unable to fetch expected file 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
curl: (6) Could not resolve host: 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
pub/pkgsrc/distfiles/8.1.12.0-TIV-TSMBAC-LinuxX86.tar: <pre>This item has not been found</pre>
<hr><address><a href="//cdn.netbsd.org/">cdn.netbsd.org</a></address>
</body></html>
fetch: File 8.1.12.0-TIV-TSMBAC-LinuxX86.tar does not exist.
curl: (6) Could not resolve host: 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
curl: (7) Couldn't connect to server
fetch: Unable to fetch expected file 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
curl: (6) Could not resolve host: 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>
fetch: File 8.1.12.0-TIV-TSMBAC-LinuxX86.tar does not exist.
curl: (6) Could not resolve host: 8.1.12.0-TIV-TSMBAC-LinuxX86.tar
<html><head><title>404 Not Found</title></head>
<body><h1>404 Not Found</h1>
pub/pkgsrc/distfiles/8.1.12.0-TIV-TSMBAC-LinuxX86.tar: <pre>This item has not been found</pre>
<hr><address><a href="//ftp.NetBSD.org/">ftp.NetBSD.org</a></address>
</body></html>
fetch: File 8.1.12.0-TIV-TSMBAC-LinuxX86.tar does not exist.
*** Error code 1

Stop.
make: stopped in /u/sources/pkgsrc/sysutils/tsm8
%

-- so, obviously I am doing it wrong. Examples in the source tree are scarce.

Can anybody enlighten me?

Cheerio,
Hauke

--
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email	        Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-21344


Home | Main Index | Thread Index | Old Index