sysutils/xen-tools: fix build on FreeBSD 12

QEMU Inter-VM shared memory device (ivshmem) depends on eventfd and
will only be built on FreeBSD versions > 12.

The fix is picked up from the QEMU port.

Approved by: bapt (implicit)
This commit is contained in:
Roger Pau Monné 2021-05-17 15:38:12 +02:00
parent ef0c9c2a79
commit 97632df2b3
4 changed files with 8 additions and 5 deletions

View File

@ -33,7 +33,6 @@ GH_TUPLE= tianocore:edk2-platforms:${PLATFORM_TAG}:platforms \
ucb-bar:berkeley-softfloat-3:master:softfloat/ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 \
kkos:oniguruma:v6.9.4_mark1:oniguruma/MdeModulePkg/Universal/RegularExpressionDxe/oniguruma \
google:brotli:v1.0.7-17-g666c328:brotli/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli \
akheron:jansson:v2.13.1:jansson/RedfishPkg/Library/JsonLib/jansson
BINARY_ALIAS= make=${LOCALBASE}/bin/gmake \
dtc=${LOCALBASE}/bin/dtc \

View File

@ -13,5 +13,3 @@ SHA256 (kkos-oniguruma-v6.9.4_mark1_GH0.tar.gz) = 7f7576c926f7d4a071d594a01691c4
SIZE (kkos-oniguruma-v6.9.4_mark1_GH0.tar.gz) = 592141
SHA256 (google-brotli-v1.0.7-17-g666c328_GH0.tar.gz) = caed254751585590b20b4a34d6600e9c9aae153ab1f9e1ae6b67f9bc3ee09b92
SIZE (google-brotli-v1.0.7-17-g666c328_GH0.tar.gz) = 23854268
SHA256 (akheron-jansson-v2.13.1_GH0.tar.gz) = f22901582138e3203959c9257cf83eba9929ac41d7be4a42557213a22ebcc7a0
SIZE (akheron-jansson-v2.13.1_GH0.tar.gz) = 144979

View File

@ -58,6 +58,12 @@ DOCS_ALL_TARGET= docs
INSTALL_TARGET= install-tools
DOCS_INSTALL_TARGET= install-docs
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300000
PLIST_SUB+= IVSHMEM=""
.else
PLIST_SUB+= IVSHMEM="@comment "
.endif
.include <bsd.port.options.mk>
.if ${OPSYS} != FreeBSD

View File

@ -236,8 +236,8 @@ lib/libxlutil.so.4.15.0
%%PYTHON_SITELIBDIR%%/xenfsimage%%PYTHON_EXT_SUFFIX%%.so
lib/xen/bin/convert-legacy-stream
lib/xen/bin/depriv-fd-checker
lib/xen/bin/ivshmem-client
lib/xen/bin/ivshmem-server
%%IVSHMEM%%lib/xen/bin/ivshmem-client
%%IVSHMEM%%lib/xen/bin/ivshmem-server
lib/xen/bin/libxl-save-helper
lib/xen/bin/lsevtchn
lib/xen/bin/pygrub