From a1cf85fce17054e09d1455536f01b256432360cf Mon Sep 17 00:00:00 2001 From: Joe Bo Run Date: Fri, 22 Sep 2023 18:42:14 +0300 Subject: [PATCH] upg linux-lts --- linux-lts/PKGBUILD | 17 ++-- linux-lts/PKGBUILD-arch | 219 ++++++++++++++++++++++++++++++++++++++++ linux-lts/config | 2 +- linux-lts/sha256sums | 30 +++--- 4 files changed, 246 insertions(+), 22 deletions(-) create mode 100644 linux-lts/PKGBUILD-arch diff --git a/linux-lts/PKGBUILD b/linux-lts/PKGBUILD index 121dea1..665e9e3 100644 --- a/linux-lts/PKGBUILD +++ b/linux-lts/PKGBUILD @@ -6,7 +6,7 @@ #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgbase=linux-lts -pkgver=5.10.195 +pkgver=5.10.196 pkgrel=01 pkgdesc='LTS Linux 5.10 + nvme-fix patch w/o zstd & ipv6' _url="https://www.kernel.org/" @@ -211,14 +211,15 @@ validpgpkeys=(ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E) # Greg Kroah-Hartman # https://cdn.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc -# sha256sums:413bee4adc71a104b998abe8ffd8403a41edf9f634ab82bee509619da2789b58 linux-5.10.195.tar.xz +# sha256sums:71ec2e3af082bcd7c4aac4b8ecdbc2e47695befe4984e3e5567791a605a96fc0 # linux-5.10.196.tar.xz -sha256sums=(413bee4adc71a104b998abe8ffd8403a41edf9f634ab82bee509619da2789b58 # linux-5.10.195.tar.xz - 89bfb81748206af73e5ff6ddf36e33ef14465da18c3ed6693f6b11efd0c4ef47 # linux-5.10.195.tar.sign - bc9a0615f58502fad5c1e59980d4b44474f89ae232995f107d9bd4fd11500b6e # config +sha256sums=(71ec2e3af082bcd7c4aac4b8ecdbc2e47695befe4984e3e5567791a605a96fc0 # linux-5.10.196.tar.xz + c2cec75df0018a0d924aacdd98cb820c743fff4551bfcff0ce27176482da346d # linux-5.10.196.tar.sign + 8503d0f225208a01ccd98b37a38a1eb14fc1f18863fbda798ff5dacd8be104ad # config 96a72e1652314215da7140956c3abcf495cafd00811eda3cf4ce03ec5f791f1e # 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch 0e14c0d788262a9781d8ba1d6e894f30877f015ccf0b6d768d759eac48bcede9 # 0002-fix-nvme.patch - ef15845ece7bc90696c722ac031d2794a33bd73be7e401fbec48e4446c3717ae) # sha256sums + 92118f1acd03d920cc307a23fa1f7601f5db6613b1cda04ecf75cb4ecdfb836b) # sha256sums + +## d93fcaad3674a56fd8888da169a08fd94afd511362b3ebce0e93ec06b54745a3 linux-lts-5.10.196-01-x86_64.pkg.tar.lz +## 9acfe7412e1dd71ab4f18843e62cbe4bad3bcb0fb089cd2e9dac3e32965e8555 linux-lts-headers-5.10.196-01-x86_64.pkg.tar.lz -## b86f1ad1ed8afe65cbc0706dab6e2b525b754feffb471856eced4ee24de1d464 linux-lts-headers-5.10.195-01-x86_64.pkg.tar.lz -## 365f4e73eb947d5d5383e5fe3b51f762573077b98427375e252f41fc62a16ad3 linux-lts-5.10.195-01-x86_64.pkg.tar.lz diff --git a/linux-lts/PKGBUILD-arch b/linux-lts/PKGBUILD-arch new file mode 100644 index 0000000..e89dfc1 --- /dev/null +++ b/linux-lts/PKGBUILD-arch @@ -0,0 +1,219 @@ +# Maintainer: Andreas Radke + +pkgbase=linux-lts +pkgver=5.15.43 +pkgrel=1 +pkgdesc='LTS Linux' +url="https://www.kernel.org/" +arch=(x86_64) +license=(GPL2) +makedepends=( + bc libelf pahole cpio perl tar xz + xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick texlive-latexextra +) +options=('!strip') +_srcname=linux-$pkgver +source=( + https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign} + config # the main kernel config file + 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch + 0002-PCI_Add_more_NVIDIA_controllers_to_the_MSI_masking_quirk.patch + 0003-iommu_intel_do_deep_dma-unmapping_to_avoid_kernel-flooding.patch + 0004-Bluetooth_btintel_Fix_bdaddress_comparison_with_garbage_value.patch + 0005-lg-laptop_Recognize_more_models.patch + 0006_fix_NFSv4_mount_regression.diff +) +validpgpkeys=( + 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds + '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman +) +# https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc +sha256sums=('064b913a9d58773a85cafa62f2a2f9031aeee724d7e41b66631037d9a6571c12' + 'SKIP' + '68de8b84a6e6a61b7107ca1ba6dd3f729531af890af8bebe3b9ba4bb1ec0d118' + '99df282c594cc269d9a5d19bb86ea887892d3654cfc53c4ce94a644cf3278423' + 'c35018601f04ae81e0a2018a8597595db6ae053158c206845399cdebb2d2b706' + '7c7707c738983f3683d76295b496f578996b7341fa39ad334ec2833bfe4b966e' + '3fa8a4af66d5a3b99b48ca979a247c61e81c9b2d3bcdffa9d3895a5532a420b4' + '79266c6cc970733fd35881d9a8f0a74c25c00b4d81741b8d4bba6827c48f7c78' + 'e9527ad81d5b1821a7b17c56cb3abaec85785563f51e448cb3c06f1c68e2966f') + +export KBUILD_BUILD_HOST=archlinux +export KBUILD_BUILD_USER=$pkgbase +export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" + +prepare() { + cd $_srcname + + # fix NFSv4 mounting issue regression - FS#73838 / FS#73860 + # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=6f2836341d8a39e1e000572b10959347d7e61fd9 + patch -Rp1 -i ../0006_fix_NFSv4_mount_regression.diff + + echo "Setting version..." + scripts/setlocalversion --save-scmversion + echo "-$pkgrel" > localversion.10-pkgrel + echo "${pkgbase#linux}" > localversion.20-pkgname + + local src + for src in "${source[@]}"; do + src="${src%%::*}" + src="${src##*/}" + [[ $src = *.patch ]] || continue + echo "Applying patch $src..." + patch -Np1 < "../$src" + done + + echo "Setting config..." + cp ../config .config + make olddefconfig +# diff -u ../config .config || : +#return 1 + make -s kernelrelease > version + echo "Prepared $pkgbase version $(