Changeset View
Changeset View
Standalone View
Standalone View
sysutils/openzfs/Makefile
PORTNAME= openzfs | PORTNAME= openzfs | ||||
PORTVERSION= 2021121500 | PORTVERSION= 2021121500 | ||||
PORTREVISION= 1 | |||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MAINTAINER= freqlabs@FreeBSD.org | MAINTAINER= freqlabs@FreeBSD.org | ||||
COMMENT= OpenZFS userland for FreeBSD | COMMENT= OpenZFS userland for FreeBSD | ||||
LICENSE= CDDL | LICENSE= CDDL | ||||
BROKEN_aarch64= invokes x86 assembler | 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 | 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 | |||||
freqlabs: What depends on ksh to build? | |||||
Done Inline ActionsIt's just to satisfy the shebangfix check. If ksh93 is not installed the port will build fine, but it will fail in "poudriere testport" because shebangfix thinks that the shebang is invalid. asomers: It's just to satisfy the shebangfix check. If ksh93 is not installed the port will build fine… | |||||
RUN_DEPENDS= openzfs-kmod>=0:sysutils/openzfs-kmod | RUN_DEPENDS= openzfs-kmod>=0:sysutils/openzfs-kmod | ||||
USES+= autoreconf:build cpe libtool gmake gettext-runtime python:3.3+,build shebangfix | USES+= autoreconf:build cpe libtool gmake gettext-runtime python:3.3+,build shebangfix | ||||
SHEBANG_GLOB= *.ksh *.ksh.in *.kshlib *.py.in | |||||
SHEBANG_FILES= tests/zfs-tests/tests/functional/trim/trim.cfg \ | |||||
cmd/arcstat/arcstat.in \ | |||||
cmd/dbufstat/dbufstat.in \ | |||||
cmd/arc_summary/arc_summary* | |||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --prefix=${PREFIX} --with-config="user" | CONFIGURE_ARGS= --prefix=${PREFIX} --with-config="user" | ||||
OPTIONS_DEFINE= DEBUG PYTHON TESTS | OPTIONS_DEFINE= DEBUG PYTHON TESTS | ||||
PYTHON_DESC= Build the pyzfs library, arc_summary, arcstat, and dbufstat utilities | PYTHON_DESC= Build the pyzfs library, arc_summary, arcstat, and dbufstat utilities | ||||
TESTS_DESC= Install the ZFS Test Suite | TESTS_DESC= Install the ZFS Test Suite | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
Show All 15 Lines | |||||
.if ${PORT_OPTIONS:MPYTHON} | .if ${PORT_OPTIONS:MPYTHON} | ||||
CONFIGURE_ARGS+= --with-python=${PYTHON_VER} | CONFIGURE_ARGS+= --with-python=${PYTHON_VER} | ||||
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} | BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} | ||||
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cffi>0:devel/py-cffi@${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}cffi>0:devel/py-cffi@${PY_FLAVOR} | ||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sysctl>0:devel/py-sysctl@${PY_FLAVOR} | RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sysctl>0:devel/py-sysctl@${PY_FLAVOR} | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --without-python | CONFIGURE_ARGS+= --without-python | ||||
PYTHON_NO_DEPENDS=yes | |||||
.endif | .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/arcstat.in \ | |||||
cmd/dbufstat/dbufstat.in | |||||
pre-configure: | pre-configure: | ||||
cd ${WRKSRC} && ./autogen.sh | cd ${WRKSRC} && ./autogen.sh | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |
What depends on ksh to build?