git: b66dd1506e02 - main - shells/ast-ksh: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Jun 2023 17:48:38 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b66dd1506e02ac2efa8cfb75decdf20c1c483e0e
commit b66dd1506e02ac2efa8cfb75decdf20c1c483e0e
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 16:37:38 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 17:47:38 +0000
shells/ast-ksh: Fix build with llvm15
Approved by: portmgr (blanket)
---
shells/ast-ksh/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/shells/ast-ksh/Makefile b/shells/ast-ksh/Makefile
index 727f83d55ea9..bf9efc7d3ad7 100644
--- a/shells/ast-ksh/Makefile
+++ b/shells/ast-ksh/Makefile
@@ -44,6 +44,12 @@ KSHVERSION= 2014-12-24
STATIC_MAKE_ENV= LDFLAGS+=-static
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|SF_FLAGS|SFIO_FLAGS|g' ${WRKSRC}/src/lib/libast/include/sfio*.h ${WRKSRC}/src/lib/libast/sfio/*.c
@@ -59,4 +65,4 @@ do-install:
do-test:
cd ${WRKSRC}/src/cmd/ksh93/tests/ && ${SETENV} SHELL=${WRKSRC}/bin/ksh ${WRKSRC}/bin/ksh shtests
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>