freebsd-ports/sysutils/openzfs/Makefile
Rene Ladan 3d9a815d9c all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
2023-06-27 21:34:34 +02:00

70 lines
2 KiB
Makefile

PORTNAME= openzfs
PORTVERSION= 2023012600
DISTVERSIONPREFIX= v
PORTREVISION= 3
CATEGORIES= sysutils
MAINTAINER= freqlabs@FreeBSD.org
COMMENT= OpenZFS userland for FreeBSD
WWW= https://github.com/openzfs/zfs
LICENSE= CDDL
BROKEN_aarch64= invokes x86 assembler
BROKEN_riscv64= fails to compile: btree_test.c:462:49: result of comparison of constant -1 with expression of type 'char' is always true
BUILD_DEPENDS= ksh93:shells/ksh93
RUN_DEPENDS= openzfs-kmod>=0:sysutils/openzfs-kmod
USES+= autoreconf:build cpe libtool gmake gettext-runtime python:build shebangfix
SHEBANG_GLOB= *.ksh *.ksh.in *.kshlib *.py.in
SHEBANG_FILES= tests/zfs-tests/tests/functional/trim/trim.cfg \
cmd/arcstat.in \
cmd/dbufstat.in \
cmd/zilstat.in \
cmd/arc_summary
GNU_CONFIGURE= yes
CONFIGURE_ARGS= MAKE=gmake --prefix=${PREFIX} --with-config="user"
OPTIONS_DEFINE= DEBUG PYTHON TESTS
PYTHON_DESC= Build the pyzfs library, arc_summary, arcstat, and dbufstat utilities
TESTS_DESC= Install the ZFS Test Suite
OPTIONS_SUB= yes
USE_GITHUB= yes
GH_PROJECT= zfs
GH_TAGNAME= dc5c8006f
USE_LDCONFIG= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug --enable-debuginfo
.endif
.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS+= --with-python=${PYTHON_VER}
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${PY_FLAVOR}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sysctl>0:devel/py-sysctl@${PY_FLAVOR}
.else
CONFIGURE_ARGS+= --without-python
PYTHON_NO_DEPENDS=yes
.endif
post-extract:
# Change certain shebangs into something that shebang fix understands
cd ${WRKSRC} && ${SED} -i '' '1s:@PYTHON_SHEBANG@:python3:' \
tests/test-runner/bin/zts-report.py.in \
tests/test-runner/bin/test-runner.py.in \
cmd/arcstat.in \
cmd/dbufstat.in \
cmd/zilstat.in
pre-configure:
cd ${WRKSRC} && ./autogen.sh
.include <bsd.port.mk>