Skip to content

Commit

Permalink
net/{py-}libdnet: Fix build with llvm16
Browse files Browse the repository at this point in the history
Sponsored by:	The FreeBSD Foundation

Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 24, 2023
1 parent c1bc8c8 commit 453636c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/libdnet/files/patch-configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ 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.
-AC_DNET_BSD_BPF
AC_DNET_RAWIP_HOST_OFFLEN

dnl Check for arp interface.
@@ -219,18 +218,7 @@
@@ -219,18 +218,7 @@ else
(exit 1); exit 1;
fi

Expand Down
6 changes: 6 additions & 0 deletions net/py-libdnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 453636c

Please sign in to comment.