git: 56986abc6d4b - main - www/trafficserver: fix build on ⥠13
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed May 19 10:41:04 UTC 2021
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=56986abc6d4bac9c6e636cdc9f93075be5b95299
commit 56986abc6d4bac9c6e636cdc9f93075be5b95299
Author: Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-05-18 14:29:02 +0000
Commit: Dmitry Marakasov <amdmi3 at FreeBSD.org>
CommitDate: 2021-05-19 10:36:06 +0000
www/trafficserver: fix build on ≥ 13
Approved by: portmgr blanket
---
www/trafficserver/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/www/trafficserver/Makefile b/www/trafficserver/Makefile
index 5fa789f3e263..88412cdfd98f 100644
--- a/www/trafficserver/Makefile
+++ b/www/trafficserver/Makefile
@@ -87,6 +87,14 @@ USE_GCC= yes
PLIST_SUB+= WCCP="@comment "
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200000
+# On FreeBSD >= 12 it does find eventfd.h, but it makes it also use
+# sys/epoll.h which is absent on FreeBSD and the build fails. So make
+# it ignore eventfd.h to build as on 11.x. Better solution would probably
+# be to depend on epoll-shim, but that needs testing
+CONFIGURE_ARGS+= ac_cv_header_sys_eventfd_h=no ac_cv_func_eventfd=no
+.endif
+
post-patch:
@${REINPLACE_CMD} \
-e '/cachedir:/s,$${localstatedir}+,$${localstatedir}/cache+,' \
More information about the dev-commits-ports-all
mailing list