From 89a4c36f5a79c47e35cf01983a6c61cd31e43d75 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 27 Oct 2014 11:07:17 +0100 Subject: [PATCH] python-curl: add support for libressl from @JiCiT (close #574). --- ...in-lieu-of-OpenSSL-at-link-time.-PR-.patch | 26 +++++++++++++++++++ srcpkgs/python-curl/template | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python-curl/patches/0001-Accept-LibreSSL-in-lieu-of-OpenSSL-at-link-time.-PR-.patch diff --git a/srcpkgs/python-curl/patches/0001-Accept-LibreSSL-in-lieu-of-OpenSSL-at-link-time.-PR-.patch b/srcpkgs/python-curl/patches/0001-Accept-LibreSSL-in-lieu-of-OpenSSL-at-link-time.-PR-.patch new file mode 100644 index 00000000000..1dfbb580556 --- /dev/null +++ b/srcpkgs/python-curl/patches/0001-Accept-LibreSSL-in-lieu-of-OpenSSL-at-link-time.-PR-.patch @@ -0,0 +1,26 @@ +From d834971874bddc389ea7a6313b4d72f46b68be72 Mon Sep 17 00:00:00 2001 +From: JiCiT +Date: Wed, 1 Oct 2014 17:32:30 -0400 +Subject: [PATCH 1/4] Accept LibreSSL in lieu of OpenSSL at link-time. (PR + #209) + +--- + src/module.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/module.c b/src/module.c +index 1b3ee59..ff97f6c 100644 +--- src/module.c ++++ src/module.c +@@ -299,6 +299,8 @@ initpycurl(void) + runtime_ssl_lib = "none/other"; + } else if (!strncmp(vi->ssl_version, "OpenSSL/", 8)) { + runtime_ssl_lib = "openssl"; ++ } else if (!strncmp(vi->ssl_version, "LibreSSL/", 9)) { ++ runtime_ssl_lib = "openssl"; + } else if (!strncmp(vi->ssl_version, "GnuTLS/", 7)) { + runtime_ssl_lib = "gnutls"; + } else if (!strncmp(vi->ssl_version, "NSS/", 4)) { +-- +2.1.2 + diff --git a/srcpkgs/python-curl/template b/srcpkgs/python-curl/template index c38dd0b412c..d9363054db2 100644 --- a/srcpkgs/python-curl/template +++ b/srcpkgs/python-curl/template @@ -1,7 +1,7 @@ # Template file for 'python-curl' pkgname=python-curl version=7.19.5 -revision=1 +revision=2 wrksrc="pycurl-${version}" build_style=python-module python_versions="2.7 3.4"