Patchwork [RFC] curl: work around RRECOMMENDS problems in -native* recipes

login
register
mail settings
Submitter Koen Kooi
Date May 13, 2014, 7:30 a.m.
Message ID <1399966241-25745-1-git-send-email-koen.kooi@linaro.org>
Download mbox | patch
Permalink /patch/72047/
State New
Headers show

Comments

Koen Kooi - May 13, 2014, 7:30 a.m.
Both curl-native and git-(replacement-)native need ca-certs installed to support https:// but since PACKAGES is reset to "" R* variables don't work and ca-certs don't end up in sysroot. Adding it to DEPENDS works around this.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta/recipes-support/curl/curl_7.36.0.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Koen Kooi - May 13, 2014, 9:26 a.m.
Op 13 mei 2014, om 09:30 heeft Koen Kooi <koen.kooi@linaro.org> het volgende geschreven:

> Both curl-native and git-(replacement-)native need ca-certs installed to support https:// but since PACKAGES is reset to "" R* variables don't work and ca-certs don't end up in sysroot. Adding it to DEPENDS works around this.

And here's the error message

WARNING: Failed to fetch URL git://github.com/kernelslacker/trinity.git;protocol=https, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/build/linaro/build/build/downloads/git2/github.com.kernelslacker.trinity.git'...
fatal: unable to access 'https://github.com/kernelslacker/trinity.git/': error setting certificate verify locations:
  CAfile: /build/linaro/build/build/tmp-eglibc/sysroots/x86_64-linux/etc/ssl/certs/ca-certificates.crt
  CApath: none

ERROR: Function failed: Fetcher failure for URL: 'git://github.com/kernelslacker/trinity.git;protocol=https'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /build/linaro/build/build/tmp-eglibc/work/aarch64-oe-linux/trinity/1.3-r0/temp/log.do_fetch.7843
ERROR: Task 1378 (/build/linaro/build/meta-linaro/meta-linaro/recipes-extra/trinity/trinity_1.3.bb, do_fetch) failed with exit code '1'

The bad news: the postinst needs to run for -native* as well :(

--
Koen Kooi
Builds and Baselines | Release Manager
Linaro.org | Open source software for ARM SoCs




> 
> Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
> ---
> meta/recipes-support/curl/curl_7.36.0.bb | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-support/curl/curl_7.36.0.bb b/meta/recipes-support/curl/curl_7.36.0.bb
> index f3401fa..affc2e1 100644
> --- a/meta/recipes-support/curl/curl_7.36.0.bb
> +++ b/meta/recipes-support/curl/curl_7.36.0.bb
> @@ -6,8 +6,11 @@ LICENSE = "MIT"
> LIC_FILES_CHKSUM = "file://COPYING;beginline=7;md5=3a34942f4ae3fbf1a303160714e664ac"
> 
> DEPENDS = "zlib gnutls"
> -DEPENDS_class-native = "zlib-native openssl-native"
> -DEPENDS_class-nativesdk = "nativesdk-zlib"
> +
> +# RDEPENDS/RRECOMMENDS don't work for -native, so add ca-certs to DEPENDS to install 
> +# them into sysroot to make https:// work for curl and git
> +DEPENDS_class-native = "zlib-native openssl-native ca-certificates-native"
> +DEPENDS_class-nativesdk = "nativesdk-zlib ca-certificates-nativesdk"
> 
> SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
>            file://pkgconfig_fix.patch \
> -- 
> 1.9.0
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>

Patch

diff --git a/meta/recipes-support/curl/curl_7.36.0.bb b/meta/recipes-support/curl/curl_7.36.0.bb
index f3401fa..affc2e1 100644
--- a/meta/recipes-support/curl/curl_7.36.0.bb
+++ b/meta/recipes-support/curl/curl_7.36.0.bb
@@ -6,8 +6,11 @@  LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;beginline=7;md5=3a34942f4ae3fbf1a303160714e664ac"
 
 DEPENDS = "zlib gnutls"
-DEPENDS_class-native = "zlib-native openssl-native"
-DEPENDS_class-nativesdk = "nativesdk-zlib"
+
+# RDEPENDS/RRECOMMENDS don't work for -native, so add ca-certs to DEPENDS to install 
+# them into sysroot to make https:// work for curl and git
+DEPENDS_class-native = "zlib-native openssl-native ca-certificates-native"
+DEPENDS_class-nativesdk = "nativesdk-zlib ca-certificates-nativesdk"
 
 SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
            file://pkgconfig_fix.patch \