git: 738c6f945d5c - main - devel/py-libzfs: mark BROKEN on FreeBSD < 13.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Aug 2022 17:17:42 UTC
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=738c6f945d5c1951092d40f593bfac9a31eff32d
commit 738c6f945d5c1951092d40f593bfac9a31eff32d
Author: Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-08-12 16:49:00 +0000
Commit: Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-08-12 17:16:31 +0000
devel/py-libzfs: mark BROKEN on FreeBSD < 13.1
12.x:
libzfs.c:98209:47: error: use of undeclared identifier 'ZPOOL_STATUS_ERRATA'; did you mean 'ZPOOL_STATUS_OK'?
__pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_ERRATA); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 193, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~
ZPOOL_STATUS_OK
libzfs.c:98329:47: error: use of undeclared identifier 'ZPOOL_STATUS_REBUILDING'; did you mean 'ZPOOL_STATUS_RESILVERING'?
__pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_REBUILDING); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 203, __pyx_L1_error)
^~~~~~~~~~~~~~~~~~~~~~~
ZPOOL_STATUS_RESILVERING
13.0:
libzfs.c:108226:47: error: use of undeclared identifier 'ZPOOL_STATUS_COMPATIBILITY_ERR'
__pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_COMPATIBILITY_ERR); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 206, __pyx_L1_error)
^
libzfs.c:108238:47: error: use of undeclared identifier 'ZPOOL_STATUS_INCOMPATIBLE_FEAT'
__pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_INCOMPATIBLE_FEAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 207, __pyx_L1_error)
^
While here, add LICENSE_FILE
Approved by: portmgr blanket
Reported by: pkg-fallout, reprise
---
devel/py-libzfs/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/devel/py-libzfs/Makefile b/devel/py-libzfs/Makefile
index 29954d37a846..b4487f2e0c57 100644
--- a/devel/py-libzfs/Makefile
+++ b/devel/py-libzfs/Makefile
@@ -7,6 +7,7 @@ MAINTAINER= freqlabs@FreeBSD.org
COMMENT= Python libzfs bindings
LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= truenas
@@ -23,7 +24,11 @@ MAKE_ENV= freebsd_src=${SRC_BASE}
.include <bsd.port.options.mk>
.if !exists(${SRC_BASE}/sys/Makefile)
-IGNORE= requires kernel source files in ${SRC_BASE}
+IGNORE= requires kernel source files in ${SRC_BASE}
+.endif
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301000
+BROKEN= does not build on FreeBSD <13.1
.endif
.include <bsd.port.mk>