summary refs log tree commit diff
path: root/gnu/packages/cran.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-03-27 23:36:33 +0100
committerRicardo Wurmus <rekado@elephly.net>2020-03-27 23:38:31 +0100
commit27c3afa940693376fd1a2a55602f4af9f53798b6 (patch)
tree66f27444b9865b80be33da6852f016f2e8095804 /gnu/packages/cran.scm
parent9fad055023c4b6f54432d7490e6cd1f1151c16e6 (diff)
downloadguix-27c3afa940693376fd1a2a55602f4af9f53798b6.tar.gz
gnu: r-curl: Fix patch to respect CURL_CA_BUNDLE.
Fixes <https://debbugs.gnu.org/40262>.

* gnu/packages/cran.scm (r-curl)[arguments]: Ensure CURLOPT_CAINFO actually
gets set.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r--gnu/packages/cran.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 573630ff69..759b9263f3 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -677,7 +677,11 @@ LaTeX.")
                (("if \\(!grepl\\(\"mingw\".*")
                 "if (FALSE)\n"))
              (substitute* "src/handle.c"
-               (("#ifdef _WIN32") "#if 1"))
+               (("/\\* Only set" m)
+                (string-append "\
+const char *_ca_bundle = getenv(\"CURL_CA_BUNDLE\");
+if(_ca_bundle != NULL) { curl_easy_setopt(handle, CURLOPT_CAINFO, _ca_bundle); }
+" m)))
              #t)))))
     (inputs
      `(("libcurl" ,curl)