pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/mongodb/patches mongodb: ...and some patches



details:   https://anonhg.NetBSD.org/pkgsrc/rev/733295917d45
branches:  trunk
changeset: 410926:733295917d45
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Feb 01 20:01:16 2020 +0000

description:
mongodb: ...and some patches

diffstat:

 databases/mongodb/patches/patch-src_third__party_asio-master_asio_include_asio_detail_config.hpp      |  26 ----------
 databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h |  20 -------
 databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h |  13 -----
 databases/mongodb/patches/patch-src_third__party_wiredtiger_src_os__posix_os__fs.c                    |  15 +++++
 4 files changed, 15 insertions(+), 59 deletions(-)

diffs (90 lines):

diff -r ce907f25b115 -r 733295917d45 databases/mongodb/patches/patch-src_third__party_asio-master_asio_include_asio_detail_config.hpp
--- a/databases/mongodb/patches/patch-src_third__party_asio-master_asio_include_asio_detail_config.hpp  Sat Feb 01 20:00:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-$NetBSD: patch-src_third__party_asio-master_asio_include_asio_detail_config.hpp,v 1.1 2019/03/05 19:35:58 adam Exp $
-
-experimental/string_view is deprecated.
-
---- src/third_party//asio-master/asio/include/asio/detail/config.hpp.orig      2019-03-04 18:53:19.000000000 +0000
-+++ src/third_party//asio-master/asio/include/asio/detail/config.hpp
-@@ -784,17 +784,15 @@
- # if !defined(ASIO_DISABLE_STD_STRING_VIEW)
- #  if defined(__clang__)
- #   if (__cplusplus >= 201402)
--#    if __has_include(<experimental/string_view>)
-+#    if __has_include(<string_view>)
- #     define ASIO_HAS_STD_STRING_VIEW 1
--#     define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1
--#    endif // __has_include(<experimental/string_view>)
-+#    endif // __has_include(<string_view>)
- #   endif // (__cplusplus >= 201402)
- #  endif // defined(__clang__)
- #  if defined(__GNUC__)
- #   if ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)) || (__GNUC__ > 4)
- #    if (__cplusplus >= 201402)
- #     define ASIO_HAS_STD_STRING_VIEW 1
--#     define ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW 1
- #    endif // (__cplusplus >= 201402)
- #   endif // ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4)
- #  endif // defined(__GNUC__)
diff -r ce907f25b115 -r 733295917d45 databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h
--- a/databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h     Sat Feb 01 20:00:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h,v 1.2 2017/05/29 14:44:47 ryoon Exp $
-
---- src/third_party/mozjs-45/platform/x86_64/netbsd/build/js-confdefs.h.orig   2016-02-11 12:42:39.272068631 +0000
-+++ src/third_party/mozjs-45/platform/x86_64/netbsd/build/js-confdefs.h
-@@ -19,7 +19,6 @@
- #define HAVE_CPUID_H 1
- #define HAVE_DIRENT_H 1
- #define HAVE_DLOPEN 1
--#define HAVE_ENDIAN_H 1
- #define HAVE_EXPM1 1
- #define HAVE_GETC_UNLOCKED 1
- #define HAVE_GETOPT_H 1
-@@ -54,7 +53,6 @@
- #define JS_CODEGEN_X64 1
- #define JS_CPU_X64 1
- #define JS_DEFAULT_JITREPORT_GRANULARITY 3
--#define JS_HAVE_ENDIAN_H 1
- #define JS_HAVE_MACHINE_ENDIAN_H 1
- #define JS_POSIX_NSPR 1
- #define JS_PUNBOX64 1
diff -r ce907f25b115 -r 733295917d45 databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h
--- a/databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h     Sat Feb 01 20:00:08 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h,v 1.2 2017/05/29 14:44:47 ryoon Exp $
-
---- src/third_party/mozjs-45/platform/x86_64/netbsd/include/js-config.h.orig   2016-02-11 12:24:33.328723425 +0000
-+++ src/third_party/mozjs-45/platform/x86_64/netbsd/include/js-config.h
-@@ -36,7 +36,7 @@
- 
- /* Define to 1 if the <endian.h> header is present and
-    useable.  See jscpucfg.h.  */
--#define JS_HAVE_ENDIAN_H 1
-+/* #undef JS_HAVE_ENDIAN_H */
- 
- /* Define to 1 if the <machine/endian.h> header is present and
-    useable.  See jscpucfg.h.  */
diff -r ce907f25b115 -r 733295917d45 databases/mongodb/patches/patch-src_third__party_wiredtiger_src_os__posix_os__fs.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mongodb/patches/patch-src_third__party_wiredtiger_src_os__posix_os__fs.c        Sat Feb 01 20:01:16 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_third__party_wiredtiger_src_os__posix_os__fs.c,v 1.1 2020/02/01 20:01:16 adam Exp $
+
+On NetBSD, fdatasync() fails with "Bad file descriptor".
+
+--- src/third_party/wiredtiger/src/os_posix/os_fs.c.orig       2020-01-29 21:12:06.697276371 +0000
++++ src/third_party/wiredtiger/src/os_posix/os_fs.c
+@@ -91,7 +91,7 @@ __posix_sync(WT_SESSION_IMPL *session, i
+         WT_PANIC_RET(session, ret, "%s: %s: fcntl(F_FULLFSYNC)", name, func);
+     }
+ #endif
+-#if defined(HAVE_FDATASYNC)
++#if defined(HAVE_FDATASYNC) && !defined(__NetBSD__)
+     /* See comment in __posix_sync(): sync cannot be retried or fail. */
+     WT_SYSCALL(fdatasync(fd), ret);
+     if (ret == 0)



Home | Main Index | Thread Index | Old Index