From a0ca753da58e2bb61b85a760d34d23d345b2adec Mon Sep 17 00:00:00 2001 From: Torge Matthies Date: Wed, 16 Mar 2022 10:26:48 +0100 Subject: [PATCH] Fixes for the recent cpu uarch changes (#463) * prepare: fix error when printing cpu uarch patch name. Fixes the following error: /usr/share/makepkg/util/message.sh: line 69: printf: `B': invalid format character * prepare: fix application of cpu uarch patch. --- linux-tkg-config/prepare | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index c8af396..efc6178 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -385,7 +385,7 @@ _tkg_patcher() { patch -Np1 -i "$tkgpatch" >> "$_where"/prepare.log || error "An error was encountered applying patches. It was logged to the prepare.log file." echo -e "\n" >> "$_where"/prepare.log else - msg2 "Skipping patch ${tkgpatch##*/}...\n (unavailable for this kernel version)" #" + msg2 "Skipping patch %s...\n (unavailable for this kernel version)" "${tkgpatch##*/}" #" fi } @@ -454,7 +454,7 @@ _tkg_srcprep() { _patch_name="more-uarches-for-kernel-5.17%2B" fi - wget -P "${_patch_location}" "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_patch_name}.patch" + wget -O "${_patch_location}/${_patch_name}.patch" "https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/master/${_patch_name}.patch" tkgpatch="${_patch_location}/${_patch_name}.patch" _msg="Applying graysky's cpu opts patch" && _tkg_patcher