From 8a93ee4115a2e73de6b37689c16bd36a6e4333da Mon Sep 17 00:00:00 2001 From: Yasmin Valim Date: Tue, 1 Oct 2024 14:41:34 -0300 Subject: [PATCH] Fix build error Source files should not be executable, to correct this problem we did this fix. More about: https://github.com/krisprice/ipnet/issues/59 resolves: #https://issues.redhat.com/browse/RHEL-60912 --- rust-afterburn.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust-afterburn.spec b/rust-afterburn.spec index 89acc6a..dc6ec54 100644 --- a/rust-afterburn.spec +++ b/rust-afterburn.spec @@ -110,6 +110,8 @@ to run in the initramfs on boot. %autosetup -n %{crate}-%{version_no_tilde} -p1 %{?rhel:-a1} %if 0%{?rhel} %cargo_prep -v vendor +# avoid brp-mangle-shebangs error from sources with executable bit +chmod -x vendor/ipnet/src/*.rs %else %cargo_prep %endif