From e7d7dab1bb50c1172206629a44f983c1794f8359 Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Mon, 23 May 2022 16:53:38 +0300 Subject: [PATCH] fix: check and add debian package compression for kernel legacy (#3807) --- lib/compilation-prepare.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/compilation-prepare.sh b/lib/compilation-prepare.sh index 7a9479f82..f2161f80e 100644 --- a/lib/compilation-prepare.sh +++ b/lib/compilation-prepare.sh @@ -107,6 +107,15 @@ compilation_prepare() process_patch_file "${SRC}/patch/misc/general-packaging-4.9.y.patch" "applying" fi + # After the patches have been applied, + # check and add debian package compression if required. + # + if [ "$(awk '/dpkg --build/{print $1}' $kerneldir/scripts/package/builddeb)" == "dpkg" ];then + sed -i -e ' + s/dpkg --build/dpkg-deb \${KDEB_COMPRESS:+-Z\$KDEB_COMPRESS} --build/ + ' "$kerneldir"/scripts/package/builddeb + fi + # # Linux splash file #