public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opensips] f43: Prepare for libmongoc/libbson upgrade
@ 2026-06-24 17:40 Peter Lemenkov
0 siblings, 0 replies; only message in thread
From: Peter Lemenkov @ 2026-06-24 17:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/opensips
Branch : f43
Commit : fedd906e64176a5b243c751d268fdd97380251e5
Author : Peter Lemenkov <lemenkov@gmail.com>
Date : 2026-02-20T12:36:35+01:00
Stats : +49/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/opensips/c/fedd906e64176a5b243c751d268fdd97380251e5?branch=f43
Log:
Prepare for libmongoc/libbson upgrade
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
diff --git a/opensips-0012-support-for-libmongc-libbson-version-2.patch b/opensips-0012-support-for-libmongc-libbson-version-2.patch
new file mode 100644
index 0000000..19ef4a9
--- /dev/null
+++ b/opensips-0012-support-for-libmongc-libbson-version-2.patch
@@ -0,0 +1,48 @@
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 19 Feb 2026 12:46:28 +0100
+Subject: [PATCH] support for libmongc/libbson version 2
+
+
+diff --git a/modules/cachedb_mongodb/Makefile b/modules/cachedb_mongodb/Makefile
+index cd1aafc0b..e361505a3 100644
+--- a/modules/cachedb_mongodb/Makefile
++++ b/modules/cachedb_mongodb/Makefile
+@@ -10,7 +10,9 @@ NAME=cachedb_mongodb.so
+ include ../../lib/json/Makefile.json
+ ifeq ($(CROSS_COMPILE),)
+ MONGOC_BUILDER := $(shell \
+- if pkg-config --exists libmongoc-1.0; then \
++ if pkg-config --exists mongoc2; then \
++ echo 'pkg-config mongoc2'; \
++ elif pkg-config --exists libmongoc-1.0; then \
+ echo 'pkg-config libmongoc-1.0'; \
+ fi)
+ endif
+diff --git a/modules/cachedb_mongodb/cachedb_mongodb_dbase.h b/modules/cachedb_mongodb/cachedb_mongodb_dbase.h
+index cbe485556..0eaf76667 100644
+--- a/modules/cachedb_mongodb/cachedb_mongodb_dbase.h
++++ b/modules/cachedb_mongodb/cachedb_mongodb_dbase.h
+@@ -27,8 +27,8 @@
+
+ #define MONGO_HAVE_STDINT 1
+
+-#include <mongoc.h>
+-#include <bson.h>
++#include <mongoc/mongoc.h>
++#include <bson/bson.h>
+
+ #include <stdint.h>
+
+diff --git a/modules/cachedb_mongodb/cachedb_mongodb_json.h b/modules/cachedb_mongodb/cachedb_mongodb_json.h
+index f3bcbd9bb..85bbbab8d 100644
+--- a/modules/cachedb_mongodb/cachedb_mongodb_json.h
++++ b/modules/cachedb_mongodb/cachedb_mongodb_json.h
+@@ -23,7 +23,7 @@
+
+ #include "cachedb_mongodb_dbase.h"
+
+-#include <bson.h>
++#include <bson/bson.h>
+ #include <stdint.h>
+
+ int json_to_bson(char *json,bson_t *bb);
diff --git a/opensips.spec b/opensips.spec
index b571328..fec7e0f 100644
--- a/opensips.spec
+++ b/opensips.spec
@@ -21,6 +21,7 @@ Patch: opensips-0008-Fix-uninitialized-va_list-warning-on-ppc64le-and-i68.patch
Patch: opensips-0009-Fix-format-specifier-warnings-on-32-bit-architecture.patch
Patch: opensips-0010-Fix-pointer-truncation-warning-on-32-bit-architectur.patch
Patch: opensips-0011-Fix-C90-style-declaration-warnings-in-snmpstats-modu.patch
+Patch: opensips-0012-support-for-libmongc-libbson-version-2.patch
URL: https://opensips.org
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-24 17:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 17:40 [rpms/opensips] f43: Prepare for libmongoc/libbson upgrade Peter Lemenkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox