[OE-core] [PATCH] dbus-test: fix ptest failed problem when multilib is enabled

Burton, Ross ross.burton at intel.com
Wed Sep 19 09:59:54 UTC 2018


Surely a better/safer replacement would be to change run-ptest to:

-export LD_LIBRARY_PATH=/usr/lib/dbus-test/ptest/test/.libs
+export LD_LIBRARY_PATH=@PTEST_PATH%/test/.libs

And then substitute that.  Replacing in baselib doesn't help if the
distro changes PTEST_PATH.

Ross
On Wed, 19 Sep 2018 at 09:30, <changqing.li at windriver.com> wrote:
>
> From: Changqing Li <changqing.li at windriver.com>
>
> Fix some failed info like:
> | ./test/test-bus: relocation error: ./test/test-bus: symbol
> | _dbus_threads_init_debug, version LIBDBUS_PRIVATE_1.10.10 not defined
> | in file libdbus-1.so.3 with link time reference
> | FAIL: test/test-bus
>
> In run-ptest, LD_LIBRARY_PATH is set to /usr/lib, but when multilib
> is enabled, /usr/lib64 will be used. fix by replace with correct path.
>
> Signed-off-by: Changqing Li <changqing.li at windriver.com>
> ---
>  meta/recipes-core/dbus/dbus-test_1.12.10.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-core/dbus/dbus-test_1.12.10.bb b/meta/recipes-core/dbus/dbus-test_1.12.10.bb
> index e3ee608..a438627 100644
> --- a/meta/recipes-core/dbus/dbus-test_1.12.10.bb
> +++ b/meta/recipes-core/dbus/dbus-test_1.12.10.bb
> @@ -75,6 +75,8 @@ do_install_ptest() {
>                 sed -i \
>                  -e 's:${B}:${PTEST_PATH}:g' \
>                  {} +
> +        #correct LD_LIBRARY_PATH for run-ptest according current baselib
> +        sed -i -e 's;/lib/;/${baselib}/;g'  ${D}${PTEST_PATH}/run-ptest
>  }
>
>  RDEPENDS_${PN}-ptest += "bash"
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list