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

Koen Kooi koen at dominion.thruhere.net
Thu Apr 12 09:47:23 UTC 2018



> Op 11 apr. 2018, om 11:25 heeft Koen Kooi <koen at dominion.thruhere.net> 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 at 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 at 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.so                libexpat.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.1                libgdbm_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 at 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




More information about the Openembedded-core mailing list