# Maintainer: Jan Alexander Steffens (heftig) pkgbase=linux-kentdobias _kver=6.6.2 _zver=2.2.1 pkgver="${_kver}_${_zver}" pkgrel=2 pkgdesc='Linux' url='https://github.com/archlinux/linux' arch=(x86_64) license=(GPL2) makedepends=( bc cpio gettext libelf pahole perl python tar xz # htmldocs graphviz imagemagick python-sphinx texlive-latexextra git clang llvm lld ) options=('!strip') _srcname=linux-${_kver} _srctag=v${_kver%.*}-${_kver##*.} source=( https://cdn.kernel.org/pub/linux/kernel/v${_kver%%.*}.x/${_srcname}.tar.{xz,sign} https://github.com/openzfs/zfs/releases/download/zfs-${_zver}/zfs-${_zver}.tar.{gz,gz.asc} config # the main kernel config file ) validpgpkeys=( ABAF11C65A2970B130ABE3C479BE3E4300411886 # Linus Torvalds 647F28654894E3BD457199BE38DBBDC86092693E # Greg Kroah-Hartman A2FF3A36AAA56654109064AB19802F8B0D70FC30 # Jan Alexander Steffens (heftig) 0E3A444DD0760E65901BF59679E824090BD31086 # Jaron Kent-Dobias C33DF142657ED1F7C328A2960AB9E991C6AF658B # Brian Behlendorf 4F3BA9AB6D1F8D683DC2DFB56AD860EED4598027 # Tony Hutter ) # https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc sha256sums=('73d4f6ad8dd6ac2a41ed52c2928898b7c3f2519ed5dbdb11920209a36999b77e' 'SKIP' '4ff2de43d39710283ae8ff1744aa96e6cdc83c8efe86a715294d4f6bc34a8e8e' 'SKIP' '362c90577c1c3a516e7057f756f990a9045f514bb715c17c21da318e428ca1aa') b2sums=('88fc55107834d4308d33547211a031674ffaa8e48e23d6612ba39430292b18073d49271bd3ce8c7be01d8c5668482cb1715071abfd9b1f75b06468a09f8f4eec' 'SKIP' 'c3ff95c892024a11ee5c266b10e3354074606665a201fbab16e1ed12550340e0d991d98bd74f794331b68bd16cd6147a9e8937b8cda72d454abce72a22bafec6' 'SKIP' '2294d356cfedecc1c8c2ae414a0fdb7b580b616b12284b464cc9ccb8c04098aae13574a6a04ed6411b7f8fb6f18a4761d5a601d854d0d9278c009f94080dc274') export KBUILD_BUILD_HOST=archlinux export KBUILD_BUILD_USER=$pkgbase export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" export LLVM=1 prepare() { cd $_srcname echo "Setting version..." echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" src="${src%.zst}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done echo "Setting config..." cp ../config .config make olddefconfig make prepare cd ../zfs-${_zver} echo "diff --git a/config/kernel-inode-times.m4 b/config/kernel-inode-times.m4 index 412e13b47..aae95abf1 100644 --- a/config/kernel-inode-times.m4 +++ b/config/kernel-inode-times.m4 @@ -47,7 +47,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [ #include ],[ struct inode ip; - struct timespec64 ts; + struct timespec64 ts = {0}; memset(&ip, 0, sizeof(ip)); inode_set_ctime_to_ts(&ip, ts);" | patch -Np1 ./autogen.sh KERNEL_LLVM=1 CC=clang ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin --with-mounthelperdir=/usr/bin \ --libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include \ --with-udevdir=/usr/lib/udev --libexecdir=/usr/lib \ --enable-systemd --enable-pyzfs \ --with-zfsexecdir=/usr/lib/zfs --localstatedir=/var \ --enable-linux-builtin --with-linux=../$_srcname ./copy-builtin ../$_srcname cd ../$_srcname cp ../config .config make olddefconfig diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(