]> TLD Linux GIT Repositories - packages/kernel.git/commitdiff
- fix shebang in mitigation-patching.sh
authorMarcin Krol <hawk@tld-linux.org>
Thu, 28 Mar 2024 23:52:14 +0000 (00:52 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 28 Mar 2024 23:52:14 +0000 (00:52 +0100)
kernel.spec

index 2103d765278ac9610fbe0700294892ff783e116c..b14b7193d07193b7afaa7e0d7d632ba2d9127571 100644 (file)
@@ -342,14 +342,14 @@ find -name '*.py' -print0 | \
 %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
        -e '1s,/usr/bin/env python$,%{__python},' \
        -e '1s,/usr/bin/env python3$,%{__python3},' \
-               drivers/staging/greybus/tools/lbtest \
-               scripts/bloat-o-meter \
-               scripts/diffconfig \
-               scripts/jobserver-exec \
-               scripts/show_delta \
-               tools/hv/vmbus_testing \
-               tools/kvm/kvm_stat/kvm_stat \
-               tools/testing/selftests/exec/binfmt_script
+       drivers/staging/greybus/tools/lbtest \
+       scripts/bloat-o-meter \
+       scripts/diffconfig \
+       scripts/jobserver-exec \
+       scripts/show_delta \
+       tools/hv/vmbus_testing \
+       tools/kvm/kvm_stat/kvm_stat \
+       tools/testing/selftests/exec/binfmt_script
 
 find -name '*.pl' -print0 | \
        xargs -0 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
@@ -364,12 +364,10 @@ find -name '*.pl' -print0 | \
        scripts/sphinx-pre-install \
        scripts/stackdelta
 
-%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\\1,' \
+%{__sed} -i -e '1s,/usr/bin/env bash,%{__bash},' \
+       tools/testing/selftests/powerpc/security/mitigation-patching.sh \
        scripts/config
 
-%{__sed} -i -e '1s,/usr/bin/awk,/bin/awk,' \
-       scripts/ld-version.sh
-
 %build
 install -d %{objdir}
 cat > %{targetobj}.mk <<'EOF'