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.
This commit is contained in:
parent
9fad055023
commit
27c3afa940
@ -677,7 +677,11 @@ LaTeX.")
|
|||||||
(("if \\(!grepl\\(\"mingw\".*")
|
(("if \\(!grepl\\(\"mingw\".*")
|
||||||
"if (FALSE)\n"))
|
"if (FALSE)\n"))
|
||||||
(substitute* "src/handle.c"
|
(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)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("libcurl" ,curl)
|
`(("libcurl" ,curl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user