git: 31978ee4c4f6 - main - databases/pecl-mongodb: update 1.15.1 -> 1.15.3, fix build on 14.0

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Sun, 14 May 2023 09:49:55 UTC
The branch main has been updated by pi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=31978ee4c4f6e1ca50f57d610492b4c8f8aaacbe

commit 31978ee4c4f6e1ca50f57d610492b4c8f8aaacbe
Author:     Kurt Jaeger <pi@FreeBSD.org>
AuthorDate: 2023-05-14 09:45:43 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2023-05-14 09:49:27 +0000

    databases/pecl-mongodb: update 1.15.1 -> 1.15.3, fix build on 14.0
    
    Relnotes:       https://github.com/mongodb/mongo-php-driver/releases/tag/1.15.2
                    https://github.com/mongodb/mongo-php-driver/releases/tag/1.15.3
---
 databases/pecl-mongodb/Makefile                               |  2 +-
 databases/pecl-mongodb/distinfo                               |  6 +++---
 .../patch-src_libmongoc_src_libbson_src_bson_bson-error.c     | 11 +++++++++++
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/databases/pecl-mongodb/Makefile b/databases/pecl-mongodb/Makefile
index d2049015a33b..9f3263efcbe4 100644
--- a/databases/pecl-mongodb/Makefile
+++ b/databases/pecl-mongodb/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	mongodb
-PORTVERSION=	1.15.1
+PORTVERSION=	1.15.3
 CATEGORIES=	databases pear
 
 MAINTAINER=	pi@FreeBSD.org
diff --git a/databases/pecl-mongodb/distinfo b/databases/pecl-mongodb/distinfo
index 9ce185adbafe..e0c40b70c021 100644
--- a/databases/pecl-mongodb/distinfo
+++ b/databases/pecl-mongodb/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1678256312
-SHA256 (PECL/mongodb-1.15.1.tgz) = b2038e778d71f45cadb8c93a30eb548e5c2c1e4f832807a775ed516b7816b749
-SIZE (PECL/mongodb-1.15.1.tgz) = 1742236
+TIMESTAMP = 1684050672
+SHA256 (PECL/mongodb-1.15.3.tgz) = 4f2c4e417fb606b462e870ec03656f3a97ba0b399dc24a6d9d153e9846134388
+SIZE (PECL/mongodb-1.15.3.tgz) = 1742661
diff --git a/databases/pecl-mongodb/files/patch-src_libmongoc_src_libbson_src_bson_bson-error.c b/databases/pecl-mongodb/files/patch-src_libmongoc_src_libbson_src_bson_bson-error.c
new file mode 100644
index 000000000000..2512bbb0c4a5
--- /dev/null
+++ b/databases/pecl-mongodb/files/patch-src_libmongoc_src_libbson_src_bson_bson-error.c
@@ -0,0 +1,11 @@
+--- src/libmongoc/src/libbson/src/bson/bson-error.c.orig	2023-05-09 08:13:22 UTC
++++ src/libmongoc/src/libbson/src/bson/bson-error.c
+@@ -109,8 +109,6 @@ bson_strerror_r (int err_code,  /* IN */
+    if (strerror_s (buf, buflen, err_code) != 0) {
+       ret = buf;
+    }
+-#elif defined(__GNUC__) && defined(_GNU_SOURCE)
+-   ret = strerror_r (err_code, buf, buflen);
+ #else /* XSI strerror_r */
+    if (strerror_r (err_code, buf, buflen) == 0) {
+       ret = buf;