Fixes for qemu, gtk+3
cover Fixes for qemu, gtk+3
Qemu has a non-default PACKAGECONFIG "gtk+", the patch updates that to work with gtk+3. Also included is a fix for the first bug I already found in the gtk+3 "--disable-opengl" patch.
Have good weekend,
Jussi
The following changes since commit 7b9e1f5ad8a427356f2ec516b1718138a7d3c64e:
cmake.bbclass: set the modules directory correctly (2016-06-17 17:14:55 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib jku/qemu-vte
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=jku/qemu-vte
Jussi Kukkonen (2):
gtk+3: Make sure gdkx.h is updated
qemu: Use Gtk+3, add configure patch to find vte
meta/recipes-devtools/qemu/qemu.inc | 2 +- .../qemu/0001-configure-support-vte-2.91.patch | 79 ++++++++++++++++++++++ meta/recipes-devtools/qemu/qemu_2.6.0.bb | 1 + .../0001-Add-disable-opengl-configure-option.patch | 19 +++--- 4 files changed, 91 insertions(+), 10 deletions(-) create mode 100644 meta/recipes-devtools/qemu/qemu/0001-configure-support-vte-2.91.patch
Signature · 1 line
2.1.4
PATCH 1/2 gtk+3: Make sure gdkx.h is updated
Always run the Makefile rule that modifies gdkx.h (for opengl disabling), but only do the modification if the file is not correct already.
--- .../0001-Add-disable-opengl-configure-option.patch | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
meta/recipes-gnome/gtk+/gtk+3/0001-Add-disable-opengl-configure-option.patch +10 -9
@@ -1,4 +1,4 @@ -From c77afa19881d955d759879aeae8bbd88613dd4fe Mon Sep 17 00:00:00 2001 +From 91814d22387370e47384206e67729a26a5729192 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen <[email protected]> Date: Thu, 16 Jun 2016 15:11:34 +0300 Subject: [PATCH] Add --disable-opengl configure option
@@ -28,7 +28,7 @@ Signed-off-by: Jussi Kukkonen <[email protected]> gdk/gdkgl.c | 10 +++++++ gdk/gdkglcontext.c | 6 ++++ gdk/gdkwindow.c | 14 +++++++++- - gdk/x11/Makefile.am | 28 ++++++++++++++++--- + gdk/x11/Makefile.am | 29 ++++++++++++++++--- gdk/x11/gdkdisplay-x11.c | 6 ++-- gdk/x11/gdkscreen-x11.c | 5 ++++ gdk/x11/gdkwindow-x11.c | 4 +++
@@ -41,7 +41,7 @@ Signed-off-by: Jussi Kukkonen <[email protected]> gtk/inspector/general.c | 6 ++++ tests/Makefile.am | 10 +++++-- testsuite/gtk/objects-finalize.c | 2 ++ - 21 files changed, 257 insertions(+), 78 deletions(-) + 21 files changed, 258 insertions(+), 78 deletions(-) create mode 100644 gdk/x11/gdkx-with-gl-context.h create mode 100644 gdk/x11/gdkx-without-gl-context.h delete mode 100644 gdk/x11/gdkx.h
@@ -412,7 +412,7 @@ index c34c113..3025e96 100644 cairo_region_destroy (opaque_region); diff --git a/gdk/x11/Makefile.am b/gdk/x11/Makefile.am -index c488a31..d0aa7ce 100644 +index c488a31..576f8e1 100644 --- a/gdk/x11/Makefile.am +++ b/gdk/x11/Makefile.am @@ -39,8 +39,6 @@ libgdk_x11_la_SOURCES = \
@@ -424,7 +424,7 @@ index c488a31..d0aa7ce 100644 gdkkeys-x11.c \ gdkmain-x11.c \ gdkproperty-x11.c \ -@@ -53,14 +51,30 @@ libgdk_x11_la_SOURCES = \ +@@ -53,14 +51,31 @@ libgdk_x11_la_SOURCES = \ gdkwindow-x11.h \ gdkxftdefaults.c \ gdkxid.c \
@@ -449,14 +449,15 @@ index c488a31..d0aa7ce 100644 +endif + +BUILT_SOURCES = gdkx.h -+ ++.PHONY: gdkx.h +gdkx.h: -+ $(AM_V_GEN) cd $(srcdir) && cp $(GDKX_HEADER) gdkx.h ++ $(AM_V_GEN) cd $(srcdir) \ ++ && (cmp -s $(GDKX_HEADER) gdkx.h || cp $(GDKX_HEADER) gdkx.h ) + libgdkx11include_HEADERS = \ gdkx-autocleanups.h \ gdkx11applaunchcontext.h \ -@@ -74,7 +88,6 @@ libgdkx11include_HEADERS = \ +@@ -74,7 +89,6 @@ libgdkx11include_HEADERS = \ gdkx11display.h \ gdkx11displaymanager.h \ gdkx11dnd.h \
@@ -464,7 +465,7 @@ index c488a31..d0aa7ce 100644 gdkx11keys.h \ gdkx11property.h \ gdkx11screen.h \ -@@ -83,9 +96,16 @@ libgdkx11include_HEADERS = \ +@@ -83,9 +97,16 @@ libgdkx11include_HEADERS = \ gdkx11visual.h \ gdkx11window.h
Signature · 1 line
2.1.4
PATCH 2/2 qemu: Use Gtk+3, add configure patch to find vte
--- meta/recipes-devtools/qemu/qemu.inc | 2 +- .../qemu/0001-configure-support-vte-2.91.patch | 79 ++++++++++++++++++++++ meta/recipes-devtools/qemu/qemu_2.6.0.bb | 1 + 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/qemu/qemu/0001-configure-support-vte-2.91.patch
meta/recipes-devtools/qemu/qemu.inc +1 -1
@@ -119,7 +119,7 @@ PACKAGECONFIG[libcurl] = "--enable-curl,--disable-curl,libcurl," PACKAGECONFIG[nss] = "--enable-smartcard,--disable-smartcard,nss," PACKAGECONFIG[uuid] = "--enable-uuid,--disable-uuid,util-linux," PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses," -PACKAGECONFIG[gtk+] = "--enable-gtk --enable-vte,--disable-gtk --disable-vte,gtk+ libvte," +PACKAGECONFIG[gtk+] = "--enable-gtk --with-gtkabi=3.0 --enable-vte,--disable-gtk --disable-vte,gtk+3 vte" PACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng," PACKAGECONFIG[ssh2] = "--enable-libssh2,--disable-libssh2,libssh2," PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,gcrypt,"
meta/recipes-devtools/qemu/qemu/0001-configure-support-vte-2.91.patch new file +79 -0
79 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu_2.6.0.bb +1 -0
@@ -9,6 +9,7 @@ SRC_URI += "file://configure-fix-Darwin-target-detection.patch \ file://no-valgrind.patch \ file://pathlimit.patch \ file://qemu-2.5.0-cflags.patch \ + file://0001-configure-support-vte-2.91.patch \ " SRC_URI_prepend = "http://wiki.qemu-project.org/download/${BP}.tar.bz2"
Signature · 1 line
2.1.4
Re: [PATCH 1/2] gtk+3: Make sure gdkx.h is updated
In reply to Jussi KukkonenQuoted 4 lines · Jussi Kukkonen
Always run the
Makefilerule that modifiesgdkx.h(for opengl disabling), but only do the modification if the file is not correct already.
Please don't take this patch: I'll include it in a bigger update.
The qemu patch (2/2) is still good.
Thanks,
Jussi
Quoted 87 lines
--- .../0001-Add-disable-opengl-configure-option.patch | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)diff --git
a/meta/recipes-gnome/gtk+/gtk+3/0001-Add-disable-opengl-configure-option.patchb/meta/recipes-gnome/gtk+/gtk+3/0001-Add-disable-opengl-configure-option.patchindex a963334..2306614 100644
---a/meta/recipes-gnome/gtk+/gtk+3/0001-Add-disable-opengl-configure-option.patch
+++b/meta/recipes-gnome/gtk+/gtk+3/0001-Add-disable-opengl-configure-option.patchmeta/recipes-gnome/gtk+/gtk+3/0001-Add-disable-opengl-configure-option.patch +10
-10@@ -1,4 +1,4 @@ -From c77afa19881d955d759879aeae8bbd88613dd4fe Mon Sep 17 00:00:00 2001 +From 91814d22387370e47384206e67729a26a5729192 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen <[email protected]> Date: Thu, 16 Jun 2016 15:11:34 +0300 Subject: [PATCH] Add --disable-opengl configure option@@ -28,7 +28,7 @@ Signed-off-by: Jussi Kukkonen <[email protected]> gdk/gdkgl.c | 10 +++++++ gdk/gdkglcontext.c | 6 ++++ gdk/gdkwindow.c | 14 +++++++++- - gdk/x11/Makefile.am | 28 ++++++++++++++++--- + gdk/x11/Makefile.am | 29 ++++++++++++++++--- gdk/x11/gdkdisplay-x11.c | 6 ++-- gdk/x11/gdkscreen-x11.c | 5 ++++ gdk/x11/gdkwindow-x11.c | 4 +++@@ -41,7 +41,7 @@ Signed-off-by: Jussi Kukkonen <[email protected]> gtk/inspector/general.c | 6 ++++ tests/Makefile.am | 10 +++++-- testsuite/gtk/objects-finalize.c | 2 ++ - 21 files changed, 257 insertions(+), 78 deletions(-) + 21 files changed, 258 insertions(+), 78 deletions(-) create mode 100644 gdk/x11/gdkx-with-gl-context.h create mode 100644 gdk/x11/gdkx-without-gl-context.h delete mode 100644 gdk/x11/gdkx.h@@ -412,7 +412,7 @@ index c34c113..3025e96 100644 cairo_region_destroy (opaque_region); diff --git a/gdk/x11/Makefile.am b/gdk/x11/Makefile.am -index c488a31..d0aa7ce 100644 +index c488a31..576f8e1 100644 --- a/gdk/x11/Makefile.am +++ b/gdk/x11/Makefile.am @@ -39,8 +39,6 @@ libgdk_x11_la_SOURCES = \@@ -424,7 +424,7 @@ index c488a31..d0aa7ce 100644 gdkkeys-x11.c \ gdkmain-x11.c \ gdkproperty-x11.c \ -@@ -53,14 +51,30 @@ libgdk_x11_la_SOURCES = \ +@@ -53,14 +51,31 @@ libgdk_x11_la_SOURCES = \ gdkwindow-x11.h \ gdkxftdefaults.c \ gdkxid.c \@@ -449,14 +449,15 @@ index c488a31..d0aa7ce 100644 +endif + +BUILT_SOURCES = gdkx.h -+ ++.PHONY: gdkx.h +gdkx.h: -+ $(AM_V_GEN) cd $(srcdir) && cp $(GDKX_HEADER) gdkx.h ++ $(AM_V_GEN) cd $(srcdir) \ ++ && (cmp -s $(GDKX_HEADER) gdkx.h || cp $(GDKX_HEADER) gdkx.h ) + libgdkx11include_HEADERS = \ gdkx-autocleanups.h \ gdkx11applaunchcontext.h \ -@@ -74,7 +88,6 @@ libgdkx11include_HEADERS = \ +@@ -74,7 +89,6 @@ libgdkx11include_HEADERS = \ gdkx11display.h \ gdkx11displaymanager.h \ gdkx11dnd.h \@@ -464,7 +465,7 @@ index c488a31..d0aa7ce 100644 gdkx11keys.h \ gdkx11property.h \ gdkx11screen.h \ -@@ -83,9 +96,16 @@ libgdkx11include_HEADERS = \ +@@ -83,9 +97,16 @@ libgdkx11include_HEADERS = \ gdkx11visual.h \ gdkx11window.h --2.1.4