Re: [OE-core] [PATCH 2/3] bind: fix openSSL detection when using multiarch

2018-04-12 Thread Koen Kooi


> Op 11 apr. 2018, om 11:25 heeft Koen Kooi  het 
> volgende geschreven:

[..]

> There is one change that will need careful consideration if it is meant for 
> sumo, it looks like the sysroot code treats libdir differently from 
> base_libdir:
> 
>   [koen@fedora-vm build-rpb]$ ls 
> tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/recipe-sysroot-native/lib/
>   x86_64-linux
> 
>   [koen@fedora-vm build-rpb]$ ls 
> tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/recipe-sysroot-native/usr/lib/
>   aarch64-linaro-linux   libcomps.solibexpat.a  
> libgdbm_compat.so libgthread-2.0.so.0.5400.3  libmpc.so.3.1.0 
>   libparted-fs-resize.so.0.0.1  libpython3.so  libtermcap.so
>   [..]
>   libcheck.so.0.0.0  libelf.so.1libgdbm_compat.a
> libgthread-2.0.so.0   libmpc.so.3 
> libparted-fs-resize.so.0  libpython3.5m.so.1.0  libssl.so.1.0.2
> 
> E2fsprogs installs into base_libdir, which gets the multiarch treatment, and 
> mkfs.ext4 fails to find its libs during image generation. 

The assumption seems to have been correct, trying a build with this change:

[koen@fedora-vm openembedded-core]$ git diff
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index a911f2a..7f2df17 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -78,6 +78,7 @@ exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
 
 bindir = "${STAGING_BINDIR_NATIVE}"
 sbindir = "${STAGING_SBINDIR_NATIVE}"
+base_libdir = "${STAGING_LIBDIR_NATIVE}"
 libdir = "${STAGING_LIBDIR_NATIVE}"
 includedir = "${STAGING_INCDIR_NATIVE}"
 sysconfdir = "${STAGING_ETCDIR_NATIVE}"
@@ -89,6 +90,7 @@ export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} 
${base_libdir} /lib /lib64
 
 NATIVE_PACKAGE_PATH_SUFFIX ?= ""
 bindir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
+base_libdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
 libdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
 libexecdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}"
 


regards,

Koen

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/3] bind: fix openSSL detection when using multiarch

2018-04-11 Thread Koen Kooi


> Op 9 apr. 2018, om 18:36 heeft Richard Purdie 
>  het volgende geschreven:
> 
> On Mon, 2018-04-09 at 13:56 +0200, Koen Kooi wrote:
>> In multiarch /usr/include and /usr/lib/> level anymore. This change will pass a correct includedir, but a
>> wrong libdir, but the linker picks it up anyway.
>> 
>> Tested on multiarch and regular build.
> 
> How far off working is mulitarch for OE-Core?

With the current state of OE-core ‘bitbake bash’ does the right things. I have 
a few patches that make more things work, but those need more testing.

> The reason I ask is I'd like to understand the scope of the changes
> needed to support it. It also influences whether these are sumo or post
> 2.5 changes.

So far all the changes are real bugfixes, like stopping recipes from doing  
‘basename libdir’ to get base_libdir. For things like python I’m running into 
problems where upstream does the right thing, but the OE multilib patches break 
that.

There is one change that will need careful consideration if it is meant for 
sumo, it looks like the sysroot code treats libdir differently from base_libdir:

[koen@fedora-vm build-rpb]$ ls 
tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/recipe-sysroot-native/lib/
x86_64-linux

[koen@fedora-vm build-rpb]$ ls 
tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/recipe-sysroot-native/usr/lib/
aarch64-linaro-linux   libcomps.solibexpat.a  
libgdbm_compat.so libgthread-2.0.so.0.5400.3  libmpc.so.3.1.0   
libparted-fs-resize.so.0.0.1  libpython3.so  libtermcap.so
[..]
libcheck.so.0.0.0  libelf.so.1libgdbm_compat.a
libgthread-2.0.so.0   libmpc.so.3 
libparted-fs-resize.so.0  libpython3.5m.so.1.0  libssl.so.1.0.2

E2fsprogs installs into base_libdir, which gets the multiarch treatment, and 
mkfs.ext4 fails to find its libs during image generation. 

Regardless of all that,  a lot  of recipes 
will need packaging fixes, which should not go into a release branch like sumo, 
so, personally, I’d move it post sumo.

regards,

Koen
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/3] bind: fix openSSL detection when using multiarch

2018-04-09 Thread Richard Purdie
On Mon, 2018-04-09 at 13:56 +0200, Koen Kooi wrote:
> In multiarch /usr/include and /usr/lib/ level anymore. This change will pass a correct includedir, but a
> wrong libdir, but the linker picks it up anyway.
> 
> Tested on multiarch and regular build.

How far off working is mulitarch for OE-Core?

The reason I ask is I'd like to understand the scope of the changes
needed to support it. It also influences whether these are sumo or post
2.5 changes.

Cheers,

Richard
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/3] bind: fix openSSL detection when using multiarch

2018-04-09 Thread Koen Kooi
In multiarch /usr/include and /usr/lib/
---
 meta/recipes-connectivity/bind/bind_9.10.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/bind/bind_9.10.6.bb 
b/meta/recipes-connectivity/bind/bind_9.10.6.bb
index 8b8835b..20c8d7b 100644
--- a/meta/recipes-connectivity/bind/bind_9.10.6.bb
+++ b/meta/recipes-connectivity/bind/bind_9.10.6.bb
@@ -35,7 +35,7 @@ EXTRA_OECONF = " ${ENABLE_IPV6} --with-libtool 
--enable-threads \
  --disable-devpoll --enable-epoll --with-gost=no \
  --with-gssapi=no --with-ecdsa=yes \
  --sysconfdir=${sysconfdir}/bind \
- --with-openssl=${STAGING_LIBDIR}/.. \
+ --with-openssl=${STAGING_DIR_HOST}${prefix} \
"
 
 inherit autotools update-rc.d systemd useradd pkgconfig python3-dir
-- 
2.9.5

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core