Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2025 23:51:54 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 98932d21692a - 2025Q1 - net-im/conduit: fix build on armv7
Message-ID:  <202501212351.50LNps01052369@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2025Q1 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98932d21692ad65374ee7cab1039e2587d4eb1f2

commit 98932d21692ad65374ee7cab1039e2587d4eb1f2
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-20 15:51:47 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-21 23:50:48 +0000

    net-im/conduit: fix build on armv7
    
    This avoids an address space exhaustion due to LTO.
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2025Q1
    
    (cherry picked from commit efdde54bd4f7076b345a994e66976abd412b253f)
---
 net-im/conduit/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/net-im/conduit/Makefile b/net-im/conduit/Makefile
index c6bd50094ddc..f906ad54cec9 100644
--- a/net-im/conduit/Makefile
+++ b/net-im/conduit/Makefile
@@ -35,6 +35,13 @@ USE_GITLAB=	yes
 GL_ACCOUNT=	famedly
 GL_TAGNAME=	f8d7ef04e664580e882bac852877b68e7bd3ab1e
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv?}
+LTO_UNSAFE=	yes
+CARGO_ENV+=	CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,/etc/conduit.toml,${PREFIX}/etc/conduit.toml,' \
 		${WRKSRC}/src/main.rs
@@ -47,4 +54,4 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/conduit-example.toml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.toml.sample
 	@${MKDIR} ${STAGEDIR}${DBDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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