gtk+: Add PACKAGECONFIG for directfb
PATCH 1/1 gtk+: Add PACKAGECONFIG for directfb
* building without x11 doesn't work, because it sets default gdkbackend to x11 and then requires cairo-xlib to be available
* checking for CAIRO_BACKEND... no
configure: error: Package requirements (cairo-xlib >= 1.6) were not met:
No package 'cairo-xlib' found
--- meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-gnome/gtk+/gtk+.inc +5 -1
@@ -14,9 +14,13 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \ cairo gdk-pixbuf" -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ +" PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}" +# without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE +PACKAGECONFIG[directfb] = "--with-gdktarget=directfb,,directfb" inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache
Signature · 1 line
1.8.4.3
Hi Martin,
Quoted 25 lines · On Monday 16 December 2013 14:15:25 Martin Jansa wrote:
* building without x11 doesn't work, because it sets default gdkbackend to x11 and then requires cairo-xlib to be available
* checking forCAIRO_BACKEND... no
configure: error: Package requirements (cairo-xlib >= 1.6) were not met:No package 'cairo-xlib' found
Signed-off-by Martin Jansa <[email protected]>--- meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-gnome/gtk+/gtk+.inc index 73d624c..5bf0bfe 100644
meta/recipes-gnome/gtk+/gtk+.inc +0
-0@@ -14,9 +14,13 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandrlibxdamage libxrender DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \ cairo gdk-pixbuf"
-PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11',
'', d)} \ + ${@base_contains('DISTRO_FEATURES', 'directfb',
'directfb', '', d)} \ +"
Quoted 7 lines
PACKAGECONFIG[x11] = "--with-x=yes
--with-gdktarget=x11,--with-x=no,${X11DEPENDS}" +# without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11DISTRO_FEATURE+PACKAGECONFIG[directfb] = "--with-gdktarget=directfb,,directfb"inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache
I was under the impression that directfb support was removed from GTK+ some time ago - is that not the case?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 2 lines · Paul Eggleton
I was under the impression that directfb support was removed from GTK+ some time ago - is that not the case?
This is for the GTK+ 2 recipe that still had DirectFB support. I think it can be best described as barely working, which is why it was removed in GTK+ 3.
As obviously nobody is actually using the DirectFB support in our GTK+ (probably because nobody is maintaining it upstream), we could just make X11 a hard dependency instead of respecting the distro features.
Ross
Quoted 34 lines · Paul Eggleton
Hi Martin,
Quoted 31 lines · On Monday 16 December 2013 14:15:25 Martin Jansa wrote:
* building without x11 doesn't work, because it sets default gdkbackend to x11 and then requires cairo-xlib to be available
* checking forCAIRO_BACKEND... no
configure: error: Package requirements (cairo-xlib >= 1.6) were not met:No package 'cairo-xlib' found
Signed-off-by Martin Jansa <[email protected]>--- meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/meta/recipes-gnome/gtk+/gtk+.inc index 73d624c..5bf0bfe 100644
meta/recipes-gnome/gtk+/gtk+.inc +0
-0@@ -14,9 +14,13 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandrlibxdamage libxrender DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \ cairo gdk-pixbuf"
-PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11',
'', d)} \ + ${@base_contains('DISTRO_FEATURES', 'directfb',
'directfb', '', d)} \ +"PACKAGECONFIG[x11] = "--with-x=yes
--with-gdktarget=x11,--with-x=no,${X11DEPENDS}" +# without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11DISTRO_FEATURE+PACKAGECONFIG[directfb] = "--with-gdktarget=directfb,,directfb"
Quoted 4 lines
Quoted 1 line
inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache
I was under the impression that directfb support was removed from GTK+ some time ago - is that not the case?
Hi,
I must admit that my real motivation is to really disable x11/xlib in gtk+, not to use it with directfb backend (In order to resolve unsatisfied dependency mdbus2 -> vala -> gtk+ in distro without x11 DISTRO_FEATURE). After enabling directfb PACKAGECONFIG in gtk+ _AND_ cairo it builds fine.
I've tested this with dora (gtk+-2.24.20) and master (gtk+-2.24.22)
and both have in configure.ac:
cairo_backend=$gdktarget
AC_ARG_WITH(gdktarget, [ --with-gdktarget=[[x11/win32/quartz/directfb]] select non-default GDK target],
gdktarget=$with_gdktarget)
if test "x$cairo_backend" = "xx11"; then
cairo_backend=xlib
fi
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 5 lines · Martin Jansa
I must admit that my real motivation is to really disable x11/xlib in gtk+, not to use it with directfb backend (In order to resolve unsatisfied dependency mdbus2 -> vala -> gtk+ in distro without x11
DISTRO_FEATURE). After enabling directfb PACKAGECONFIG in gtk+ _AND_ cairo it builds fine.
Why not make vala's GTK+ dependency configurable in some way?
Ross
Quoted 6 lines · Martin Jansa
* building without x11 doesn't work, because it sets default gdkbackend to x11 and then requires cairo-xlib to be available
* checking forCAIRO_BACKEND... no
configure: error: Package requirements (cairo-xlib >= 1.6) were not met:No package 'cairo-xlib' found
I've just noticed that this was merged into daisy branch, can we please get it in master as well?
Quoted 27 lines
Signed-off-by Martin Jansa <[email protected]>--- meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)meta/recipes-gnome/gtk+/gtk+.inc +5
-1@@ -14,9 +14,13 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \ cairo gdk-pixbuf" -PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" +PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ + ${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ +" PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}" +# without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE +PACKAGECONFIG[directfb] = "--with-gdktarget=directfb,,directfb" inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cacheSignature · 1 line
1.8.4.3
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
PATCH v2 1/1 gtk+: Add PACKAGECONFIG for directfb
* building without x11 doesn't work, because it sets default gdkbackend to x11 and then requires cairo-xlib to be available
* checking for CAIRO_BACKEND... no
configure: error: Package requirements (cairo-xlib >= 1.6) were not met:
No package 'cairo-xlib' found
--- meta/recipes-gnome/gtk+/gtk+.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-gnome/gtk+/gtk+.inc +6 -1
@@ -14,9 +14,14 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \ cairo gdk-pixbuf" -PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" +PACKAGECONFIG ??= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ +" PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}" +# without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE +PACKAGECONFIG[directfb] = "--with-gdktarget=directfb,,directfb" inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache
Signature · 1 line
2.0.0