From c26312a3e42aee7ce7371620dd231717c3c1fb59 Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 6 Nov 2018 04:39:20 +0100 Subject: [PATCH] rustup: add patch for libressl-2.8. --- srcpkgs/rustup/patches/libressl-2.8.patch | 9 +++++++++ srcpkgs/rustup/template | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/rustup/patches/libressl-2.8.patch diff --git a/srcpkgs/rustup/patches/libressl-2.8.patch b/srcpkgs/rustup/patches/libressl-2.8.patch new file mode 100644 index 0000000000..c479c4e183 --- /dev/null +++ b/srcpkgs/rustup/patches/libressl-2.8.patch @@ -0,0 +1,9 @@ +--- Cargo.toml ++++ Cargo.toml +@@ -77,3 +77,6 @@ + name = "rustup-init" + path = "src/rustup-cli/main.rs" + test = false # no unit tests ++ ++[patch.crates-io] ++openssl-sys = {git = 'https://github.com/jnbr/rust-openssl', rev = "d5471c97ae86e5bd1032eb6fd95005933f507c49"} diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template index dbe9049b0d..a715ed1470 100644 --- a/srcpkgs/rustup/template +++ b/srcpkgs/rustup/template @@ -13,7 +13,10 @@ license="Apache-2.0, MIT" homepage="https://www.rustup.rs" distfiles="https://github.com/rust-lang-nursery/${pkgname}.rs/archive/${version}.tar.gz" checksum=ab125d9b12bf0f3f7e7ad98e826035fa1ae3dbe6ba8b78be4c82f9cde00bc59f -broken="uses incompatible openssl-sys" + +pre_build() { + cargo update --package openssl-sys --precise 0.9.35 +} do_install() { vbin target/${RUST_TARGET}/release/rustup-init rustup