Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 726306

Summary: dev-python/pycurl-7.43.0.5: failed configure with mbedtls
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: normal CC: gebauer.andy
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-30 14:13:23 UTC
Created attachment 642770 [details]
build.log

Snippet:
Using curl-config (libcurl 7.70.0)
Traceback (most recent call last):
  File "setup.py", line 960, in <module>
    ext = get_extension(sys.argv, split_extension_source=split_extension_source)
  File "setup.py", line 623, in get_extension
    ext_config = ExtensionConfiguration(argv)
  File "setup.py", line 101, in __init__
    self.configure()
  File "setup.py", line 322, in configure_unix
    self.detect_ssl_backend()
  File "setup.py", line 171, in detect_ssl_backend
    raise ConfigurationError('Invalid value "%s" for PYCURL_SSL_LIBRARY' % ssl_lib)
__main__.ConfigurationError: Invalid value "" for PYCURL_SSL_LIBRARY

----
# curl-config --ssl-backends
mbedTLS

Note that curl has been configured here with just CURL_SSL="mbedtls". Looks like support for mbedtls was added to pycurl in 7.43.0.3 which is the oldest version in tree anyway, so not clear what the problem is.

We have deps in the pycurl ebuild for the various SSL impls but I don't see this directly causing it.
Comment 1 Andy 2023-11-03 15:20:14 UTC
Newer pycurl versions are also affected, issue was never fixed.
The pycurl documentation on the other hand states the usage of mbedtls and warns to use gnutls: http://pycurl.io/docs/latest/install.html

Please enable use flag expansion for CURL_SSL including mbedtls for pycurl