From d9a3056badcd254c426f1cbe11e6c12a8d04d5ba Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 28 Jul 2018 17:42:51 +0200 Subject: [PATCH] add missing patch for new goblin Signed-off-by: Igor Gnatenko --- 0001-deps-update-goblin-to-0.0.17.patch | 27 +++++++++++++++++++++++++ rust-object.spec | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 0001-deps-update-goblin-to-0.0.17.patch diff --git a/0001-deps-update-goblin-to-0.0.17.patch b/0001-deps-update-goblin-to-0.0.17.patch new file mode 100644 index 0000000..5200983 --- /dev/null +++ b/0001-deps-update-goblin-to-0.0.17.patch @@ -0,0 +1,27 @@ +From fddbb92505268aa4892180e159828976c98088dc Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Sat, 28 Jul 2018 17:37:57 +0200 +Subject: [PATCH] deps: update goblin to 0.0.17 + +Fixes: https://github.com/gimli-rs/object/issues/62 +Signed-off-by: Igor Gnatenko +--- + src/pe.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/pe.rs b/src/pe.rs +index dba3bfc..77e0aa4 100644 +--- a/src/pe.rs ++++ b/src/pe.rs +@@ -269,7 +269,7 @@ impl<'data, 'file> Iterator for PeSymbolIterator<'data, 'file> { + kind: SymbolKind::Unknown, + section_kind: Some(SectionKind::Unknown), + global: true, +- name: Some(export.name), ++ name: export.name, + address: export.rva as u64, + size: 0, + }); +-- +2.18.0 + diff --git a/rust-object.spec b/rust-object.spec index 10312a5..0a0de90 100644 --- a/rust-object.spec +++ b/rust-object.spec @@ -16,6 +16,8 @@ Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{ # * parity-wasm is not packaged yet # * Bump goblin to 0.0.17, https://github.com/gimli-rs/object/pull/63 Patch0: object-0.9.0-fix-metadata.diff +# Make it work with new goblin +Patch0001: 0001-deps-update-goblin-to-0.0.17.patch ExclusiveArch: %{rust_arches}