On 09/19/2018 05:59 PM, Burton, Ross wrote:
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

Thanks, I will change as recommend and resend this.
On Wed, 19 Sep 2018 at 09:30, <changqing...@windriver.com> wrote:
From: Changqing Li <changqing...@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...@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@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
BRs

Sandy(Li Changqing)
Wind River Linux

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

Reply via email to