Add workaround for borked autotools installation

https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

Without this, build on a system with merged-sbin fails.

[skip changelog]
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-04-08 21:24:08 +02:00
commit 480d4cbafa

View file

@ -434,6 +434,11 @@ find %{buildroot}%{_mandir}/man8 -regextype posix-egrep \
-regex ".*(linux32|linux64|s390|s390x|i386|ppc|ppc64|ppc32|sparc|sparc64|sparc32|sparc32bash|mips|mips64|mips32|ia64|x86_64|uname26)\.8.*" \
-printf "%{_mandir}/man8/%f*\n" >> %{name}.files
%if "%{_sbindir}" == "%{_bindir}"
# Autotools installation script gets the location wrong :(
mv -v %{buildroot}/usr/sbin/* %{buildroot}/usr/bin/
%endif
%post
%systemd_post fstrim.{service,timer}