git: 453636c52778 - main - net/{py-}libdnet: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 12:04:07 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=453636c52778c22126c86e4cd83e699a41d60cd4
commit 453636c52778c22126c86e4cd83e699a41d60cd4
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 12:02:06 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 12:03:43 +0000
net/{py-}libdnet: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
Sponsored by: The FreeBSD Foundation
---
net/libdnet/files/patch-configure.ac | 8 ++++----
net/py-libdnet/Makefile | 6 ++++++
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/net/libdnet/files/patch-configure.ac b/net/libdnet/files/patch-configure.ac
index 6a812f27b63d..b3bfe2f2cedc 100644
--- a/net/libdnet/files/patch-configure.ac
+++ b/net/libdnet/files/patch-configure.ac
@@ -11,9 +11,9 @@ but as of libdnet-1.13 it is not used at all inside libdnet's code.
FreeBSD PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238523
Origin: rea@FreeBSD.org
---- configure.ac.old 2019-06-30 21:36:25.906488000 +0300
-+++ configure.ac 2019-06-30 21:39:21.116185000 +0300
-@@ -203,7 +203,6 @@
+--- configure.ac.orig 2019-03-19 17:55:02 UTC
++++ configure.ac
+@@ -203,7 +203,6 @@ AC_CHECK_FUNCS([gethostbyname gettimeofday memmove mem
AC_REPLACE_FUNCS(err strlcat strlcpy strsep)
dnl Checks for other system-specific jonks.
@@ -21,7 +21,7 @@ Origin: rea@FreeBSD.org
AC_DNET_RAWIP_HOST_OFFLEN
dnl Check for arp interface.
-@@ -219,18 +218,7 @@
+@@ -219,18 +218,7 @@ else
(exit 1); exit 1;
fi
diff --git a/net/py-libdnet/Makefile b/net/py-libdnet/Makefile
index 37c5095de6d2..2742a942c570 100644
--- a/net/py-libdnet/Makefile
+++ b/net/py-libdnet/Makefile
@@ -28,6 +28,12 @@ regression-test: install
${PYTHON_CMD} ${INSTALL_WRKSRC}/test.py
.endif
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
${REINPLACE_CMD} 's|%%CYTHON%%|cython-${PYTHON_VER}|g' \
${WRKSRC}/python/Makefile.am