From: Prarit Bhargava <prarit(a)redhat.com>
redhat: Remove parallel_xz.sh
The parallel_xz.sh script is no longer used. It is defined as Source22 but is never
called. The script was removed from execution in ark commit
e60c3381ad10 ("Temporarily backout parallel xz script") and never put back into
execution.
A quick test doesn't show a benefit of using parallel_xz.sh so it can be safely
removed.
Remove the unused parallel_xz.sh script.
Additional fix: The comment line is a remnant of configuring -j for
parallel_xz.sh and can also be removed.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -640,7 +640,6 @@ sources-rh: $(TARBALL) generate-testpatch-tmp setup-source
dist-configs-check
configs/generate_all_configs.sh \
configs/merge.pl \
configs/process_configs.sh \
- parallel_xz.sh \
../Makefile.rhelver \
README.rst \
kernel-local \
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
@@ -90,7 +90,6 @@ Summary: The Linux kernel
%if %{zipmodules}
%global zipsed -e 's/\.ko$/\.ko.xz/'
-# for parallel xz processes, replace with 1 to go back to single process
%endif
%if 0%{?fedora}
@@ -760,7 +759,6 @@ Source13: redhatsecureboot003.cer
Source20: mod-denylist.sh
Source21: mod-sign.sh
-Source22: parallel_xz.sh
%define modsign_cmd %{SOURCE21}
diff --git a/redhat/parallel_xz.sh b/redhat/parallel_xz.sh
deleted file mode 100755
index blahblah..blahblah 0
--- a/redhat/parallel_xz.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# Reads filenames on stdin, xz-compresses each in place.
-# Not optimal for "compress relatively few, large files" scenario!
-
-# How many xz's to run in parallel:
-procgroup=""
-while test "$#" != 0; do
- # Get it from -jNUM
- N="${1#-j}"
- if test "$N" = "$1"; then
- # Not -j<something> - warn and ignore
- echo "parallel_xz: warning: unrecognized argument: '$1'"
- else
- procgroup="$N"
- fi
- shift
-done
-
-# If told to use only one cpu:
-test "$procgroup" || exec xargs -r xz
-test "$procgroup" = 1 && exec xargs -r xz
-
-# xz has some startup cost. If files are really small,
-# this cost might be significant. To combat this,
-# process several files (in sequence) by each xz process via -n 16:
-exec xargs -r -n 16 -P "$procgroup" xz
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2068