Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jun 2023 17:14:19 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: 25302f4e0b2d - main - comms/rubygem-serialport: Fix build with llvm15
Message-ID:  <202306101714.35AHEJan082656@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=25302f4e0b2d04a8c2a58ece681ba7e75935358b

commit 25302f4e0b2d04a8c2a58ece681ba7e75935358b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-10 13:43:59 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-10 17:14:07 +0000

    comms/rubygem-serialport: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 comms/rubygem-serialport/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/comms/rubygem-serialport/Makefile b/comms/rubygem-serialport/Makefile
index d0a9e5a8591b..6ccbf07d725d 100644
--- a/comms/rubygem-serialport/Makefile
+++ b/comms/rubygem-serialport/Makefile
@@ -12,4 +12,12 @@ LICENSE=	GPLv2
 USES=		gem shebangfix
 SHEBANG_FILES=	test/set_readtimeout.rb
 
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+	@${REINPLACE_CMD} -e 's|-DOS_\#{os.upcase}|-DOS_\#{os.upcase} -Wno-error=int-conversion|g' \
+		${WRKSRC}/ext/native/extconf.rb
+.endif
+
 .include <bsd.port.mk>



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