Skip to content

Downloading zlib tarballs from github release page.#2731

Closed
weijianwen wants to merge 1 commit intospack:developfrom
SJTU-HPC:zlib-github
Closed

Downloading zlib tarballs from github release page.#2731
weijianwen wants to merge 1 commit intospack:developfrom
SJTU-HPC:zlib-github

Conversation

@weijianwen
Copy link
Copy Markdown
Contributor

Fix donwloading failures due to invalid zlib tarball URL discussed in #2730 .

Copy link
Copy Markdown
Member

@citibeth citibeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR needs to be rejected because it changes hashes.

@citibeth citibeth closed this Jan 4, 2017
@alalazo
Copy link
Copy Markdown
Member

alalazo commented Jan 4, 2017

@citibeth needs to seems a bit to hard to me. I understand the concerns on security, but given the number of stars the repository has, I would consider it pretty safe. If we really want to dig to the bottom of it, we can compare the sources to see where are the differences for a given version.

@tgamblin
Copy link
Copy Markdown
Member

tgamblin commented Jan 4, 2017

@citibeth: the hash changes here are because github auto-generates its tarballs. I've seen this issue with other repos before -- github releases often have different hashes from whatever is posted on a project's webpage.

I do think the link @citibeth posted in #2732 is a better way to do his, though. @weijianwen: do you want to take that change on? Sorry for all the confusion.

@weijianwen
Copy link
Copy Markdown
Contributor Author

@tgamblin Rahter than SourceForge or other places, I think both http://zlib.net/fossils/ and github release pages are sound places to host the tarballs -- spack checksum works well on these URLs. Since zlib tarball is downloaded from the project site at the very beginning, I prefer to keep this convention.

$ spack checksum zlib
==> Found 69 versions of zlib
  1.2.10   http://zlib.net/fossils/zlib-1.2.10.tar.gz
  1.2.9    http://zlib.net/fossils/zlib-1.2.9.tar.gz
  1.2.8    http://zlib.net/fossils/zlib-1.2.8.tar.gz
  1.2.7.3  http://zlib.net/fossils/zlib-1.2.7.3.tar.gz
  1.2.7.2  http://zlib.net/fossils/zlib-1.2.7.2.tar.gz
  1.2.7.1  http://zlib.net/fossils/zlib-1.2.7.1.tar.gz
  1.2.7    http://zlib.net/fossils/zlib-1.2.7.tar.gz
  1.2.6.1  http://zlib.net/fossils/zlib-1.2.6.1.tar.gz
  1.2.6    http://zlib.net/fossils/zlib-1.2.6.tar.gz
  ...
  0.8      http://zlib.net/fossils/zlib-0.8.tar.gz

How many would you like to checksum? (default is 5, q to abort)

@citibeth
Copy link
Copy Markdown
Member

citibeth commented Jan 4, 2017 via email

@weijianwen weijianwen deleted the zlib-github branch February 3, 2017 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants