[packages/mongo-c-driver] Rel 2; try to workaround x32 bug

arekm arekm at pld-linux.org
Thu Jul 23 16:06:51 CEST 2026


commit 968fe203fe0063f9620e2736dfbe515f422e82fa
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Jul 23 16:06:41 2026 +0200

    Rel 2; try to workaround x32 bug

 mongo-c-driver.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/mongo-c-driver.spec b/mongo-c-driver.spec
index 5273be3..52a5fda 100644
--- a/mongo-c-driver.spec
+++ b/mongo-c-driver.spec
@@ -15,7 +15,7 @@ Summary:	Client library written in C for MongoDB
 Summary(pl.UTF-8):	Biblioteka kliencka do MongoDB napisana w C
 Name:		mongo-c-driver
 Version:	1.30.8
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Libraries
 #Source0Download: https://github.com/mongodb/mongo-c-driver/releases/
@@ -147,6 +147,9 @@ Dokumentacja API biblioteki libbson.
 # generate html instead of dirhtml docs
 export EVG_DOCS_BUILD=1
 
+# MONGO_USE_LLD below: on x32 lld emits TLS GOT entries with DTPOFF64 at +4
+# instead of +8, where DTPMOD64 clobbers it; every __thread var in libmongoc
+# then aliases to offset 0 and mongoc_uri_new() fails on any URI
 %cmake -B cmake-build \
 	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
 	-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF \
@@ -159,6 +162,9 @@ export EVG_DOCS_BUILD=1
 	-DENABLE_STATIC=OFF \
 	-DENABLE_TESTS=%{__ON_OFF tests} \
 	-DENABLE_ZLIB=SYSTEM \
+%ifarch x32
+	-DMONGO_USE_LLD=OFF \
+%endif
 	-DUSE_BUNDLED_UTF8PROC=OFF
 
 %{__make} -C cmake-build -j1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mongo-c-driver.git/commitdiff/968fe203fe0063f9620e2736dfbe515f422e82fa



More information about the pld-cvs-commit mailing list