Switch back to vendored libbpf, as the system one is too old

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 2 years ago
parent 48ff72b944
commit f592dca76f
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

@ -18,11 +18,3 @@
optional = true
[build-dependencies.cc]
@@ -48,6 +48,7 @@
version = "0.3"
[features]
+default = ["novendor"]
novendor = []
static = []

@ -15,12 +15,14 @@ URL: https://crates.io/crates/libbpf-sys
Source: %{crates_source %{crate} %{upstream_version}}
# Manually created patch for downstream crate metadata changes
# * remove version suffix from crate version
# * default to novendor
# * bump bindgen to 0.63
Patch: libbpf-sys-fix-metadata.diff
BuildRequires: rust-packaging >= 21
# the system libbpf is too old, use the bundled copy
Provides: bundled(libbpf) = 1.0.1
%global _description %{expand:
Rust bindings to libbpf from the Linux kernel.}
@ -94,15 +96,12 @@ use the "static" feature of the "%{crate}" crate.
%prep
%autosetup -n %{crate}-%{upstream_version} -p1
# Remove bundled libbpf
rm -r libbpf
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
echo 'elfutils-libelf-devel'
echo 'kernel-headers'
echo 'libbpf-devel'
echo 'zlib-devel'
%build

Loading…
Cancel
Save