On 08/19/2018 06:25 AM, Jonathan Cottrill wrote:
On Saturday, August 18, 2018 10:32:12 PM CDT Bruce Dubbs wrote:

So what is the full url?  https://github.com/ninja-build/ninja/archive/
is not found as is
https://github.com/ninja-build/ninja/archive/ninja-1.8.2.tar.gz

https://github.com/ninja-build/ninja/archive/v1.8.2.tar.gz works, but
sucks for a wget list.

    -- Bruce

If you use:

https://codeload.github.com/ninja-build/ninja/tar.gz/v1.8.2

...Github sends a Content-Disposition header with a more appropriate filename,
such as ninja-1.8.2.tar.gz. wget can handle this with the --content-
disposition option.

I tried downloading the wget-list for 8.3-rc2 (with the Ninja URL replaced by
the one above) using this command:

wget --input-file=wget-list --continue --content-disposition

None of the other filenames changed (presumably, no one else is sending a
Content-Disposition header, or if they are, it matches the filename in the
URL). Ninja was downloaded as ninja-1.8.2.tar.gz.

This does work, but is certainly not optimal.  From the man page:

--content-disposition
If this is set to on, experimental (not fully-functional) support for "Content-Disposition" headers is enabled. This can currently result in extra round-trips to the server for a "HEAD" request, and is known to suffer from a few bugs, which is why it is not currently enabled by default.

I suspect most users will not know about this option.

I see two options for us:

1. Host the tarball on anduin and point to that. We also need to add a note to the packages page about where the original is located. I have already copied the tarball to http://anduin.linuxfromscratch.org/LFS/

2. Ask upstream to provide a properly named tarball. Done, issue #1461. https://github.com/ninja-build/ninja/issues/1461

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to