From 7220ebe3bbcb90442b730ae5be922d9bb151c850 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jan 13 2018 12:19:04 +0000 Subject: fix build with new openssl Signed-off-by: Igor Gnatenko --- diff --git a/0001-deps-update-openssl-to-0.10.patch b/0001-deps-update-openssl-to-0.10.patch new file mode 100644 index 0000000..bcb51ba --- /dev/null +++ b/0001-deps-update-openssl-to-0.10.patch @@ -0,0 +1,26 @@ +From fdc4e5c7507f8beb55326357bce4a7f90f97a953 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Sat, 13 Jan 2018 11:15:25 +0100 +Subject: [PATCH] deps: update openssl to 0.10 + +Signed-off-by: Igor Gnatenko +--- + src/lib.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib.rs b/src/lib.rs +index e29f263..29cb09b 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -526,7 +526,7 @@ mod tests { + m.update(&bytes[..len]); + r.update(&bytes[..len]).unwrap(); + } +- assert_eq!(r.finish2().unwrap().as_ref(), &m.digest().bytes()); ++ assert_eq!(r.finish().unwrap().as_ref(), &m.digest().bytes()); + } + } + } +-- +2.15.1 + diff --git a/rust-sha1.spec b/rust-sha1.spec index bc6cf7a..898f3fa 100644 --- a/rust-sha1.spec +++ b/rust-sha1.spec @@ -16,6 +16,8 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ # * Bump rand to 0.4, https://github.com/mitsuhiko/rust-sha1/pull/26 # * Bump openssl to 0.10, https://github.com/mitsuhiko/rust-sha1/pull/28 Patch0: sha1-0.4.0-fix-metadata.diff +# Make it work with openssl v0.10 +Patch1: 0001-deps-update-openssl-to-0.10.patch ExclusiveArch: %{rust_arches}