git: 492ded07aee0 - main - filesystems/openzfs-kmod: fix build on FreeBSD 14.5 and 15.1

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 10 Oct 2026 18:16:12 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=492ded07aee04e386158b09effc06b4965e5bc89

commit 492ded07aee04e386158b09effc06b4965e5bc89
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-05 08:26:52 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-10 18:10:02 +0000

    filesystems/openzfs-kmod: fix build on FreeBSD 14.5 and 15.1
    
    Backport upstream 0ee8ea01bc16: sys/abi_types.h now defines time32_t,
    which conflicts with the SPL typedef.
---
 filesystems/openzfs-kmod/Makefile | 4 ++++
 filesystems/openzfs-kmod/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/filesystems/openzfs-kmod/Makefile b/filesystems/openzfs-kmod/Makefile
index 0cbf19cd26b8..1ba92a247d32 100644
--- a/filesystems/openzfs-kmod/Makefile
+++ b/filesystems/openzfs-kmod/Makefile
@@ -6,6 +6,9 @@ MASTER_SITES=	https://github.com/openzfs/zfs/releases/download/zfs-${PORTVERSION
 PKGNAMESUFFIX?=	-kmod
 DISTNAME=	zfs-${DISTVERSION}
 
+PATCH_SITES=	https://github.com/openzfs/zfs/commit/
+PATCHFILES=	0ee8ea01bc16620bac8563ae5b3ad02098297641.patch:-p1
+
 MAINTAINER=	mm@FreeBSD.org
 COMMENT=	OpenZFS kernel module for FreeBSD
 WWW=		https://github.com/openzfs/zfs
@@ -34,6 +37,7 @@ INVARIANTS_DESC=	Build kernel module with INVARIANTS
 INVARIANTS_IMPLIES=	DEBUG
 
 WRKSRC_SUBDIR=	module
+PATCH_WRKSRC=	${WRKDIR}/${DISTNAME}
 MAKEFILE=	Makefile.bsd
 
 .include <bsd.port.options.mk>
diff --git a/filesystems/openzfs-kmod/distinfo b/filesystems/openzfs-kmod/distinfo
index b7c6ca44506c..c356219f6f65 100644
--- a/filesystems/openzfs-kmod/distinfo
+++ b/filesystems/openzfs-kmod/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1787562206
+TIMESTAMP = 1791188424
 SHA256 (zfs-2.4.4.tar.gz) = 2a3c70d55a37cc71618a95a60e81ad66530201eb118d37741dc92efcf848c8b1
 SIZE (zfs-2.4.4.tar.gz) = 34544757
+SHA256 (0ee8ea01bc16620bac8563ae5b3ad02098297641.patch) = 51f42bc4e0163b8fbd7ea501045f734b1ce1acd9ecaf008ea65c9754b62380c6
+SIZE (0ee8ea01bc16620bac8563ae5b3ad02098297641.patch) = 1670