gtk3 bump
v4 cover gtk3 bump
Bump libgtk3, companion gtkmm3 and wayland/weston to latest versions. Add wayland-protocols which is now split from wayland and required for weston to build since the 1.10+ releases.
The pangomm downgrade can be applied separately without issues.
The gtkmm3 bump is tied to the libgtk3 bump.
libgtk3 now requires an EGL/GLX backend via libepoxy, that's the upstream take on the subject. When there's no hardware GL support mesa with swrast can be used (hence the reason for the libepoxy patches, to support x11-less builds, for example for wayland).
Re-enable libgtk3 wayland support: xdg protocol is normally version-matched among them, so in the future care must be taken when bumping one of them to a newer major version. The failure is only exhibited at runtime - not at build time.
Changes for v4:
+ Only libgtk3/gtkmm3 patches remain, the rest applied
+ Bump to libgtk3 3.18.9
+ Drop choice comment from libgtk3 commit msg
Changes for v3:
+ Newer libgtk3
+ Newer wayland/weston + wayland-protocols (new package)
+ Enhanced libepoxy package/patchset to build with GLX alone, and use the github efforts at EGL-alone.
Changes for v2:
+ Bump gtkmm3 as well
+ Drop target_os/host_os patch to libepoxy since it's dubious and not required.
+ Roll back pangomm version to stable branch.
Gustavo Zacarias (2):
libgtk3: bump to version 3.18.9
gtkmm3: bump to version 3.18.0
package/gtkmm3/Config.in | 18 +++-- package/gtkmm3/gtkmm3.hash | 4 +- package/gtkmm3/gtkmm3.mk | 13 +--- .../0004-Fix-undefined-reference-to-get_xkb.patch | 33 -------- .../0005-do-not-build-extract-strings.patch | 47 ------------ package/libgtk3/Config.in | 88 +++++++++++++--------- package/libgtk3/libgtk3.hash | 4 +- package/libgtk3/libgtk3.mk | 15 +--- 8 files changed, 71 insertions(+), 151 deletions(-) delete mode 100644 package/libgtk3/0004-Fix-undefined-reference-to-get_xkb.patch delete mode 100644 package/libgtk3/0005-do-not-build-extract-strings.patch
Signature · 1 line
2.7.3
PATCH v4 1/2 libgtk3: bump to version 3.18.9
Mark the wayland backend as good again since the bump and consequent protocol version match fixes it.
Drop upstream 0004-Fix-undefined-reference-to-get_xkb.patch
Drop unnecessary 0005-do-not-build-extract-strings.patch (extract-strings doesn't exist any more).
--- .../0004-Fix-undefined-reference-to-get_xkb.patch | 33 -------- .../0005-do-not-build-extract-strings.patch | 47 ------------ package/libgtk3/Config.in | 88 +++++++++++++--------- package/libgtk3/libgtk3.hash | 4 +- package/libgtk3/libgtk3.mk | 15 +--- 5 files changed, 57 insertions(+), 130 deletions(-) delete mode 100644 package/libgtk3/0004-Fix-undefined-reference-to-get_xkb.patch delete mode 100644 package/libgtk3/0005-do-not-build-extract-strings.patch
package/libgtk3/0004-Fix-undefined-reference-to-get_xkb.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From b64a04250b1f35923434158beb6ddb5726b41eac Mon Sep 17 00:00:00 2001 -From: Eric Le Bihan <[email protected]> -Date: Mon, 27 Oct 2014 10:34:38 +0100 -Subject: [PATCH 1/1] Fix undefined reference to get_xkb() - -When configuring Gtk+ with --disable-xkb, the build fails because of an -undefined reference to get_xkb(). - -This patch fixes this issue. - -Signed-off-by: Eric Le Bihan <[email protected]> ---- - gdk/x11/gdkkeys-x11.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c -index c45a971..6a5481b 100644 ---- a/gdk/x11/gdkkeys-x11.c -+++ b/gdk/x11/gdkkeys-x11.c -@@ -1498,8 +1498,10 @@ gdk_x11_keymap_map_virtual_modifiers (GdkKeymap *keymap, - int i, j; - gboolean retval; - -+#ifdef HAVE_XKB - if (KEYMAP_USE_XKB (keymap)) - get_xkb (keymap_x11); -+#endif - - retval = TRUE; - --- -1.9.1 -
package/libgtk3/0005-do-not-build-extract-strings.patch deleted +0 -47
47 lines not on this page · raw message
package/libgtk3/Config.in +51 -37
126 lines not on this page · raw message
package/libgtk3/libgtk3.hash +2 -2
@@ -1,2 +1,2 @@ -# From http://ftp.gnome.org/pub/gnome/sources/gtk+/3.14/gtk+-3.14.15.sha256sum -sha256 3ac87659112ced9e5ee5bd55d055faa881aafd040f26ca40b0d8ba0fa6509c83 gtk+-3.14.15.tar.xz +# From http://ftp.gnome.org/pub/gnome/sources/gtk+/3.18/gtk+-3.18.9.sha256sum +sha256 783d7f8b00f9b4224cc94d7da885a67598e711c2d6d79c9c873c6b203e83acbd gtk+-3.18.9.tar.xz
package/libgtk3/libgtk3.mk +4 -11
@@ -4,8 +4,8 @@ # ################################################################################ -LIBGTK3_VERSION_MAJOR = 3.14 -LIBGTK3_VERSION = $(LIBGTK3_VERSION_MAJOR).15 +LIBGTK3_VERSION_MAJOR = 3.18 +LIBGTK3_VERSION = $(LIBGTK3_VERSION_MAJOR).9 LIBGTK3_SOURCE = gtk+-$(LIBGTK3_VERSION).tar.xz LIBGTK3_SITE = http://ftp.gnome.org/pub/gnome/sources/gtk+/$(LIBGTK3_VERSION_MAJOR) LIBGTK3_LICENSE = LGPLv2+
@@ -24,7 +24,7 @@ LIBGTK3_CONF_OPTS = \ --enable-gtk2-dependency \ --disable-introspection -LIBGTK3_DEPENDENCIES = host-pkgconf host-libgtk3 atk libglib2 cairo pango gdk-pixbuf +LIBGTK3_DEPENDENCIES = host-pkgconf host-libgtk3 atk libglib2 cairo pango gdk-pixbuf libepoxy ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y) LIBGTK3_DEPENDENCIES += fontconfig xlib_libX11 xlib_libXext xlib_libXrender xlib_libXi
@@ -136,8 +136,7 @@ LIBGTK3_POST_INSTALL_TARGET_HOOKS += LIBGTK3_COMPILE_GLIB_SCHEMAS # for both native and target builds). # # But no native version of libintl is available (the functions are -# provided by glibc). So gtk-update-icon-cache will not build, and -# extract-strings neither. +# provided by glibc). So gtk-update-icon-cache will not build. # # As a workaround, we build gtk-update-icon-cache on our own, set # --enable-gtk2-dependency=yes and force './configure' to use our version.
@@ -162,17 +161,11 @@ define HOST_LIBGTK3_BUILD_CMDS $(@D)/gtk/updateiconcache.c \ $(HOST_LIBGTK3_CFLAGS) \ -o $(@D)/gtk/gtk-update-icon-cache - $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \ - $(@D)/util/extract-strings.c \ - $(HOST_LIBGTK3_CFLAGS) \ - -o $(@D)/util/extract-strings endef define HOST_LIBGTK3_INSTALL_CMDS $(INSTALL) -D -m 0755 $(@D)/gtk/gtk-update-icon-cache \ $(HOST_DIR)/usr/bin/gtk-update-icon-cache - $(INSTALL) -D -m 0755 $(@D)/util/extract-strings \ - $(HOST_DIR)/usr/bin/extract-strings endef $(eval $(autotools-package))
Signature · 1 line
2.7.3
Thomas Petazzoni
AppliedPATCH v4 1/2 libgtk3: bump to version 3.18.9
Hello,
Quoted 9 lines · Gustavo Zacarias
Mark the wayland backend as good again since the bump and consequent protocol version match fixes it.
Drop upstream 0004-Fix-undefined-reference-to-get_xkb.patch
Drop unnecessary 0005-do-not-build-extract-strings.patch (extract-strings doesn't exist any more).
Signed-off-by Gustavo Zacarias <[email protected]>
Quoted 9 lines
--- .../0004-Fix-undefined-reference-to-get_xkb.patch | 33 -------- .../0005-do-not-build-extract-strings.patch | 47 ------------ package/libgtk3/Config.in | 88 +++++++++++++--------- package/libgtk3/libgtk3.hash | 4 +- package/libgtk3/libgtk3.mk | 15 +--- 5 files changed, 57 insertions(+), 130 deletions(-) delete mode 100644 package/libgtk3/0004-Fix-undefined-reference-to-get_xkb.patch delete mode 100644 package/libgtk3/0005-do-not-build-extract-strings.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v4 2/2 gtkmm3: bump to version 3.18.0
In reply to Gustavo ZacariasRequired to nicely match the previous libgtk3 major version bump.
--- package/gtkmm3/Config.in | 18 +++++++++++------- package/gtkmm3/gtkmm3.hash | 4 ++-- package/gtkmm3/gtkmm3.mk | 13 +------------ 3 files changed, 14 insertions(+), 21 deletions(-)
package/gtkmm3/Config.in +11 -7
@@ -1,3 +1,12 @@ +comment "gtkmm3 needs a toolchain w/ C++, wchar, threads, gcc >= 4.8" + depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_SYNC_4 + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR \ + || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS + +comment "gtkmm3 needs an OpenGL EGL backend" + depends on !BR2_PACKAGE_HAS_LIBEGL + config BR2_PACKAGE_GTKMM3 bool "gtkmm3" # Broken on existing external/internal nios2 toolchains,
@@ -11,19 +20,14 @@ config BR2_PACKAGE_GTKMM3 depends on BR2_TOOLCHAIN_HAS_THREADS # *mm/libgtk3 -> libglib2 depends on BR2_USE_MMU # *mm/libgtk3 -> libglib2 depends on BR2_USE_WCHAR # *mm/libgtk3 -> libglib2 + depends on BR2_PACKAGE_HAS_LIBEGL # libgtk3 -> libepoxy + select BR2_PACKAGE_LIBGTK3 select BR2_PACKAGE_ATKMM select BR2_PACKAGE_CAIROMM select BR2_PACKAGE_GLIBMM - select BR2_PACKAGE_LIBGTK3 select BR2_PACKAGE_LIBSIGC select BR2_PACKAGE_PANGOMM help The gtkmm3 package is a set of C++ bindings for GTK 3. http://www.gtkmm.org/ - -comment "gtkmm3 needs a toolchain w/ C++, wchar, threads, gcc >= 4.8" - depends on BR2_USE_MMU - depends on BR2_TOOLCHAIN_HAS_SYNC_4 - depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR \ - || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
package/gtkmm3/gtkmm3.hash +2 -2
@@ -1,2 +1,2 @@ -# From http://ftp.gnome.org/pub/GNOME/sources/gtkmm/3.14/gtkmm-3.14.0.sha256sum -sha256 d9f528a62c6ec226fa08287c45c7465b2dce5aae5068e9ac48d30a64a378e48b gtkmm-3.14.0.tar.xz +# From http://ftp.gnome.org/pub/GNOME/sources/gtkmm/3.18/gtkmm-3.18.0.sha256sum +sha256 829fa113daed74398c49c3f2b7672807f58ba85d0fa463f5bc726e1b0138b86b gtkmm-3.18.0.tar.xz
package/gtkmm3/gtkmm3.mk +1 -12
@@ -4,7 +4,7 @@ # ################################################################################ -GTKMM3_VERSION_MAJOR = 3.14 +GTKMM3_VERSION_MAJOR = 3.18 GTKMM3_VERSION = $(GTKMM3_VERSION_MAJOR).0 GTKMM3_SOURCE = gtkmm-$(GTKMM3_VERSION).tar.xz GTKMM3_SITE = http://ftp.gnome.org/pub/gnome/sources/gtkmm/$(GTKMM3_VERSION_MAJOR)
@@ -13,15 +13,4 @@ GTKMM3_LICENSE_FILES = COPYING COPYING.tools GTKMM3_INSTALL_STAGING = YES GTKMM3_DEPENDENCIES = atkmm cairomm glibmm libgtk3 libsigc pangomm host-pkgconf -# Explicit use of C++11 to build with newer *mm dependencies that require C++11. -# -# The most recent release of *mm-related libraries require C++11. This project's -# dependencies (ex. libpangomm) are updated and enforce the C++11 standard. -# Since the gtkmm3 must match the libgtk3 version, the useable version of -# gtkmm3 does not have this enforcement; however, to build with the most -# recent version of the dependencies, gtkmm3 requires to be built with -# `-std=c++11`. The following enforces C++11 standard. When libgtk3 is updated, -# followed by a gtkmm3 update, this flag modification can be removed. -GTKMM3_CONF_ENV = CPPFLAGS="$(TARGET_CPPFLAGS) -std=c++11" - $(eval $(autotools-package))
Signature · 1 line
2.7.3
PATCH v4 2/2 gtkmm3: bump to version 3.18.0
Hello,
package/gtkmm3/Config.in config BR2_PACKAGE_GTKMM3 · line 17
Quoted 11 lines · Gustavo Zacarias
package/gtkmm3/Config.in +2
-1# Broken on existing external/internal nios2 toolchains,@@ -11,19 +20,14 @@ config BR2_PACKAGE_GTKMM3 depends on BR2_TOOLCHAIN_HAS_THREADS # *mm/libgtk3 -> libglib2 depends on BR2_USE_MMU # *mm/libgtk3 -> libglib2 depends on BR2_USE_WCHAR # *mm/libgtk3 -> libglib2 + depends on BR2_PACKAGE_HAS_LIBEGL # libgtk3 -> libepoxy + select BR2_PACKAGE_LIBGTK3 select BR2_PACKAGE_ATKMM select BR2_PACKAGE_CAIROMM select BR2_PACKAGE_GLIBMM - select BR2_PACKAGE_LIBGTK3
I'm not sure why you changed the location of this select, which used to be nicely alphabetically sorted. I've reverted to the old ordering, and applied your patch to master, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com