git: 4e5f74bd49fb - 2023Q4 - 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:18:04 UTC
The branch 2023Q4 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4e5f74bd49fb942062d6a0b23ee74e64a43a88c8
commit 4e5f74bd49fb942062d6a0b23ee74e64a43a88c8
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:17:23 +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
(cherry picked from commit a0dbba65aba708d1751a9bc3e34fcf469232a7aa)
---
security/vaultwarden/Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/security/vaultwarden/Makefile b/security/vaultwarden/Makefile
index 63465f1d7378..771f389b449b 100644
--- a/security/vaultwarden/Makefile
+++ b/security/vaultwarden/Makefile
@@ -42,6 +42,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
@@ -50,4 +58,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>