diff --git a/audit/audit-3.0.9-flex_array_workaround.patch b/audit/audit-3.0.9-flex_array_workaround.patch new file mode 100644 index 0000000..3f22d37 --- /dev/null +++ b/audit/audit-3.0.9-flex_array_workaround.patch @@ -0,0 +1,37 @@ +diff -urp audit-3.0.8.orig/bindings/swig/src/auditswig.i audit-3.0.8/bindings/swig/src/auditswig.i +--- audit-3.0.8.orig/bindings/swig/src/auditswig.i 2022-03-29 16:52:34.000000000 -0400 ++++ audit-3.0.8/bindings/swig/src/auditswig.i 2022-03-29 17:31:15.810268855 -0400 +@@ -39,7 +39,7 @@ signed + #define __attribute(X) /*nothing*/ + typedef unsigned __u32; + typedef unsigned uid_t; +-%include "/usr/include/linux/audit.h" ++%include "../lib/audit.h" + #define __extension__ /*nothing*/ + %include + %include "../lib/libaudit.h" +diff -urp audit-3.0.8.orig/lib/audit.h audit-3.0.8/lib/audit.h +--- audit-3.0.8.orig/lib/audit.h 2022-03-29 17:29:30.358211892 -0400 ++++ audit-3.0.8/lib/audit.h 2022-03-29 17:31:15.811268833 -0400 +@@ -514,7 +514,7 @@ struct audit_rule_data { + __u32 values[AUDIT_MAX_FIELDS]; + __u32 fieldflags[AUDIT_MAX_FIELDS]; + __u32 buflen; /* total length of string fields */ +- char buf[]; /* string fields buffer */ ++ char buf[0]; /* string fields buffer */ + }; + + #endif /* _LINUX_AUDIT_H_ */ +diff -urp audit-3.0.8.orig/lib/libaudit.h audit-3.0.8/lib/libaudit.h +--- audit-3.0.8.orig/lib/libaudit.h 2022-03-29 16:52:34.000000000 -0400 ++++ audit-3.0.8/lib/libaudit.h 2022-03-29 17:31:15.812268812 -0400 +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include "audit.h" + #include + #include + #ifndef __attr_access +Only in audit-3.0.8/lib: libaudit.h.orig diff --git a/audit/audit-3.0.9-undo_flex_array_workaround.patch b/audit/audit-3.0.9-undo_flex_array_workaround.patch new file mode 100644 index 0000000..b74bd33 --- /dev/null +++ b/audit/audit-3.0.9-undo_flex_array_workaround.patch @@ -0,0 +1,12 @@ +diff -urp usr.orig/include/libaudit.h.orig usr/include/libaudit.h +--- usr.orig/include/libaudit.h.orig 2022-02-14 14:14:08.000000000 -0500 ++++ usr/include/libaudit.h 2022-02-23 13:35:52.638340789 -0500 +@@ -39,7 +39,7 @@ extern "C" { + #include + #include + #include +-#include "audit.h" ++#include + #include + #include + diff --git a/linux-lts/PKGBUILD b/linux-lts/PKGBUILD index d75fe7d..cc3b8a7 100644 --- a/linux-lts/PKGBUILD +++ b/linux-lts/PKGBUILD @@ -46,7 +46,7 @@ prepare() { echo "Setting joborun config..." cp ../config .config make olddefconfig - diff -u ../config .config || : +# diff -u ../config .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $( +# Contributor: Andreas Radke + +pkgbase=linux-lts510 +pkgver=5.10.153 +pkgrel=1 +pkgdesc='LTS 5.10 Linux' +url="https://www.kernel.org/" +arch=(x86_64) +license=(GPL2) +makedepends=( + bc kmod libelf pahole cpio perl tar xz + xmlto python-sphinx python-sphinx_rtd_theme python-six graphviz imagemagick +) +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 +) +validpgpkeys=( + 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds + '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman +) +# https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc +sha256sums=('3cf2e4519fe451caef0ee0a8beac694612267325f7055fc38d6a990a762f1662' + 'SKIP' + '2367f59976f6fc902d226229564a98f5d1df3a91e742a292c3deccc3e4a8ffc0' + '96a72e1652314215da7140956c3abcf495cafd00811eda3cf4ce03ec5f791f1e') + +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 + + 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 + + make -s kernelrelease > version + echo "Prepared $pkgbase version $( +# Contributor: Andreas Radke + +pkgbase=linux-lts510-nvme-fix +pkgver=5.10.147 +pkgrel=1 +pkgdesc='LTS 5.10 Linux' +url="https://www.kernel.org/" +arch=(x86_64) +license=(GPL2) +makedepends=( + bc kmod libelf pahole cpio perl tar xz + xmlto python-sphinx python-sphinx_rtd_theme python-six graphviz imagemagick +) +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 + 02-fix-nvme.patch +) +validpgpkeys=( + 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds + '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman +) +# https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc +sha256sums=('85253abf097eb5013b988a400eb022eed0e0626e7e0a7daa3ab4b6bcabbced9a' + 'SKIP' + '2367f59976f6fc902d226229564a98f5d1df3a91e742a292c3deccc3e4a8ffc0' + '96a72e1652314215da7140956c3abcf495cafd00811eda3cf4ce03ec5f791f1e' + '0e14c0d788262a9781d8ba1d6e894f30877f015ccf0b6d768d759eac48bcede9') + +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 + + 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 + make -s kernelrelease > version + echo "Prepared $pkgbase version $(