diff --git a/0001-deps-update-goblin-to-0.0.14.patch b/0001-deps-update-goblin-to-0.0.14.patch new file mode 100644 index 0000000..7200941 --- /dev/null +++ b/0001-deps-update-goblin-to-0.0.14.patch @@ -0,0 +1,26 @@ +From dd038c59eae24707b37c6788aed6387d79f68ed6 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Thu, 18 Jan 2018 09:28:39 +0100 +Subject: [PATCH] deps: update goblin to 0.0.14 + +Signed-off-by: Igor Gnatenko +--- + src/macho.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/macho.rs b/src/macho.rs +index 1bcc4ab..e40a670 100644 +--- a/src/macho.rs ++++ b/src/macho.rs +@@ -203,7 +203,7 @@ where + + #[inline] + fn is_little_endian(&self) -> bool { +- self.macho.header.is_little_endian() ++ self.macho.little_endian + } + } + +-- +2.15.1 + diff --git a/object-0.7.0-fix-metadata.diff b/object-0.7.0-fix-metadata.diff new file mode 100644 index 0000000..93e9279 --- /dev/null +++ b/object-0.7.0-fix-metadata.diff @@ -0,0 +1,11 @@ +--- object-0.7.0/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ object-0.7.0/Cargo.toml 2018-01-18T09:25:24.824106+01:00 +@@ -19,7 +19,7 @@ + license = "Apache-2.0/MIT" + repository = "https://github.com/gimli-rs/object" + [dependencies.goblin] +-version = "0.0.13" ++version = "0.0.14" + [dev-dependencies.memmap] + version = "0.6" + diff --git a/rust-object.spec b/rust-object.spec index a6f1f7c..e305998 100644 --- a/rust-object.spec +++ b/rust-object.spec @@ -6,18 +6,23 @@ Name: rust-%{crate} Version: 0.7.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unified interface for the target platform's object file format License: ASL 2.0 or MIT URL: https://crates.io/crates/object Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump goblin to 0.0.14, https://github.com/gimli-rs/object/pull/46 +Patch0: object-0.7.0-fix-metadata.diff +# Make it work with goblin v0.0.14 +Patch1: 0001-deps-update-goblin-to-0.0.14.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] -BuildRequires: (crate(goblin) >= 0.0.13 with crate(goblin) < 0.0.14) +BuildRequires: (crate(goblin) >= 0.0.14 with crate(goblin) < 0.0.15) %if %{with check} # [dev-dependencies] BuildRequires: (crate(memmap) >= 0.6.0 with crate(memmap) < 0.7.0) @@ -58,6 +63,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/coverage %changelog +* Thu Jan 18 2018 Igor Gnatenko - 0.7.0-3 +- Bump goblin to 0.0.14 + * Mon Jan 08 2018 Igor Gnatenko - 0.7.0-2 - Rebuild for rust-packaging v5