[packages/kernel/LINUX_4_9] - shebang fixes - rel 2
baggins
baggins at pld-linux.org
Sun Dec 22 00:03:40 CET 2019
commit 5966561090f33deb9939b965b3f888f14dd49643
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Dec 22 00:01:47 2019 +0100
- shebang fixes
- rel 2
kernel.spec | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/kernel.spec b/kernel.spec
index 4cc1fe97..08d319ab 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -71,7 +71,7 @@
%define have_pcmcia 0
%endif
-%define rel 1
+%define rel 2
%define basever 4.9
%define postver .207
@@ -732,6 +732,31 @@ sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{?alt_kernel:.%{alt_kernel}}#g' Makef
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
+find -name '*.py' -print0 | \
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
+ -e '1s,/usr/bin/env python,%{__python},' \
+ -e '1s,/usr/bin/env python3,%{__python3},'
+
+%{__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/show_delta \
+ tools/kvm/kvm_stat/kvm_stat
+
+find -name '*.pl' -print0 | \
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+ scripts/dtc/dt_to_config \
+ scripts/cleanfile \
+ scripts/cleanpatch \
+ scripts/get_dvb_firmware \
+ scripts/kernel-doc \
+ scripts/stackdelta
+
%build
install -d %{objdir}
cat > %{targetobj}.mk <<'EOF'
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/5966561090f33deb9939b965b3f888f14dd49643
More information about the pld-cvs-commit
mailing list