From 1a97c0891a0c4c238771207e16a0f4a72b10abd9 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 22 Mar 2024 13:18:35 +0100 Subject: [PATCH] Fix error 2nd try --- PKGBUILD | 3 ++- PKGBUILD.buildtool | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index aa2ca22..564ffc1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -111,6 +111,7 @@ fi options=(!strip !debug) if [ "${_debug}" == "y" ]; then options=(!strip) +fi source=( "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${_kernel_major}.tar.xz" "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${_kernel_major}.tar.sign" @@ -147,7 +148,7 @@ prepare() { ### Add Clear Linux patches echo ":: prepare: patching kernel with Clear Linux patches" # shellcheck disable=SC2013 - for i in $(grep '^Patch' "${srcdir}"/cl-linux/linux.spec"|grep -Ev '^Patch0132|^Patch0109|^Patch0118|^Patch0113|^Patch0138|^Patch0139|^Patch0147' | sed -n 's/.*: //p'); do + for i in $(grep '^Patch' "${srcdir}"/cl-linux/linux.spec|grep -Ev '^Patch0132|^Patch0109|^Patch0118|^Patch0113|^Patch0138|^Patch0139|^Patch0147' | sed -n 's/.*: //p'); do if [ -n "$_use_llvm_lto" ]; then if [ "${i}" == "0162-extra-optmization-flags.patch" ] ; then continue diff --git a/PKGBUILD.buildtool b/PKGBUILD.buildtool index d035549..f656f29 100644 --- a/PKGBUILD.buildtool +++ b/PKGBUILD.buildtool @@ -27,6 +27,7 @@ fi options=(!strip !debug) if [ "${_debug}" == "y" ]; then options=(!strip) +fi source=( "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${_kernel_major}.tar.xz" "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${_kernel_major}.tar.sign" @@ -63,7 +64,7 @@ prepare() { ### Add Clear Linux patches echo ":: prepare: patching kernel with Clear Linux patches" # shellcheck disable=SC2013 - for i in $(grep '^Patch' "${srcdir}"/cl-linux/linux.spec"|grep -Ev '^Patch0132|^Patch0109|^Patch0118|^Patch0113|^Patch0138|^Patch0139|^Patch0147' | sed -n 's/.*: //p'); do + for i in $(grep '^Patch' "${srcdir}"/cl-linux/linux.spec|grep -Ev '^Patch0132|^Patch0109|^Patch0118|^Patch0113|^Patch0138|^Patch0139|^Patch0147' | sed -n 's/.*: //p'); do if [ -n "$_use_llvm_lto" ]; then if [ "${i}" == "0162-extra-optmization-flags.patch" ] ; then continue