From 5e1ad948cf3469926b1a7292617309ed610a4c5b Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Tue, 8 Jun 2021 13:28:11 +0200 Subject: [PATCH] libcouchbase: 2.10.4 -> 3.1.3 --- ...x-timeouts-in-libcouchbase-testsuite.patch | 36 ------------------- .../libraries/libcouchbase/default.nix | 6 ++-- 2 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 pkgs/development/libraries/libcouchbase/0001-Fix-timeouts-in-libcouchbase-testsuite.patch diff --git a/pkgs/development/libraries/libcouchbase/0001-Fix-timeouts-in-libcouchbase-testsuite.patch b/pkgs/development/libraries/libcouchbase/0001-Fix-timeouts-in-libcouchbase-testsuite.patch deleted file mode 100644 index 1c57757f855c..000000000000 --- a/pkgs/development/libraries/libcouchbase/0001-Fix-timeouts-in-libcouchbase-testsuite.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 58237e64fa77ec5cdec658b3295f71ec899175fa Mon Sep 17 00:00:00 2001 -From: Maximilian Bosch -Date: Sat, 5 Oct 2019 13:47:59 +0200 -Subject: [PATCH] Fix timeouts in libcouchbase testsuite - -Nix-specific patch. Basically -https://github.com/couchbase/libcouchbase/commit/b272f6ab88be523bbcf9d5c4252d07fccb023fe5, but -rebased onto 2.10.4. ---- - src/ssl/ssl_e.c | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/src/ssl/ssl_e.c b/src/ssl/ssl_e.c -index f4506cf..734a3e6 100644 ---- a/src/ssl/ssl_e.c -+++ b/src/ssl/ssl_e.c -@@ -210,10 +210,16 @@ flush_ssl_data(lcbio_ESSL *es) - * calls. While we could have done this inline with the send() call this - * would make future optimization more difficult. */ - GT_WRITE_DONE: -+#if !LCB_CAN_OPTIMIZE_SSL_BIO -+ BIO_get_mem_ptr(es->wbio, &wmb); -+#endif - while (wmb->length > (size_t)tmp_len) { - char dummy[4096]; - unsigned to_read = MINIMUM(wmb->length-tmp_len, sizeof dummy); - BIO_read(es->wbio, dummy, to_read); -+#if !LCB_CAN_OPTIMIZE_SSL_BIO -+ BIO_get_mem_ptr(es->wbio, &wmb); -+#endif - } - BIO_clear_retry_flags(es->wbio); - return 0; --- -2.23.0 - diff --git a/pkgs/development/libraries/libcouchbase/default.nix b/pkgs/development/libraries/libcouchbase/default.nix index 9f75eafdf247..9cb83c5bf654 100644 --- a/pkgs/development/libraries/libcouchbase/default.nix +++ b/pkgs/development/libraries/libcouchbase/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "libcouchbase"; - version = "2.10.4"; + version = "3.1.3"; src = fetchFromGitHub { owner = "couchbase"; repo = "libcouchbase"; rev = version; - sha256 = "1yfmcx65aqd5l87scha6kmm2s38n85ci3gg0h6qfs16s3jfi6bw7"; + sha256 = "16mafxkdbns33yjyc2p3j2iajjpyq0zp66wpjir2qj1w3kgggcw8"; }; cmakeFlags = [ "-DLCB_NO_MOCK=ON" ]; @@ -19,8 +19,6 @@ stdenv.mkDerivation rec { # Running tests in parallel does not work enableParallelChecking = false; - patches = [ ./0001-Fix-timeouts-in-libcouchbase-testsuite.patch ]; - doCheck = !stdenv.isDarwin; meta = with lib; {