commit: e2e26044c0dce9d993e280fc3e9cc81da0f828a3 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Oct 4 05:02:35 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Oct 4 05:06:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2e26044
sys-fs/zfs-kmod: add 2.1.6 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-fs/zfs-kmod/Manifest | 2 + sys-fs/zfs-kmod/files/zfs-kmod-2.1.6-fgrep.patch | 53 ++++++++++++++++++++++ ...{zfs-kmod-9999.ebuild => zfs-kmod-2.1.6.ebuild} | 15 +++++- sys-fs/zfs-kmod/zfs-kmod-9999.ebuild | 2 +- 4 files changed, 70 insertions(+), 2 deletions(-) diff --git a/sys-fs/zfs-kmod/Manifest b/sys-fs/zfs-kmod/Manifest index 9e6e521d9fef..894b7751ea9b 100644 --- a/sys-fs/zfs-kmod/Manifest +++ b/sys-fs/zfs-kmod/Manifest @@ -1,3 +1,5 @@ DIST zfs-2.1.5-patches.tar.xz 13324 BLAKE2B bfef8abd298cebd54491272b8c1deacace901d9a1acce67cb927bab6447eafd985352fd09f64336aa9d6611bab0e5c761d7973f0a65c408d77bb735a94c60253 SHA512 d2b009664f8eb4f2a8596693011fde578b6eae123c6169e5dfb70bd920c0f987f5177f7b1be008705a421574a8a9bc930f99823785c69e81573f18b0350cb9bd DIST zfs-2.1.5.tar.gz 34951632 BLAKE2B c6e3efd9c0cda91654767eaad0eaaa05cd9a5daf1cb0384c9c78b30062f5c29142ac37ab9dbdaf96c91456d11c317d782d3524ade293f03fda983e5992b79e49 SHA512 d9ccf1049cefa9167d25f71fbdca70092cd02368b60f09341e6489fb68dc5f89e87b026b0191f4d81181a8851449124d824a1d959d0e2fb29c8a3d624edc4f03 DIST zfs-2.1.5.tar.gz.asc 836 BLAKE2B 4a81c266967540850a2cc824e79555ca9d05b2e17e45fa2723893cbd85b55e3d7d791986d6667b7ee1530e7692c03818f15e8b6798393b54989f90801b775786 SHA512 224b0dcf4982c63a8eff0a39d054537e7d023f7c35e154e4d20490b8daf184c076bc8e4de7d2c5af4059f8a802b747e637aad4479cd8d1330cf5b26da2f19c94 +DIST zfs-2.1.6.tar.gz 34951282 BLAKE2B 615fe7a2128af77c6c855ea52b6503a78f0c992ea845b02875ac19aa9dd155c5d4110b668da91c463f96a54767ab92e67e5303572337352484c055c0a0ff9e46 SHA512 75639e4cecb281fe73a6e6bd116693f6609ace9b358385450297d175087b10938c2f489a08c657cf0a64250a8db995cbd19abc808a8523cb4c5344b3f76668d6 +DIST zfs-2.1.6.tar.gz.asc 836 BLAKE2B d85a79f8824a92c4d0a9682646f79c14871ebe27764289dc87cd9b0a773b7295538780401e70c492a9e4e7097ff2b3e459f7e0a7fdce2e2a59d3f467c41d88b3 SHA512 a83fcc00a8b35f1a1f9b94097d453019333a5351a3d78656dbd9ef732655ee817ccc88068c5ba11b5ff4a285e02250aee4169cc1450025edf547a2329fca7e15 diff --git a/sys-fs/zfs-kmod/files/zfs-kmod-2.1.6-fgrep.patch b/sys-fs/zfs-kmod/files/zfs-kmod-2.1.6-fgrep.patch new file mode 100644 index 000000000000..2e47c5bcc093 --- /dev/null +++ b/sys-fs/zfs-kmod/files/zfs-kmod-2.1.6-fgrep.patch @@ -0,0 +1,53 @@ +https://github.com/openzfs/zfs/commit/d30577c9dd811688f2609ad532b011b99bceb485 + +From d30577c9dd811688f2609ad532b011b99bceb485 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= <nabijaczlew...@nabijaczleweli.xyz> +Date: Sat, 12 Mar 2022 00:26:46 +0100 +Subject: [PATCH] fgrep -> grep -F +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Reviewed-by: Brian Behlendorf <behlendo...@llnl.gov> +Reviewed-by: John Kennedy <john.kenn...@delphix.com> +Reviewed-by: Ryan Moeller <r...@ixsystems.com> +Signed-off-by: Ahelenia ZiemiaĆska <nabijaczlew...@nabijaczleweli.xyz> +Closes #13259 +--- a/config/kernel.m4 ++++ b/config/kernel.m4 +@@ -394,11 +394,11 @@ AC_DEFUN([ZFS_AC_KERNEL], [ + utsrelease1=$kernelbuild/include/linux/version.h + utsrelease2=$kernelbuild/include/linux/utsrelease.h + utsrelease3=$kernelbuild/include/generated/utsrelease.h +- AS_IF([test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1], [ ++ AS_IF([test -r $utsrelease1 && grep -qF UTS_RELEASE $utsrelease1], [ + utsrelease=$utsrelease1 +- ], [test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2], [ ++ ], [test -r $utsrelease2 && grep -qF UTS_RELEASE $utsrelease2], [ + utsrelease=$utsrelease2 +- ], [test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3], [ ++ ], [test -r $utsrelease3 && grep -qF UTS_RELEASE $utsrelease3], [ + utsrelease=$utsrelease3 + ]) + +--- a/config/zfs-build.m4 ++++ b/config/zfs-build.m4 +@@ -173,7 +173,7 @@ AC_DEFUN([ZFS_AC_DEBUG_KMEM_TRACKING], [ + ]) + + AC_DEFUN([ZFS_AC_DEBUG_INVARIANTS_DETECT_FREEBSD], [ +- AS_IF([sysctl -n kern.conftxt | fgrep -qx $'options\tINVARIANTS'], ++ AS_IF([sysctl -n kern.conftxt | grep -Fqx $'options\tINVARIANTS'], + [enable_invariants="yes"], + [enable_invariants="no"]) + ]) +--- a/tests/zfs-tests/tests/functional/cli_root/zpool_wait/zpool_wait.kshlib ++++ b/tests/zfs-tests/tests/functional/cli_root/zpool_wait/zpool_wait.kshlib +@@ -120,5 +120,5 @@ function check_while_waiting + # Whether any vdev in the given pool is initializing + function is_vdev_initializing # pool + { +- zpool status -i "$1" | grep 'initialized, started' >/dev/null ++ zpool status -i "$1" | grep -q 'initialized, started' + } + diff --git a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild b/sys-fs/zfs-kmod/zfs-kmod-2.1.6.ebuild similarity index 95% copy from sys-fs/zfs-kmod/zfs-kmod-9999.ebuild copy to sys-fs/zfs-kmod/zfs-kmod-2.1.6.ebuild index c7623deb64c8..321ab809d1e2 100644 --- a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild +++ b/sys-fs/zfs-kmod/zfs-kmod-2.1.6.ebuild @@ -19,7 +19,7 @@ else SRC_URI="https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz" SRC_URI+=" verify-sig? ( https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz.asc )" S="${WORKDIR}/zfs-${PV%_rc?}" - ZFS_KERNEL_COMPAT="5.18" + ZFS_KERNEL_COMPAT="5.19" # increments minor eg 5.14 -> 5.15, and still supports override. ZFS_KERNEL_DEP="${ZFS_KERNEL_COMPAT_OVERRIDE:-${ZFS_KERNEL_COMPAT}}" @@ -60,6 +60,10 @@ RESTRICT="debug? ( strip ) test" DOCS=( AUTHORS COPYRIGHT META README.md ) +PATCHES=( + "${FILESDIR}"/${PN}-2.1.6-fgrep.patch +) + pkg_pretend() { use rootfs || return 0 @@ -112,6 +116,15 @@ pkg_setup() { linux-mod_pkg_setup } +src_unpack() { + if use verify-sig ; then + # Needed for downloaded patch (which is unsigned, which is fine) + verify-sig_verify_detached "${DISTDIR}"/zfs-${MY_PV}.tar.gz{,.asc} + fi + + default +} + src_prepare() { default diff --git a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild index c7623deb64c8..e0888f5b3a45 100644 --- a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild +++ b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild @@ -19,7 +19,7 @@ else SRC_URI="https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz" SRC_URI+=" verify-sig? ( https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz.asc )" S="${WORKDIR}/zfs-${PV%_rc?}" - ZFS_KERNEL_COMPAT="5.18" + ZFS_KERNEL_COMPAT="5.19" # increments minor eg 5.14 -> 5.15, and still supports override. ZFS_KERNEL_DEP="${ZFS_KERNEL_COMPAT_OVERRIDE:-${ZFS_KERNEL_COMPAT}}"