pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/mongo-c-driver



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Aug 27 08:51:08 UTC 2023

Modified Files:
        pkgsrc/databases/mongo-c-driver: distinfo
Added Files:
        pkgsrc/databases/mongo-c-driver/patches:
            patch-src_libbson_src_bson_bson-error.c

Log Message:
mongo-c-driver: fix build on NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 pkgsrc/databases/mongo-c-driver/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/databases/mongo-c-driver/patches/patch-src_libbson_src_bson_bson-error.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/mongo-c-driver/distinfo
diff -u pkgsrc/databases/mongo-c-driver/distinfo:1.46 pkgsrc/databases/mongo-c-driver/distinfo:1.47
--- pkgsrc/databases/mongo-c-driver/distinfo:1.46       Fri Aug 25 16:40:05 2023
+++ pkgsrc/databases/mongo-c-driver/distinfo    Sun Aug 27 08:51:08 2023
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.46 2023/08/25 16:40:05 adam Exp $
+$NetBSD: distinfo,v 1.47 2023/08/27 08:51:08 adam Exp $
 
 BLAKE2s (mongo-c-driver-1.24.3.tar.gz) = a0f5f5d1261d1a7b393c26edec685d7a2e027b0ff715f2e1c452f24a882b8fb9
 SHA512 (mongo-c-driver-1.24.3.tar.gz) = 8a929c32eaee22a975e951cdffcb720073c2a4a36deea39eff79f843cce43b91ce8960cf38bf65c4640ba713ff687fd75915be3868630829f9af0a8cfa1277b0
 Size (mongo-c-driver-1.24.3.tar.gz) = 8262646 bytes
+SHA1 (patch-src_libbson_src_bson_bson-error.c) = 09ffbcb5e345668d0db3158f41cddc408845e9ee
 SHA1 (patch-src_libmongoc_tests_test-mongoc-stream-tls-error.c) = 856e4b44414e1ff6db12440c41d1aae9bf8046aa

Added files:

Index: pkgsrc/databases/mongo-c-driver/patches/patch-src_libbson_src_bson_bson-error.c
diff -u /dev/null pkgsrc/databases/mongo-c-driver/patches/patch-src_libbson_src_bson_bson-error.c:1.1
--- /dev/null   Sun Aug 27 08:51:08 2023
+++ pkgsrc/databases/mongo-c-driver/patches/patch-src_libbson_src_bson_bson-error.c     Sun Aug 27 08:51:08 2023
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_libbson_src_bson_bson-error.c,v 1.1 2023/08/27 08:51:08 adam Exp $
+
+Fix build on NetBSD.
+
+--- src/libbson/src/bson/bson-error.c.orig     2023-08-27 04:27:34.243073551 +0000
++++ src/libbson/src/bson/bson-error.c
+@@ -126,6 +126,10 @@ bson_strerror_r (int err_code,          
+    // required) by the POSIX spec (see:
+    // https://pubs.opengroup.org/onlinepubs/9699919799/functions/strerror.html#tag_16_574_08).
+    (void) strerror_r (err_code, buf, buflen);
++#elif defined(__NetBSD__)
++   if (strerror_r(err_code, buf, buflen) == 0) {
++     ret = buf;
++   }
+ #elif defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 700
+    // The behavior (of `strerror_l`) is undefined if the locale argument to
+    // `strerror_l()` is the special locale object LC_GLOBAL_LOCALE or is not a



Home | Main Index | Thread Index | Old Index