git: fff0adf0ea22 - main - filesystems/py-libzfs: Fix support for 14.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Dec 2024 18:14:59 UTC
The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/ports/commit/?id=fff0adf0ea22271dc2fdd6125ff883629829325a commit fff0adf0ea22271dc2fdd6125ff883629829325a Author: Goran Mekić <meka@tilda.center> AuthorDate: 2024-12-23 17:28:29 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2024-12-24 18:14:06 +0000 filesystems/py-libzfs: Fix support for 14.0+ The ZFS on 14.0 changed to include skipped bytes in the percentage of resilver. As old code didn't take into account that variable on 14.0+, the percentage was always wrong. Also, take maintainership. PR: 283522 Reviewed by: asomers Approved by: lwhsu (ports) Sponsored by: ConnectWise --- filesystems/py-libzfs/Makefile | 8 +++++++- filesystems/py-libzfs/distinfo | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/filesystems/py-libzfs/Makefile b/filesystems/py-libzfs/Makefile index 5297e6074fb7..892800055c2c 100644 --- a/filesystems/py-libzfs/Makefile +++ b/filesystems/py-libzfs/Makefile @@ -1,9 +1,10 @@ PORTNAME= libzfs PORTVERSION= 1.1.2023020700 +PORTREVISION= 1 CATEGORIES= filesystems devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= meka@tilda.center COMMENT= Python libzfs bindings WWW= https://github.com/freenas/py-libzfs @@ -32,4 +33,9 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-zpool-add.patch IGNORE= requires kernel source files in ${SRC_BASE} .endif +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000 +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES= 0b2ab0594997c44e80e3fdfe9d2add106d81149a.diff:-p1 # backport of https://github.com/truenas/py-libzfs/pull/251 +.endif + .include <bsd.port.mk> diff --git a/filesystems/py-libzfs/distinfo b/filesystems/py-libzfs/distinfo index 3ae8f5fa9a4d..96872e080854 100644 --- a/filesystems/py-libzfs/distinfo +++ b/filesystems/py-libzfs/distinfo @@ -1,3 +1,5 @@ -TIMESTAMP = 1675808317 +TIMESTAMP = 1734977733 SHA256 (truenas-py-libzfs-1.1.2023020700-c1bd4a0_GH0.tar.gz) = 23b2d6e1b6ed78be2d12068f9b1b0b01270afaaf0f017817a5fb109d358aa818 SIZE (truenas-py-libzfs-1.1.2023020700-c1bd4a0_GH0.tar.gz) = 99656 +SHA256 (0b2ab0594997c44e80e3fdfe9d2add106d81149a.diff) = 1fb37c3a678dbaadd47999f7d29631824a404561ca5f2237613d2b22b42fa138 +SIZE (0b2ab0594997c44e80e3fdfe9d2add106d81149a.diff) = 1453