diff --git a/scripts/chroot-fixups/rpm-build-scripts.sh b/scripts/chroot-fixups/rpm-build-scripts.sh index 73e74db..1ffe082 100755 --- a/scripts/chroot-fixups/rpm-build-scripts.sh +++ b/scripts/chroot-fixups/rpm-build-scripts.sh @@ -5,7 +5,9 @@ if [ -x $script ]; then (set -x; sed -e 's/fail=1/fail=0/' -i $script ) fi -script="/usr/lib/rpm/brp-strip-static-archive" -if [ -f $script ]; then - ln -sfvT /bin/true $script -fi +# skip RPM scripts running in %install that are not needed and break scans +for script in /usr/lib/rpm/{redhat/brp-llvm-compile-lto-elf,brp-strip-static-archive}; do + if [ -f $script ]; then + ln -fsvT /bin/true $script + fi +done