git: b3aa1ea86f1e - 2024Q2 - databases/mongodb50: turn off LTO
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Apr 2024 17:23:54 UTC
The branch 2024Q2 has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b3aa1ea86f1e120da135245c95f0e9cfaa00687b
commit b3aa1ea86f1e120da135245c95f0e9cfaa00687b
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2024-04-08 17:13:22 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2024-04-08 17:23:04 +0000
databases/mongodb50: turn off LTO
After upgrading snappy 1.1.0 -> 1.2.0, mongodb50 fails to start:
ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol "_ZN6snappy8CompressEPKcmPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE"
Apparentally turning off LTO fixes this.
(cherry picked from commit 9220f0b1125626b100a823b801cec4d8362ec523)
PR: 278254
---
databases/mongodb50/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile
index 6c7008b71cc0..ccbc2e666182 100644
--- a/databases/mongodb50/Makefile
+++ b/databases/mongodb50/Makefile
@@ -1,6 +1,7 @@
PORTNAME= mongodb
DISTVERSIONPREFIX= r
DISTVERSION= 5.0.26
+PORTREVISION= 1
CATEGORIES= databases net
MASTER_SITES= https://fastdl.mongodb.org/src/ \
http://fastdl.mongodb.org/src/
@@ -62,7 +63,7 @@ USERS= mongodb
GROUPS= mongodb
OPTIONS_DEFINE= LTO SASL SSL NOAVX
-OPTIONS_DEFAULT= LTO SASL SSL
+OPTIONS_DEFAULT= SASL SSL
NOAVX_DESC= "Disable AVX instructions on amd64 (Sandybridge+)"