me
/
guix
Archived
1
0
Fork 0

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.
master
Ricardo Wurmus 2020-03-27 23:36:33 +01:00
parent 9fad055023
commit 27c3afa940
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 5 additions and 1 deletions

View File

@ -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)