git: 0271825ed8af - main - devel/py-pyyaml5: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jul 2023 17:43:06 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0271825ed8afe41a8a0047eaa70bbc55a2ed8749
commit 0271825ed8afe41a8a0047eaa70bbc55a2ed8749
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 12:12:06 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:32 +0000
devel/py-pyyaml5: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
---
devel/py-pyyaml5/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/devel/py-pyyaml5/Makefile b/devel/py-pyyaml5/Makefile
index f67362350740..5e172b4a8147 100644
--- a/devel/py-pyyaml5/Makefile
+++ b/devel/py-pyyaml5/Makefile
@@ -38,6 +38,10 @@ PYDISTUTILS_SETUP+= --without-libyaml
NO_ARCH= yes
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-install-EXAMPLES-on:
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)