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.
This commit is contained in:
Torge Matthies
2022-03-16 10:26:48 +01:00
committed by GitHub
parent 5a6f3d921b
commit a0ca753da5

View File

@@ -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