Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2021 10:41:03 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 56986abc6d4b - main - www/trafficserver: fix build on ≥ 13
Message-ID:  <202105191041.14JAf3x2047148@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=56986abc6d4bac9c6e636cdc9f93075be5b95299

commit 56986abc6d4bac9c6e636cdc9f93075be5b95299
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-05-18 14:29:02 +0000
Commit:     Dmitry Marakasov <amdmi3@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+,' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105191041.14JAf3x2047148>