I'm trying to rebuild pycurl with OpenSSL because of this bug. I use this example:
- sudo apt-get install build-essential fakeroot dpkg-dev
- mkdir ~/python-pycurl-openssl
- cd ~/python-pycurl-openssl
- sudo apt-get source python-pycurl
- sudo apt-get build-dep python-pycurl
- sudo apt-get install libcurl4-openssl-dev
- sudo dpkg-source -x pycurl_7.19.3-0ubuntu3.dsc
- cd pycurl-7.19.3
- edit debian/control file and replace all instances of 'libcurl4-gnutls-dev' with 'libcurl4-openssl-dev' (7 changes)
- sudo PYCURL_SSL_LIBRARY=openssl dpkg-buildpackage -rfakeroot -b
- sudo dpkg -i ../python-pycurl_7.19.3-0ubuntu3_amd64.deb
But after all I'm still stuck with GnuTLS build of pycurl.
>>> pycurl.version
'PycURL/7.19.5.1 libcurl/7.35.0 GnuTLS/2.12.23 zlib/1.2.8 libidn/1.28 librtmp/2.3'
Operation log (there are some error's tracebacks): http://pastebin.com/6hUEUGar
I use:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
What am I doing wrong?
I could solve the problem using pip:
sudo pip uninstall pycurl
export PYCURL_SSL_LIBRARY=openssl
sudo pip install pycurl --upgrade
Now:
>>> pycurl.version
'PycURL/7.19.5.1 libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3'
But I'm not sure It's right. Why are there two package in the system? Or it's ok and python is just linked to one of them?