Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 18:53:56 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2d8686435c4c - main - editors/uemacs: Fix build with llvm16
Message-ID:  <202308021853.372Iruno084547@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2d8686435c4c241cd64df70dcc7249ecc2cb1d07

commit 2d8686435c4c241cd64df70dcc7249ecc2cb1d07
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 17:17:48 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 18:53:44 +0000

    editors/uemacs: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 editors/uemacs/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile
index fc1bede0e34c..81179c42a5fb 100644
--- a/editors/uemacs/Makefile
+++ b/editors/uemacs/Makefile
@@ -21,6 +21,12 @@ EXTRACT_BEFORE_ARGS=	-Lq
 
 CFLAGS+=		-Wno-int-conversion
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c
 	@${REINPLACE_CMD} -e 's|-ltermcap|${LDFLAGS} -lncurses|g' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308021853.372Iruno084547>