curl: disable curl-config binconfig file
PATCH 1/1 curl: disable curl-config binconfig file
---
This works OK for me, but probably needs wider testing.
meta/recipes-support/curl/curl_7.47.0.bb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
meta/recipes-support/curl/curl_7.47.0.bb +2 -5
@@ -17,7 +17,7 @@ SRC_URI += " file://configure_ac.patch" SRC_URI[md5sum] = "85c58a00412476993050cb242a3f365d" SRC_URI[sha256sum] = "2b096f9387fb9b2be08d17e518c62b6537b1f4d4bb59111d5b4fa0272f383f66" -inherit autotools pkgconfig binconfig multilib_header +inherit autotools pkgconfig binconfig-disabled multilib_header PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", "", d)} gnutls zlib" PACKAGECONFIG_class-native = "ipv6 ssl zlib"
@@ -45,10 +45,7 @@ do_install_append() { oe_multilib_header curl/curlbuild.h } -do_install_append_class-target() { - # cleanup buildpaths from curl-config - sed -i -e 's,${STAGING_DIR_HOST},,g' ${D}${bindir}/curl-config -} +BINCONFIG = "${bindir}/curl-config" PACKAGES =+ "lib${BPN}"
Signature · 1 line
1.9.1
Quoted 2 lines · Andre McCurdy
This works OK for me, but probably needs wider testing.
python-pycurl fails in oe-core:
DEBUG: Executing shell function do_compile
Traceback (most recent call last):
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 743, in <module>
ext = get_extension(sys.argv,
split_extension_source=split_extension_source)
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 497, in get_extension
ext_config = ExtensionConfiguration(argv)
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 71, in __init__
self.configure()
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 113, in configure_unix
raise ConfigurationError(msg)
__main__.ConfigurationError: `curl-config' not found -- please install the libcurl development files or specify --curl-config=/path/to/curl-config:
ERROR: /usr/bin/curl-config should not be used, use an alternative such as pkg-config
Ross
Quoted 22 lines · Ross
Quoted 2 lines · Andre McCurdy
This works OK for me, but probably needs wider testing.
python-pycurl fails in oe-core:
DEBUG: Executing shell function
do_compile
Traceback (most recent call last):
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 743, in <module>
ext = get_extension(sys.argv,
split_extension_source=split_extension_source)
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 497, inget_extension
ext_config= ExtensionConfiguration(argv)
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 71, in__init__
self.configure()
Quoted 8 lines
File
"/data/poky-master/tmp/work/corei7-64-poky-linux/python-pycurl/7.21.5-r0/pycurl-7.21.5/setup.py", line 113, inconfigure_unix
raise ConfigurationError(msg)
__main__.ConfigurationError: `curl-config' not found -- please install the libcurl development files or specify --curl-config=/path/to/curl-config:
ERROR:/usr/bin/curl-configshould not be used, use an alternative such as pkg-config
Thanks. Unfortunately I don't see a clean solution for this. The setup.py script uses curl-config to determine which ssl implementation curl has been built against and that information isn't available from pkg-config.
It's probably fixable with some surgery, but I'm not sure it's worth the maintenance effort just so we can disable curl binconfig...
Please drop my "curl: disable curl-config binconfig file" patch.
Quoted 1 line
Ross
Quoted 10 lines · Andre McCurdy
Thanks. Unfortunately I don't see a clean solution for this. The
setup.pyscript uses curl-config to determine which ssl implementation curl has been built against and that information isn't available from pkg-config.It's probably fixable with some surgery, but I'm not sure it's worth the maintenance effort just so we can disable curl binconfig...
Please drop my "curl: disable curl-config binconfig file" patch.
The feature tests? That's exposed in pkg-config as the supported_features variable. I wouldn't be surprised if more recipes in meta-oe were using curl-config though, so I do agree with you here: moving away from curl-config would be good but scoping out the damage in a world build including meta-oe needs to be done first.
Ross
Quoted 8 lines · Ross
Quoted 6 lines · Andre McCurdy
Thanks. Unfortunately I don't see a clean solution for this. The
setup.pyscript uses curl-config to determine which ssl implementation curl has been built against and that information isn't available from pkg-config.
Quoted 7 lines
Quoted 4 lines
It's probably fixable with some surgery, but I'm not sure it's worth the maintenance effort just so we can disable curl binconfig...
Please drop my "curl: disable curl-config binconfig file" patch.
The feature tests? That's exposed in pkg-config as the
supported_featuresvariable.
setup.py actually parses the output of curl-config --libs (ie "-lcurl -lnettle -lgnutls -lz") to decide which ssl implementation curl has been built against. There's nothing in curl's pkg-config file which gives that same information.
A second question is why pycurl thinks it needs to know which ssl implementation curl is using. I don't think it really does, but fixing it and then rewriting setup.py is not a trivial patch.
Quoted 6 lines
I wouldn't be surprised if more recipes in meta-oe were using curl-config though, so I do agree with you here: moving away from curl-config would be good but scoping out the damage in a world build including meta-oe needs to be done first.
Ross
Quoted 9 lines · Andre McCurdy
setup.pyactually parses the output of curl-config --libs (ie "-lcurl -lnettle -lgnutls -lz") to decide which ssl implementation curl has been built against. There's nothing in curl's pkg-config file which gives that same information.A second question is why pycurl thinks it needs to know which ssl implementation curl is using. I don't think it really does, but fixing it and then rewriting
setup.pyis not a trivial patch.
Huh, it looks a lot like the pkgconfig file isn't complete. Also my initial look at "can I rewrite this setup.py to use pkgconfig" was quickly abandoned with your same conclusion... agreed: this patch is on hold!
Ross