[oe] libx11 1.2 problems (dolt vs. libtool)

Mario Domenech Goulart mario at ossystems.com.br
Fri May 29 21:52:07 UTC 2009


Hi folks

On Fri, 29 May 2009 08:38:10 +0200 Jeremy Lainé <jeremy.laine at bolloretelecom.eu> wrote:

> Since libx11 was upgraded to 1.2, my libx11 builds are failing with:
>
> | ../../../doltlibtool: line 17:
> /home/oebuilder/oe/build/tmp/work/ppce300c3-angstrom-linux/libx11-1_1.2-r0/libX11-1.2/modules/im/ximcp/../../../libtool:
> No such file or directory
> | ../../../doltlibtool: line 17: exec:
> /home/oebuilder/oe/build/tmp/work/ppce300c3-angstrom-linux/libx11-1_1.2-r0/libX11-1.2/modules/im/ximcp/../../../libtool:
> cannot execute: No suchfile or directory
>
> It would seem I am not the only one with this problem:
>
> http://tinderbox.openembedded.net/packages/libx11/
>
> The problem is that the "dolibtool" script (see
> http://dolt.freedesktop.org) is trying to invoke the "libtool" script
> which it assumes lives in the base directory. However in OE the
> libtool script is called ${HOST_SYS}-libtool, so it is not being
> found.

That's the behavior we observed here too.


> For now I am working around the problem with the following patch, but
> I suspect this is going to crop up in other packages sooner or later:
>
> diff --git a/recipes/xorg-lib/libx11_1.2.bb b/recipes/xorg-lib/libx11_1.2.bb
> index a3d000f..8415315 100644
> --- a/recipes/xorg-lib/libx11_1.2.bb
> +++ b/recipes/xorg-lib/libx11_1.2.bb
> @@ -13,6 +13,10 @@ SRC_URI += "file://x11_disable_makekeys.patch;patch=1 \
>
>  EXTRA_OECONF += "--without-xcb --with-keysymdef=${STAGING_INCDIR}/X11/keysymdef.h"
>
> +do_configure_append() {
> +       ln -s ${HOST_SYS}-libtool libtool
> +}
> +
>  do_compile() {
>         (
>                 unset CC LD CXX CCLD CFLAGS CPPFLAGS LDFLAGS CXXFLAGS

As Otavio mentioned, we faced this problem here, but our approach to
solve it was a little different (in terms of implementation).  We
actually fixed the acinclude.m4 file (the patch is attached).

I guess the right thing to do is to patch dolt.m4
(http://cgit.freedesktop.org/dolt/ -- from where libx11's and xserver's
acinclude.m4 are generated, I suppose).  We are working on a patch for
it (the fix is basically the same as for acinclude.m4).

Best wishes.
Mario
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acinclude.m4.patch
Type: text/x-diff
Size: 655 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090529/b8dac93f/attachment-0002.bin>


More information about the Openembedded-devel mailing list