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
This commit is contained in:
Yasmin Valim 2024-10-01 14:41:34 -03:00
parent 53330dd4b1
commit 8a93ee4115
No known key found for this signature in database
GPG Key ID: 22BBB0ECEB43330C

View File

@ -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