* DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG
@ 2012-03-29 16:10 Andreas Müller
2012-03-29 20:19 ` Martin Jansa
0 siblings, 1 reply; 6+ messages in thread
From: Andreas Müller @ 2012-03-29 16:10 UTC (permalink / raw)
To: openembedded-core
Hi,
on my colleagues's build machine ( Ubuntu 11.04 / Angstrom based /
target overo / pullled all layers yesterday ) image building fails for
gtk+native with
| configure: error: *** libX11 not found. Check 'config.log' for more details.
and in config.log
| /usr/bin/ld: cannot find -lXrender
After manually building libxrender-native build continues without issues.
Seems this issue is same as mentioned in [1] without result.
Martin: how did you fix that on your environment?
Andreas
[1] http://lists.linuxtogo.org/pipermail/openembedded-core/2012-February/018293.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG
2012-03-29 16:10 DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG Andreas Müller
@ 2012-03-29 20:19 ` Martin Jansa
0 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2012-03-29 20:19 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]
On Thu, Mar 29, 2012 at 06:10:46PM +0200, Andreas Müller wrote:
> Hi,
>
> on my colleagues's build machine ( Ubuntu 11.04 / Angstrom based /
> target overo / pullled all layers yesterday ) image building fails for
> gtk+native with
>
> | configure: error: *** libX11 not found. Check 'config.log' for more details.
>
> and in config.log
>
> | /usr/bin/ld: cannot find -lXrender
Yes it does fail like this since PACKAGECONFIG was added to gtk+..
> After manually building libxrender-native build continues without issues.
>
> Seems this issue is same as mentioned in [1] without result.
>
> Martin: how did you fix that on your environment?
by this patchset for oe-core
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-March/019619.html
and this for meta-oe
http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-March/038711.html
both regulary updated in shr branches in oe-core-contrib/meta-oe-contrib
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG
2012-02-14 23:00 Martin Jansa
2012-02-24 12:32 ` Martin Jansa
@ 2012-03-16 16:24 ` Martin Jansa
1 sibling, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2012-03-16 16:24 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 6138 bytes --]
On Wed, Feb 15, 2012 at 12:00:44AM +0100, Martin Jansa wrote:
> oe-core gtk+ has:
>
> X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> DEPENDS = "glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native \
> libgcrypt cairo gdk-pixbuf"
> PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
>
> meta-oe adds BBCLASSEXTEND = "native"
> because gtk+-native-2* is needed for gtk+3 to build:
> http://git.openembedded.org/meta-openembedded/commit/?id=a4155ac38dce214cbb59f6243b29ca3df76e0d29
>
> I would expect that all dependencies added by x11 PACKAGECONFIG will be expanded
> to -native variants like for every other dependency, but it's not true:
>
> gtk-native.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> gtk-native.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native ${X11DEPENDS}
> gtk-gative.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native gnu-config-native glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
>
> gtk-target.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> gtk-target.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf ${X11DEPENDS}
> gtk-target.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native libtool-cross gnu-config-native virtual/arm-oe-linux-gnueabi-gcc virtual/arm-oe-linux-gnueabi-compilerlibs virtual/libc glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
>
> And gtk+-native builds fails to configure because of missing libxrender-native (libx11-native is built by something else probably).
Following patch fixes this case for me
OE om-gta02@shr ~/shr-core $ grep ^DEPENDS= gtk+-native.env3
DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native
gnu-config-native glib-2.0-native pango-native atk-native jpeg-native
libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native
libgcrypt-native cairo-native gdk-pixbuf-native virtual/libx11-native
libxrender-native virtual/libx11-native libxext-native libxcursor-native
libxrandr-native libxdamage-native libxrender-native
libxcomposite-native"
OE om-gta02@shr ~/shr-core $ grep ^DEPENDS= gtk+.env3
DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native
libtool-cross gnu-config-native virtual/arm-oe-linux-gnueabi-gcc
virtual/arm-oe-linux-gnueabi-compilerlibs virtual/libc glib-2.0 pango
atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native
libgcrypt cairo gdk-pixbuf virtual/libx11-native libxrender-native
virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender
libxcomposite"
But it's harder to do e.g.
DEPENDS_virtclass-native = "some smaller set of only really needed foo and bar"
so even with only libx11-native and libxrender really mandatory depends
(configure failing without them), I had to add few more BBCLASSEXTENDs:
# new file: meta-oe/recipes-graphics/xorg-lib/libxcomposite_0.4.3.bbappend
# new file: meta-oe/recipes-graphics/xorg-lib/libxcursor_1.1.12.bbappend
# new file: meta-oe/recipes-graphics/xorg-lib/libxdamage_1.1.3.bbappend
# new file: meta-oe/recipes-graphics/xorg-lib/libxfixes_5.0.bbappend
# new file: meta-oe/recipes-graphics/xorg-lib/libxrandr_1.3.2.bbappend
# new file: meta-oe/recipes-graphics/xorg-proto/compositeproto_0.4.2.bbappend
# new file: meta-oe/recipes-graphics/xorg-proto/damageproto_1.2.1.bbappend
# new file: meta-oe/recipes-graphics/xorg-proto/fixesproto_5.0.bbappend
# new file: meta-oe/recipes-graphics/xorg-proto/randrproto_1.3.2.bbappend
I'll probably send adding those BBCLASSEXTENDs to oe-core directly instead of meta-oe
because with more .bbappends in meta-oe it will be harder to upgrade oe-core versions.
Cheers,
>
> configure:23318: checking for XOpenDisplay
> configure:23318: gcc -o conftest -DGDK_PIXBUF_DISABLE_DEPRECATED -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -Wall -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 conftest.c -lXext -lXrender -lX11 >&5
> /usr/bin/ld: cannot find -lXrender
> collect2: ld returned 1 exit status
> configure:23318: $? = 1
> configure: failed program was:
> ...
> configure:23318: result: no
> configure:23322: error: *** libX11 not found. Check 'config.log' for more details.
>
> Regards,
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG
2012-02-24 12:32 ` Martin Jansa
@ 2012-02-27 13:12 ` Martin Jansa
0 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2012-02-27 13:12 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 7218 bytes --]
On Fri, Feb 24, 2012 at 01:32:43PM +0100, Martin Jansa wrote:
> On Wed, Feb 15, 2012 at 12:00:44AM +0100, Martin Jansa wrote:
> > oe-core gtk+ has:
> >
> > X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> > DEPENDS = "glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native \
> > libgcrypt cairo gdk-pixbuf"
> > PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
> >
> > meta-oe adds BBCLASSEXTEND = "native"
> > because gtk+-native-2* is needed for gtk+3 to build:
> > http://git.openembedded.org/meta-openembedded/commit/?id=a4155ac38dce214cbb59f6243b29ca3df76e0d29
> >
> > I would expect that all dependencies added by x11 PACKAGECONFIG will be expanded
> > to -native variants like for every other dependency, but it's not true:
> >
> > gtk-native.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> > gtk-native.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native ${X11DEPENDS}
> > gtk-gative.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native gnu-config-native glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> >
> > gtk-target.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> > gtk-target.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf ${X11DEPENDS}
> > gtk-target.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native libtool-cross gnu-config-native virtual/arm-oe-linux-gnueabi-gcc virtual/arm-oe-linux-gnueabi-compilerlibs virtual/libc glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> >
> > And gtk+-native builds fails to configure because of missing libxrender-native (libx11-native is built by something else probably).
> >
> > configure:23318: checking for XOpenDisplay
> > configure:23318: gcc -o conftest -DGDK_PIXBUF_DISABLE_DEPRECATED -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -Wall -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 conftest.c -lXext -lXrender -lX11 >&5
> > /usr/bin/ld: cannot find -lXrender
> > collect2: ld returned 1 exit status
> > configure:23318: $? = 1
> > configure: failed program was:
> > ...
> > configure:23318: result: no
> > configure:23322: error: *** libX11 not found. Check 'config.log' for more details.
> >
> > Regards,
>
> any idea about this? I'm tired of building virtual/libx11-native and
> libxrender-native manually after each gtk+-native build error :/.
>
> Yes I can fix it in gtk+ bbappend by repeating
> PACKAGECONFIG/DISTRO_FEATURES logic fog DEPENDS_virtclass-native, but
> this seems like bug in PACKAGECONFIG handling and could be in more
> recipes.
I've added bb.error to PACKAGECONFIG handling and virtclass-native
handler and PACKAGECONFIG is executed _always_ after virtclass-native
(or nativesdk), so all dependencies added by PACKAGECONFIG are not
available for virtclass-native handler to process.
With tmp-eglibc/cache removed to force reparse of all recipes I have
this order of handlers:
OE qemux86-64@ ~/oe-core $ grep "\(cairo\)\|\(gtk+\)\|\(libsdl\)\|\(pango\)\|\(xserver-xorg\)" log
ERROR: Executing virtclass-native handle for gtk+
ERROR: Executing PACKAGECONFIG handle for gtk+
ERROR: Executing virtclass-native handle for gtk+-native
ERROR: Executing PACKAGECONFIG handle for gtk+-native
ERROR: Executing virtclass-native handle for gtk+
ERROR: Executing PACKAGECONFIG handle for gtk+
ERROR: Executing virtclass-native handle for gtk+
ERROR: Executing PACKAGECONFIG handle for gtk+
ERROR: Executing virtclass-native handle for libsdl
ERROR: Executing PACKAGECONFIG handle for libsdl
ERROR: Executing virtclass-native handle for libsdl-nativesdk
ERROR: Executing PACKAGECONFIG handle for libsdl-nativesdk
ERROR: Executing virtclass-native handle for pango
ERROR: Executing PACKAGECONFIG handle for pango
ERROR: Executing virtclass-native handle for pango-native
ERROR: Executing PACKAGECONFIG handle for pango-native
ERROR: Executing virtclass-native handle for cairo
ERROR: Executing PACKAGECONFIG handle for cairo
ERROR: Executing virtclass-native handle for cairo-native
ERROR: Executing PACKAGECONFIG handle for cairo-native
ERROR: Executing virtclass-native handle for xserver-xorg
ERROR: Executing PACKAGECONFIG handle for xserver-xorg
ERROR: Executing virtclass-native handle for xserver-xorg-lite
ERROR: Executing PACKAGECONFIG handle for xserver-xorg-lite
ERROR: Executing virtclass-native handle for python-pycairo
ERROR: Executing PACKAGECONFIG handle for gtk+
ERROR: Executing virtclass-native handle for gtk+-native
ERROR: Executing PACKAGECONFIG handle for gtk+-native
ERROR: Executing virtclass-native handle for pango
ERROR: Executing PACKAGECONFIG handle for pango
ERROR: Executing virtclass-native handle for pango-native
ERROR: Executing PACKAGECONFIG handle for pango-native
ERROR: Executing virtclass-native handle for cairo
ERROR: Executing PACKAGECONFIG handle for cairo
ERROR: Executing virtclass-native handle for cairo-native
ERROR: Executing PACKAGECONFIG handle for cairo-native
ERROR: Executing virtclass-native handle for pango
ERROR: Executing PACKAGECONFIG handle for pango
ERROR: Executing virtclass-native handle for cairo
ERROR: Executing PACKAGECONFIG handle for cairo
Can we convert PACKAGECONFIG from anonymous python function in
base.bbclass to handler like native is and somehow define order of
handlers (like with addtask)?
Cheers,
>
> Cheers,
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG
2012-02-14 23:00 Martin Jansa
@ 2012-02-24 12:32 ` Martin Jansa
2012-02-27 13:12 ` Martin Jansa
2012-03-16 16:24 ` Martin Jansa
1 sibling, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2012-02-24 12:32 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 4189 bytes --]
On Wed, Feb 15, 2012 at 12:00:44AM +0100, Martin Jansa wrote:
> oe-core gtk+ has:
>
> X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> DEPENDS = "glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native \
> libgcrypt cairo gdk-pixbuf"
> PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
>
> meta-oe adds BBCLASSEXTEND = "native"
> because gtk+-native-2* is needed for gtk+3 to build:
> http://git.openembedded.org/meta-openembedded/commit/?id=a4155ac38dce214cbb59f6243b29ca3df76e0d29
>
> I would expect that all dependencies added by x11 PACKAGECONFIG will be expanded
> to -native variants like for every other dependency, but it's not true:
>
> gtk-native.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> gtk-native.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native ${X11DEPENDS}
> gtk-gative.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native gnu-config-native glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
>
> gtk-target.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
> gtk-target.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf ${X11DEPENDS}
> gtk-target.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native libtool-cross gnu-config-native virtual/arm-oe-linux-gnueabi-gcc virtual/arm-oe-linux-gnueabi-compilerlibs virtual/libc glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
>
> And gtk+-native builds fails to configure because of missing libxrender-native (libx11-native is built by something else probably).
>
> configure:23318: checking for XOpenDisplay
> configure:23318: gcc -o conftest -DGDK_PIXBUF_DISABLE_DEPRECATED -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -Wall -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 conftest.c -lXext -lXrender -lX11 >&5
> /usr/bin/ld: cannot find -lXrender
> collect2: ld returned 1 exit status
> configure:23318: $? = 1
> configure: failed program was:
> ...
> configure:23318: result: no
> configure:23322: error: *** libX11 not found. Check 'config.log' for more details.
>
> Regards,
any idea about this? I'm tired of building virtual/libx11-native and
libxrender-native manually after each gtk+-native build error :/.
Yes I can fix it in gtk+ bbappend by repeating
PACKAGECONFIG/DISTRO_FEATURES logic fog DEPENDS_virtclass-native, but
this seems like bug in PACKAGECONFIG handling and could be in more
recipes.
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG
@ 2012-02-14 23:00 Martin Jansa
2012-02-24 12:32 ` Martin Jansa
2012-03-16 16:24 ` Martin Jansa
0 siblings, 2 replies; 6+ messages in thread
From: Martin Jansa @ 2012-02-14 23:00 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 3707 bytes --]
oe-core gtk+ has:
X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
DEPENDS = "glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native \
libgcrypt cairo gdk-pixbuf"
PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
meta-oe adds BBCLASSEXTEND = "native"
because gtk+-native-2* is needed for gtk+3 to build:
http://git.openembedded.org/meta-openembedded/commit/?id=a4155ac38dce214cbb59f6243b29ca3df76e0d29
I would expect that all dependencies added by x11 PACKAGECONFIG will be expanded
to -native variants like for every other dependency, but it's not true:
gtk-native.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
gtk-native.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native ${X11DEPENDS}
gtk-gative.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native gnu-config-native glib-2.0-native pango-native atk-native jpeg-native libpng-native gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt-native cairo-native gdk-pixbuf-native virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
gtk-target.env:X11DEPENDS="virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
gtk-target.env:# DEPENDS=pkgconfig-native ${@autotools_dep_prepend(d)}${BASEDEPENDS} glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf ${X11DEPENDS}
gtk-target.env:DEPENDS="pkgconfig-native autoconf-native automake-native libtool-native libtool-cross gnu-config-native virtual/arm-oe-linux-gnueabi-gcc virtual/arm-oe-linux-gnueabi-compilerlibs virtual/libc glib-2.0 pango atk jpeg libpng gtk-doc-native gdk-pixbuf-native docbook-utils-native libgcrypt cairo gdk-pixbuf virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
And gtk+-native builds fails to configure because of missing libxrender-native (libx11-native is built by something else probably).
configure:23318: checking for XOpenDisplay
configure:23318: gcc -o conftest -DGDK_PIXBUF_DISABLE_DEPRECATED -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -Wall -isystem/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -L/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/var/lib/jenkins/jobs/shr-core/workspace/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 conftest.c -lXext -lXrender -lX11 >&5
/usr/bin/ld: cannot find -lXrender
collect2: ld returned 1 exit status
configure:23318: $? = 1
configure: failed program was:
...
configure:23318: result: no
configure:23322: error: *** libX11 not found. Check 'config.log' for more details.
Regards,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-03-29 20:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 16:10 DEPENDS not extended to -native for BBCLASSEXTENDS when added by PACKAGECONFIG Andreas Müller
2012-03-29 20:19 ` Martin Jansa
-- strict thread matches above, loose matches on Subject: below --
2012-02-14 23:00 Martin Jansa
2012-02-24 12:32 ` Martin Jansa
2012-02-27 13:12 ` Martin Jansa
2012-03-16 16:24 ` Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.