git: 91b8d4c1e54e - main - net/yptransitd: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jul 2023 10:22:55 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=91b8d4c1e54e9592408c05ce2aec2311933e7928
commit 91b8d4c1e54e9592408c05ce2aec2311933e7928
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 09:36:03 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 10:22:39 +0000
net/yptransitd: Fix build with llvm16
- Pet portclippy
- Adopt port
Sponsored by: The FreeBSD Foundation
---
net/yptransitd/Makefile | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/net/yptransitd/Makefile b/net/yptransitd/Makefile
index 3164fd39d11c..c4844f88e880 100644
--- a/net/yptransitd/Makefile
+++ b/net/yptransitd/Makefile
@@ -4,7 +4,7 @@ PORTREVISION= 8
CATEGORIES= net
MASTER_SITES= SF
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= bofh@FreeBSD.org
COMMENT= Replacement for nss_ldap
WWW= http://yptransitd.sourceforge.net/
@@ -12,14 +12,22 @@ LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= ldap bison
+USE_LDCONFIG= yes
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ldap-prefix=${LOCALBASE}
-USE_LDCONFIG= yes
+
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= %%ETCDIR%%/ldap.conf %%ETCDIR%%/modules/ldap.so \
%%ETCDIR%%/yptransitd.conf sbin/yptransitd
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's, \($$([A-Z]*DIR)\), $${DESTDIR}\1,g' \
${WRKSRC}/Makefile.in