public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Lemenkov <lemenkov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/opensips] f43: Prepare for libmongoc/libbson upgrade
Date: Wed, 24 Jun 2026 17:40:28 GMT [thread overview]
Message-ID: <178232282811.1.12847369527015104089.rpms-opensips-fedd906e6417@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-24 17:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178232282811.1.12847369527015104089.rpms-opensips-fedd906e6417@fedoraproject.org \
--to=lemenkov@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox