* [PATCH] gtk+: Add PACKAGECONFIG for directfb
@ 2013-12-16 13:15 Martin Jansa
2013-12-16 13:23 ` Paul Eggleton
2014-07-02 12:35 ` Martin Jansa
0 siblings, 2 replies; 7+ messages in thread
From: Martin Jansa @ 2013-12-16 13:15 UTC (permalink / raw)
To: openembedded-core
* 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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
index 73d624c..5bf0bfe 100644
--- a/meta/recipes-gnome/gtk+/gtk+.inc
+++ b/meta/recipes-gnome/gtk+/gtk+.inc
@@ -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
--
1.8.4.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] gtk+: Add PACKAGECONFIG for directfb
2013-12-16 13:15 [PATCH] gtk+: Add PACKAGECONFIG for directfb Martin Jansa
@ 2013-12-16 13:23 ` Paul Eggleton
2013-12-16 13:50 ` Burton, Ross
2013-12-16 13:52 ` Martin Jansa
2014-07-02 12:35 ` Martin Jansa
1 sibling, 2 replies; 7+ messages in thread
From: Paul Eggleton @ 2013-12-16 13:23 UTC (permalink / raw)
To: Martin Jansa; +Cc: openembedded-core
Hi Martin,
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 for CAIRO_BACKEND... no
> configure: error: Package requirements (cairo-xlib >= 1.6) were not met:
>
> No package 'cairo-xlib' found
>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-gnome/gtk+/gtk+.inc
> b/meta/recipes-gnome/gtk+/gtk+.inc index 73d624c..5bf0bfe 100644
> --- a/meta/recipes-gnome/gtk+/gtk+.inc
> +++ b/meta/recipes-gnome/gtk+/gtk+.inc
> @@ -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
I was under the impression that directfb support was removed from GTK+ some
time ago - is that not the case?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gtk+: Add PACKAGECONFIG for directfb
2013-12-16 13:23 ` Paul Eggleton
@ 2013-12-16 13:50 ` Burton, Ross
2013-12-16 13:52 ` Martin Jansa
1 sibling, 0 replies; 7+ messages in thread
From: Burton, Ross @ 2013-12-16 13:50 UTC (permalink / raw)
To: Paul Eggleton; +Cc: OE-core
On 16 December 2013 13:23, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gtk+: Add PACKAGECONFIG for directfb
2013-12-16 13:23 ` Paul Eggleton
2013-12-16 13:50 ` Burton, Ross
@ 2013-12-16 13:52 ` Martin Jansa
2013-12-16 13:52 ` Burton, Ross
1 sibling, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2013-12-16 13:52 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2531 bytes --]
On Mon, Dec 16, 2013 at 01:23:56PM +0000, Paul Eggleton wrote:
> Hi Martin,
>
> 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 for CAIRO_BACKEND... no
> > configure: error: Package requirements (cairo-xlib >= 1.6) were not met:
> >
> > No package 'cairo-xlib' found
> >
> > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > ---
> > meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++-
> > 1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-gnome/gtk+/gtk+.inc
> > b/meta/recipes-gnome/gtk+/gtk+.inc index 73d624c..5bf0bfe 100644
> > --- a/meta/recipes-gnome/gtk+/gtk+.inc
> > +++ b/meta/recipes-gnome/gtk+/gtk+.inc
> > @@ -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
>
> 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
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gtk+: Add PACKAGECONFIG for directfb
2013-12-16 13:52 ` Martin Jansa
@ 2013-12-16 13:52 ` Burton, Ross
0 siblings, 0 replies; 7+ messages in thread
From: Burton, Ross @ 2013-12-16 13:52 UTC (permalink / raw)
To: Martin Jansa; +Cc: Paul Eggleton, OE-core
On 16 December 2013 13:52, Martin Jansa <martin.jansa@gmail.com> wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gtk+: Add PACKAGECONFIG for directfb
2013-12-16 13:15 [PATCH] gtk+: Add PACKAGECONFIG for directfb Martin Jansa
2013-12-16 13:23 ` Paul Eggleton
@ 2014-07-02 12:35 ` Martin Jansa
2014-07-02 12:36 ` [PATCHv2] " Martin Jansa
1 sibling, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2014-07-02 12:35 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]
On Mon, Dec 16, 2013 at 02:15:25PM +0100, 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 for CAIRO_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?
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
> meta/recipes-gnome/gtk+/gtk+.inc | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
> index 73d624c..5bf0bfe 100644
> --- a/meta/recipes-gnome/gtk+/gtk+.inc
> +++ b/meta/recipes-gnome/gtk+/gtk+.inc
> @@ -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
>
> --
> 1.8.4.3
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCHv2] gtk+: Add PACKAGECONFIG for directfb
2014-07-02 12:35 ` Martin Jansa
@ 2014-07-02 12:36 ` Martin Jansa
0 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2014-07-02 12:36 UTC (permalink / raw)
To: openembedded-core
* 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
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
meta/recipes-gnome/gtk+/gtk+.inc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
index dd1fa1b..390a582 100644
--- a/meta/recipes-gnome/gtk+/gtk+.inc
+++ b/meta/recipes-gnome/gtk+/gtk+.inc
@@ -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
--
2.0.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-07-02 12:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 13:15 [PATCH] gtk+: Add PACKAGECONFIG for directfb Martin Jansa
2013-12-16 13:23 ` Paul Eggleton
2013-12-16 13:50 ` Burton, Ross
2013-12-16 13:52 ` Martin Jansa
2013-12-16 13:52 ` Burton, Ross
2014-07-02 12:35 ` Martin Jansa
2014-07-02 12:36 ` [PATCHv2] " Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox