Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cherry-picked 0.11.1] Use sourceforge url to fetch zlib #2297

Closed
wants to merge 2 commits into from

Conversation

nateanl
Copy link
Member

@nateanl nateanl commented Mar 29, 2022

This PR addresses #2295 by updating zlib's url to the one on sourceforge.net.
zlib 1.2.11 source code is removed from the official site. According to https://zlib.net, Due to the bug fixes, any installations of 1.2.11 should be replaced with 1.2.12.
sourceforge preserves the older versions thus is more stable. The PR keep 1.2.11 as currently there is no 1.2.12 on sourceforge.

URL https://zlib.net/zlib-1.2.11.tar.gz
URL_HASH SHA256=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
URL https://zlib.net/zlib-1.2.12.tar.gz
URL_HASH SHA256=91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9
Copy link
Collaborator

Choose a reason for hiding this comment

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

Although this is correct. Can we actually keep 1.2.11 and instead update the URL to one on sourceforge? i.e. URL https://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz

Here are the reasons.

  1. We learned that zlib.net would delete previous releases when there is a new release. This gives concerns because when there is a new release of zlib, then the source build would break again. Due to this, the latest versioned release (0.11) cannot be built from source. If we rely on sourceforge.net, then we can expect that old releases are preserved.
  2. Currently there is no 1.2.12 on sourceforge. https://sourceforge.net/projects/libpng/files/zlib/ We need to wait for them to upload 1.2.12 to source forge.

@nateanl nateanl changed the title Update zlib to 1.2.12 Use sourceforge url to fetch zlib Mar 30, 2022
@nateanl nateanl requested a review from mthrok March 30, 2022 09:07
Copy link
Collaborator

@mthrok mthrok left a comment

Choose a reason for hiding this comment

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

Looks good. Once landed, can you cherry-pick this to release/0.11 branch?

@facebook-github-bot
Copy link
Contributor

@nateanl has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

nateanl added a commit that referenced this pull request Mar 30, 2022
Summary:
This PR addresses #2295 by updating `zlib`'s url to the one on sourceforge.net.
`zlib` 1.2.11 source code is removed from the official site. According to https://zlib.net, ```Due to the bug fixes, any installations of 1.2.11 should be replaced with 1.2.12.```
sourceforge preserves the older versions thus is more stable. The PR keep 1.2.11 as currently there is no 1.2.12 on sourceforge.

Pull Request resolved: #2297

Reviewed By: mthrok

Differential Revision: D35251361

Pulled By: nateanl

fbshipit-source-id: 174c2c2e1c34bef9799bbacfd1e12c8ff13ff15d
@mthrok mthrok changed the title Use sourceforge url to fetch zlib [Cherry-picked 0.11.1] Use sourceforge url to fetch zlib Mar 31, 2022
xiaohui-zhang pushed a commit to xiaohui-zhang/audio that referenced this pull request May 4, 2022
Summary:
This PR addresses pytorch#2295 by updating `zlib`'s url to the one on sourceforge.net.
`zlib` 1.2.11 source code is removed from the official site. According to https://zlib.net, ```Due to the bug fixes, any installations of 1.2.11 should be replaced with 1.2.12.```
sourceforge preserves the older versions thus is more stable. The PR keep 1.2.11 as currently there is no 1.2.12 on sourceforge.

Pull Request resolved: pytorch#2297

Reviewed By: mthrok

Differential Revision: D35251361

Pulled By: nateanl

fbshipit-source-id: 174c2c2e1c34bef9799bbacfd1e12c8ff13ff15d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants