From 7d558b577fd1dc51ca549b066baa09fca72f9cd0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 13 Dec 2022 13:17:00 +0100 Subject: [PATCH] Default to linking with libclang instead of using dlopen --- bindgen-fix-metadata.diff | 10 ++++++++++ rust-bindgen.spec | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 bindgen-fix-metadata.diff diff --git a/bindgen-fix-metadata.diff b/bindgen-fix-metadata.diff new file mode 100644 index 0000000..089ba16 --- /dev/null +++ b/bindgen-fix-metadata.diff @@ -0,0 +1,10 @@ +--- bindgen-0.63.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bindgen-0.63.0/Cargo.toml 2022-12-13T11:47:34.400282+00:00 +@@ -102,7 +102,6 @@ + [features] + default = [ + "logging", +- "runtime", + "which-rustfmt", + ] + logging = ["log"] diff --git a/rust-bindgen.spec b/rust-bindgen.spec index a7ccf79..4335a62 100644 --- a/rust-bindgen.spec +++ b/rust-bindgen.spec @@ -12,6 +12,9 @@ Summary: Automatically generates Rust FFI bindings to C and C++ libraries License: BSD-3-Clause URL: https://crates.io/crates/bindgen Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * default to linking with libclang instead of using dlopen +Patch: bindgen-fix-metadata.diff BuildRequires: rust-packaging >= 21