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

pcre: fetch from HTTPS instead of FTP #44828

Merged
merged 1 commit into from Aug 9, 2018
Merged

Conversation

bhipple
Copy link
Contributor

@bhipple bhipple commented Aug 9, 2018

It's not uncommon for enterprise environments to block FTP traffic to external
sites. Since pcre gives an official HTTPS download URL [1] alongside the
official FTP endpoint, let's use that instead.

[1] https://www.pcre.org/

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

It's not uncommon for enterprise environments to block FTP traffic to external
sites. Since `pcre` gives an official HTTPS download URL [1] alongside the
official FTP endpoint, let's use that instead.

[1] https://www.pcre.org/
@@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
name = "${pname}-${version}";

src = fetchurl {
url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${version}.tar.bz2";
url = "https://ftp.pcre.org/pub/pcre/pcre-${version}.tar.bz2";
sha256 = "00ckpzlgyr16bnqx8fawa3afjgqxw5yxgs2l081vw23qi1y4pl1c";
Copy link
Contributor Author

@bhipple bhipple Aug 9, 2018

Choose a reason for hiding this comment

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

$ nix-prefetch-url https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.bz2
00ckpzlgyr16bnqx8fawa3afjgqxw5yxgs2l081vw23qi1y4pl1c

Looks like we should be able to just swap this without doing any rebuilds.

@bhipple
Copy link
Contributor Author

bhipple commented Aug 9, 2018

@GrahamcOfBorg build pcre

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pcre

Partial log (click to expand)

/nix/store/9icp05wxlsp8y4jhc959zxffyq2f1nx4-pcre-8.42-bin

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pcre

Partial log (click to expand)

/nix/store/qh848fh9wy1yvd8iqnv8vp6ldryhcqvw-pcre-8.42-bin

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pcre

Partial log (click to expand)

/nix/store/qh848fh9wy1yvd8iqnv8vp6ldryhcqvw-pcre-8.42-bin

@xeji
Copy link
Contributor

xeji commented Aug 9, 2018

zero rebuilds, LGTM.

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pcre

Partial log (click to expand)

/nix/store/9icp05wxlsp8y4jhc959zxffyq2f1nx4-pcre-8.42-bin

@xeji xeji merged commit 03709a0 into NixOS:master Aug 9, 2018
bhipple added a commit to bhipple/nixpkgs that referenced this pull request Aug 23, 2018
Same change as in NixOS#44828, for the same reasons.
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.

None yet

3 participants