Patchwork openssl: install files in ${libdir}, not in ${base_libdir}

login
register
mail settings
Submitter Enrico Scholz
Date June 12, 2014, 1:36 p.m.
Message ID <1402580166-30993-1-git-send-email-enrico.scholz@sigma-chemnitz.de>
Download mbox | patch
Permalink /patch/73655/
State New
Headers show

Comments

Enrico Scholz - June 12, 2014, 1:36 p.m.
${base_libdir} is not in the search path of -native binaries and they
will try to pick the wrong openssl libraries.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
 meta/recipes-connectivity/openssl/openssl.inc | 4 ++++
 1 file changed, 4 insertions(+)
Robert Yang - June 12, 2014, 3:46 p.m.
On 06/12/2014 09:36 PM, Enrico Scholz wrote:
> ${base_libdir} is not in the search path of -native binaries and they
> will try to pick the wrong openssl libraries.

Hello, I don't quite understand this, why it doesn't search
${base_libdir}, please ?

// Robert

>
> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
> ---
>   meta/recipes-connectivity/openssl/openssl.inc | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index b839c00..f17f829 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -32,6 +32,10 @@ export AS = "${CC} -c"
>
>   inherit pkgconfig siteinfo multilib_header ptest
>
> +# natives don't generally look in base_libdir
> +base_libdir_class-native = "${libdir}"
> +base_libdir_class-nativesdk = "${libdir}"
> +
>   PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
>   FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
>   FILES_libssl = "${libdir}/libssl.so.*"
>
Enrico Scholz - June 13, 2014, 10:03 a.m.
Robert Yang <liezhi.yang-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
writes:

>> ${base_libdir} is not in the search path of -native binaries and they
>> will try to pick the wrong openssl libraries.
>
> Hello, I don't quite understand this, why it doesn't search
> ${base_libdir}, please ?

good question... When I wrote the patch a month ago or so, git-native (the
http fetcher afair) failed to run because it did not find libcrypto.so.1.0.1g
(system has ...1e version only).

I cherry-picked idea from dd05e06b89906002f68d616a6326c962e725bc54 for
openssl then and things worked.

But I can not reproduce the problem anymore when building from scratch
so this might be a temporary or local problem only.

So, this patch can be dropped.


Enrico

Patch

diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index b839c00..f17f829 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -32,6 +32,10 @@  export AS = "${CC} -c"
 
 inherit pkgconfig siteinfo multilib_header ptest
 
+# natives don't generally look in base_libdir
+base_libdir_class-native = "${libdir}"
+base_libdir_class-nativesdk = "${libdir}"
+
 PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
 FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
 FILES_libssl = "${libdir}/libssl.so.*"