From: Prarit Bhargava <prarit(a)redhat.com>
redhat/kernel.spec.template: Remove unnecessary output from pathfix.py
pathfix.py outputs directory names as it traverses them looking for files
to fix, for example,
recursedown('tools')
recursedown('tools/accounting')
recursedown('tools/arch')
This information isn't really useful and can be omitted. The output that
is interesting, such as files that were changed, and in some cases files
that were not changed will remain in the rpm build output.
Remove unnecessary output from pathfix.py.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -1490,6 +1490,7 @@ touch .scmversion
# This fixes errors such as
# *** ERROR: ambiguous python shebang in /usr/bin/kvm_stat: #!/usr/bin/python. Change it
to python3 (or python2) explicitly.
# We patch all sources below for which we got a report/error.
+echo "Fixing Python shebangs..."
pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p -n \
tools/kvm/kvm_stat/kvm_stat \
scripts/show_delta \
@@ -1498,7 +1499,7 @@ pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p -n \
scripts/jobserver-exec \
tools \
Documentation \
- scripts/clang-tools
+ scripts/clang-tools 2> /dev/null
# only deal with configs if we are going to build for the arch
%ifnarch %nobuildarches
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2255