git: a0dbba65aba7 - main - security/vaultwarden: fix build on armv6/armv7 and i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Nov 2023 06:15:13 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a0dbba65aba708d1751a9bc3e34fcf469232a7aa
commit a0dbba65aba708d1751a9bc3e34fcf469232a7aa
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-11-22 20:37:39 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-24 06:12:42 +0000
security/vaultwarden: fix build on armv6/armv7 and i386
Disable LTO to avoid address space exhaustion.
Approved by: portmgr (build fix blanket)
MFH: 2023Q4
---
security/vaultwarden/Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/security/vaultwarden/Makefile b/security/vaultwarden/Makefile
index 356ca42c9225..2a82b543c6d2 100644
--- a/security/vaultwarden/Makefile
+++ b/security/vaultwarden/Makefile
@@ -50,6 +50,14 @@ INSTALL_TARGET= install-strip
SUB_LIST= WWWGRP=${WWWGRP} \
WWWOWN=${WWWOWN}
+.include <bsd.port.pre.mk>
+
+# avoid LTO-induced address space exhaustion
+.if ${ARCH:Marmv?} || ${ARCH} == i386
+LTO_UNSAFE= yes
+CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
#post-patch:
# ${REINPLACE_CMD} 's/^rust-version = "1.60"/rust-version = "1.59"/' \
# ${WRKSRC}/Cargo.toml
@@ -58,4 +66,4 @@ post-install:
${MKDIR} ${STAGEDIR}/${WWWDIR}/data
${INSTALL} -m0600 ${FILESDIR}/${PORTNAME}_conf.in ${STAGEDIR}/${WWWDIR}/data/config.json.sample
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>