Skip to content

Commit

Permalink
chroot-fixups: prevent %install of llvm from taking ages to complete
Browse files Browse the repository at this point in the history
The `brp-llvm-compile-lto-elf` script does not work well in our scanning
environment and causes the %install section of `llvm-16.0.6-4.el9` to
take 7 days to complete.

Depends-on: #179
  • Loading branch information
kdudka committed Jul 16, 2024
1 parent 4248148 commit 01e3417
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/chroot-fixups/rpm-build-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning

Code scanning / shellcheck

SC3009 Warning

In POSIX sh, brace expansion is undefined.
if [ -f $script ]; then

Check warning

Code scanning / shellcheck

SC2086 Warning

Double quote to prevent globbing and word splitting.
ln -fsvT /bin/true $script

Check warning

Code scanning / shellcheck

SC2086 Warning

Double quote to prevent globbing and word splitting.
fi
done

0 comments on commit 01e3417

Please sign in to comment.