summaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-12-26 12:25:29 +0100
committerMarius Bakke <mbakke@fastmail.com>2018-12-26 12:27:57 +0100
commit33eb63da646706380f74ac710740f12a0f0a7a8c (patch)
treee3ab66e9c7679dc371343897f3444bc79399fce9 /gnu/packages/patches
parent215a51e4412f6e0051ce2f3abced8d26125d99ca (diff)
downloadgnu-guix-33eb63da646706380f74ac710740f12a0f0a7a8c.tar
gnu-guix-33eb63da646706380f74ac710740f12a0f0a7a8c.tar.gz
gnu: sssd: Fix build with cURL >= 7.62.0.
* gnu/packages/patches/sssd-curl-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/sssd.scm (sssd)[source](patches): Use it.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/sssd-curl-compat.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/patches/sssd-curl-compat.patch b/gnu/packages/patches/sssd-curl-compat.patch
new file mode 100644
index 0000000000..ecab737153
--- /dev/null
+++ b/gnu/packages/patches/sssd-curl-compat.patch
@@ -0,0 +1,18 @@
+Fix build with curl >= 7.62. Patch taken from upstream:
+
+https://pagure.io/SSSD/sssd/c/4d3841ca379afc01184453ba45ab3e75ffec60da?branch=sssd-1-16
+
+diff --git a/src/util/tev_curl.c b/src/util/tev_curl.c
+index 6a7a580..d70a429 100644
+--- a/src/util/tev_curl.c
++++ b/src/util/tev_curl.c
+@@ -97,7 +97,9 @@ static errno_t curl_code2errno(CURLcode crv)
+ return ETIMEDOUT;
+ case CURLE_SSL_ISSUER_ERROR:
+ case CURLE_SSL_CACERT_BADFILE:
++#if LIBCURL_VERSION_NUM < 0x073e00
+ case CURLE_SSL_CACERT:
++#endif
+ case CURLE_SSL_CERTPROBLEM:
+ return ERR_INVALID_CERT;
+