]> code.ossystems Code Review - openembedded-core.git/commit
glib-2.0: fix a host contamination issue
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 3 Sep 2013 12:37:01 +0000 (20:37 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Sep 2013 13:15:53 +0000 (14:15 +0100)
commit3e660ec01cc62c57b379b151e43c7952e97a1c2b
tree1a98c5acceb5b89575257282bd7a0da08d1a94be
parent6cdcc543ce8f532a4f66246114241b43821a111e
glib-2.0: fix a host contamination issue

We will see the following warning by accident:

$ bitbake nativesdk-glib-2.0

WARNING: QA Issue: nativesdk-glib-2.0-dbg: found library in wrong location:
/opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/share/gdb/auto-load/opt/
poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/libglib-2.0.so.0.3600.4-gdb.py

There are two '/opt/poky/0.5.5/sysroots' in the path when the warning
comes, this is what we need since glib-2.0 has done this intentionally
in its configure and Makefile.

This is because the configure script uses the:
ABS_GLIB_RUNTIME_LIBDIR = "readlink -f $libdir/$with_runtime_libdir`"
to figure out the abs dir, so if
/opt/poky/0.5.5/sysroots/x86_64-pokysdk-linux/usr/lib/ exists , there
would be warning, otherwise no warning.

We can change the "readlink -f" to "readlink -m" to fix the host
contamination issue.

Another fix could be:
ABS_GLIB_RUNTIME_LIBDIR =""

But this is much more like a workaround.

[YOCTO #5099]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glib-2.0/glib-2.0/glib-2.0-configure-readlink.patch [new file with mode: 0644]
meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb