Skip to contentSkip to conversation

gtk3/wayland/weston bump

PATCH New Gustavo Zacarias 3 participants 12 messages Mar 9, 2016 – Mar 21, 2016

lore
Share & tools
lore
#0 lore raw

v3 cover gtk3/wayland/weston 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 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 (7):
libepoxy: move outside x11r7 scope
libgtk3: bump to version 3.18.8
pangomm: roll back to version 2.38.1
gtkmm3: bump to version 3.18.0
wayland: bump to version 1.10.0
wayland-protocols: new package
weston: bump to version 1.10.0

 package/Config.in                                  |   2 +
 package/gtkmm3/Config.in                           |  18 +-
 package/gtkmm3/gtkmm3.hash                         |   4 +-
 package/gtkmm3/gtkmm3.mk                           |  13 +-
 .../0001-make-egl-and-glx-conditional.patch        | 319 +++++++++++++++++++++
 .../0002-Forward-egl-cflags-into-epoxy.pc.patch    |  45 +++
 package/libepoxy/0003-Make-egl-conditional.patch   |  59 ++++
 package/libepoxy/Config.in                         |  12 +
 package/libepoxy/libepoxy.mk                       |  32 +++
 .../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 +-
 package/pangomm/pangomm.hash                       |   4 +-
 package/pangomm/pangomm.mk                         |   2 +-
 package/wayland-protocols/Config.in                |   9 +
 package/wayland-protocols/wayland-protocols.hash   |   2 +
 package/wayland-protocols/wayland-protocols.mk     |  15 +
 package/wayland/Config.in                          |   3 +-
 package/wayland/wayland.hash                       |   4 +-
 package/wayland/wayland.mk                         |  18 +-
 package/weston/Config.in                           |   1 +
 package/weston/weston.hash                         |   4 +-
 package/weston/weston.mk                           |   9 +-
 package/x11r7/Config.in                            |   1 -
 package/x11r7/libepoxy/Config.in                   |  13 -
 package/x11r7/libepoxy/libepoxy.mk                 |  16 --
 28 files changed, 585 insertions(+), 207 deletions(-)
 create mode 100644 package/libepoxy/0001-make-egl-and-glx-conditional.patch
 create mode 100644 package/libepoxy/0002-Forward-egl-cflags-into-epoxy.pc.patch
 create mode 100644 package/libepoxy/0003-Make-egl-conditional.patch
 create mode 100644 package/libepoxy/Config.in
 create mode 100644 package/libepoxy/libepoxy.mk
 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
 create mode 100644 package/wayland-protocols/Config.in
 create mode 100644 package/wayland-protocols/wayland-protocols.hash
 create mode 100644 package/wayland-protocols/wayland-protocols.mk
 delete mode 100644 package/x11r7/libepoxy/Config.in
 delete mode 100644 package/x11r7/libepoxy/libepoxy.mk
Signature · 1 line
2.4.10
#1 lore raw

PATCH v3 1/7 libepoxy: move outside x11r7 scope

Move it outside x11r7 scope since it can be built without it with a few patches (sent upstream via github pull request).

Motivation is simple, it's a dependency for newer gtk3 versions which can work with a wayland or broadway backend, and having a full x11 stack is pointless for that scenario.

---
 package/Config.in                                  |   1 +
 .../0001-make-egl-and-glx-conditional.patch        | 319 +++++++++++++++++++++
 .../0002-Forward-egl-cflags-into-epoxy.pc.patch    |  45 +++
 package/libepoxy/0003-Make-egl-conditional.patch   |  59 ++++
 package/libepoxy/Config.in                         |  12 +
 package/libepoxy/libepoxy.mk                       |  32 +++
 package/x11r7/Config.in                            |   1 -
 package/x11r7/libepoxy/Config.in                   |  13 -
 package/x11r7/libepoxy/libepoxy.mk                 |  16 --
 9 files changed, 468 insertions(+), 30 deletions(-)
 create mode 100644 package/libepoxy/0001-make-egl-and-glx-conditional.patch
 create mode 100644 package/libepoxy/0002-Forward-egl-cflags-into-epoxy.pc.patch
 create mode 100644 package/libepoxy/0003-Make-egl-conditional.patch
 create mode 100644 package/libepoxy/Config.in
 create mode 100644 package/libepoxy/libepoxy.mk
 delete mode 100644 package/x11r7/libepoxy/Config.in
 delete mode 100644 package/x11r7/libepoxy/libepoxy.mk
package/Config.in +1 -0
index 24be023..221852e 100644
@@ -900,6 +900,7 @@ menu "Graphics"
 	source "package/libdmtx/Config.in"
 	source "package/libdri2/Config.in"
 	source "package/libdrm/Config.in"
+	source "package/libepoxy/Config.in"
 	source "package/libevas-generic-loaders/Config.in"
 	source "package/libexif/Config.in"
 	source "package/libfm/Config.in"
package/libepoxy/0001-make-egl-and-glx-conditional.patch new file +319 -0

319 lines not on this page · raw message

package/libepoxy/0002-Forward-egl-cflags-into-epoxy.pc.patch new file +45 -0

45 lines not on this page · raw message

package/libepoxy/0003-Make-egl-conditional.patch new file +59 -0

59 lines not on this page · raw message

package/libepoxy/Config.in new file +12 -0
new file mode 100644
index 0000000..c87366a
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LIBEPOXY
+	bool "libepoxy"
+	select BR2_PACKAGE_XUTIL_UTIL_MACROS
+	depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL
+	help
+	  Epoxy is a library for handling OpenGL function pointer
+	  management for you.
+
+	  https://github.com/anholt/libepoxy
+
+comment "libepoxy needs an OpenGL and/or OpenGL EGL backend"
+	depends on !BR2_PACKAGE_HAS_LIBEGL && !BR2_PACKAGE_HAS_LIBGL
package/libepoxy/libepoxy.mk new file +32 -0
new file mode 100644
index 0000000..8e717ce
@@ -0,0 +1,32 @@
+################################################################################
+#
+# libepoxy
+#
+################################################################################
+
+LIBEPOXY_VERSION = v1.3.1
+LIBEPOXY_SITE = $(call github,anholt,libepoxy,$(LIBEPOXY_VERSION))
+LIBEPOXY_INSTALL_STAGING = YES
+# For patches:
+# 0001-make-egl-and-glx-conditional.patch
+# 0002-Forward-egl-cflags-into-epoxy.pc.patch
+LIBEPOXY_AUTORECONF = YES
+LIBEPOXY_DEPENDENCIES = xutil_util-macros
+LIBEPOXY_LICENSE = MIT
+LIBEPOXY_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
+LIBEPOXY_CONF_OPTS += --enable-egl
+LIBEPOXY_DEPENDENCIES += libegl
+else
+LIBEPOXY_CONF_OPTS += --disable-egl
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_LIBGL)$(BR2_PACKAGE_XLIB_LIBX11),yy)
+LIBEPOXY_CONF_OPTS += --enable-egl
+LIBEPOXY_DEPENDENCIES += libgl xlib_libX11
+else
+LIBEPOXY_CONF_OPTS += --disable-glx
+endif
+
+$(eval $(autotools-package))
package/x11r7/Config.in +0 -1
index 381157f..f4d0c80 100644
@@ -15,7 +15,6 @@ if BR2_PACKAGE_XORG7
 	endmenu
 	menu "X11R7 Libraries"
 		source package/x11r7/libxcb/Config.in
-		source package/x11r7/libepoxy/Config.in
 		source package/x11r7/xcb-util/Config.in
 		source package/x11r7/xcb-util-cursor/Config.in
 		source package/x11r7/xcb-util-image/Config.in
package/x11r7/libepoxy/Config.in deleted +0 -13
deleted file mode 100644
index 5628bf7..0000000
@@ -1,13 +0,0 @@
-config BR2_PACKAGE_LIBEPOXY
-	bool "epoxy"
-	select BR2_PACKAGE_XLIB_LIBX11
-	select BR2_PACKAGE_XUTIL_UTIL_MACROS
-	depends on BR2_PACKAGE_HAS_LIBEGL
-	help
-	  Epoxy is a library for handling OpenGL function pointer
-	  management for you.
-
-	  https://github.com/anholt/libepoxy
-
-comment "epoxy needs an OpenGL EGL backend"
-	depends on !BR2_PACKAGE_HAS_LIBEGL
package/x11r7/libepoxy/libepoxy.mk deleted +0 -16
deleted file mode 100644
index 12ddd03..0000000
@@ -1,16 +0,0 @@
-################################################################################
-#
-# libepoxy
-#
-################################################################################
-
-LIBEPOXY_VERSION = v1.3.1
-LIBEPOXY_SITE = $(call github,anholt,libepoxy,$(LIBEPOXY_VERSION))
-LIBEPOXY_INSTALL_STAGING = YES
-LIBEPOXY_AUTORECONF = YES
-LIBEPOXY_DEPENDENCIES = xlib_libX11 xutil_util-macros libegl \
-	$(if $(BR2_PACKAGE_HAS_LIBGL),libgl) host-pkgconf
-LIBEPOXY_LICENSE = MIT
-LIBEPOXY_LICENSE_FILES = COPYING
-
-$(eval $(autotools-package))
Signature · 1 line
2.4.10
#2 lore raw

PATCH v3 1/7 libepoxy: move outside x11r7 scope

Hello,

Quoted 10 lines · Gustavo Zacarias
package/libepoxy/0001-make-egl-and-glx-conditional.patch new file +4 -0
new file mode 100644
index 0000000..9952f38
@@ -0,0 +1,319 @@
+Fetched from pull #81 on github for libepoxy:
+https://github.com/anholt/libepoxy/pull/81/files
+
+Status: not yet upstream.

package/libepoxy/0001-make-egl-and-glx-conditional.patch line 14

Quoted 10 lines
package/libepoxy/0001-make-egl-and-glx-conditional.patch new file +10 -0
+
+From 7eff2bf8e27599c1c94217b2bb1b73d4b7d18e59 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Wed, 6 May 2015 10:45:22 +0200
+Subject: [PATCH 1/4] select platforms based on configuration results
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Andreas M?ller <[email protected]>

This patch should have been 4 separate patches. So I've split it into the 4 original patches, and applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v3 2/7 libgtk3: bump to version 3.18.8

In reply to Gustavo Zacarias

Mark the wayland backend as good again since the bump and consequent protocol version mtach fixes it.

Switch backend selection to choice so that only one can be selected.

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
deleted file mode 100644
index c2f4b4f..0000000
@@ -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
index b310aec..6415aa1 100644
@@ -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.8.sha256sum
+sha256	1c53ef1bb55364698f7183ecd185b547f92f4a3a7abfafd531400232e2e052f8	gtk+-3.18.8.tar.xz
package/libgtk3/libgtk3.mk +4 -11
index d268b56..c2148d1 100644
@@ -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).8
 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.4.10
#4 lore raw

PATCH v3 2/7 libgtk3: bump to version 3.18.8

Hello,

Quoted 4 lines · Gustavo Zacarias

Mark the wayland backend as good again since the bump and consequent protocol version mtach fixes it.

Switch backend selection to choice so that only one can be selected.

Where are you doing this? I don't see the backend selection being changed to a kconfig "choice". Did I miss something?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw

PATCH v3 2/7 libgtk3: bump to version 3.18.8

Quoted 10 lines · Thomas Petazzoni

Hello,

Quoted 4 lines · Gustavo Zacarias

Mark the wayland backend as good again since the bump and consequent protocol version mtach fixes it.

Switch backend selection to choice so that only one can be selected.

Where are you doing this? I don't see the backend selection being changed to a kconfig "choice". Did I miss something?

Hi.
I had a change of heart and forgot to update the comment. It is indeed possible to have multiple backends at once and switch via the GDK_BACKEND env variable.
I'll spin a new set together with the 3.18.9 bump (3.20.x is due right now, but is known to have some kinks on the API side so it might be better to get on it a bit later).
Regards.

#6 lore raw

PATCH v3 3/7 pangomm: roll back to version 2.38.1

In reply to Gustavo Zacarias

2.39.1 (and all odd-numbered versions for y in x.y.z) are development releases not intended for general usage, so roll back to the latest stable version.

---
 package/pangomm/pangomm.hash | 4 ++--
 package/pangomm/pangomm.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/pangomm/pangomm.hash +2 -2
index 39e6a91..f0f1486 100644
@@ -1,2 +1,2 @@
-# From http://ftp.gnome.org/pub/gnome/sources/pangomm/2.39/pangomm-2.39.1.sha256sum
-sha256	10c06bbf12a03963ffe9c697887b57c72f1dac1671d09dba45cecd25db5dc6ed	pangomm-2.39.1.tar.xz
+# From http://ftp.gnome.org/pub/gnome/sources/pangomm/2.38/pangomm-2.38.1.sha256sum
+sha256	effb18505b36d81fc32989a39ead8b7858940d0533107336a30bc3eef096bc8b	pangomm-2.38.1.tar.xz
package/pangomm/pangomm.mk +1 -1
index 42aa99e..0d9b6f8 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PANGOMM_VERSION_MAJOR = 2.39
+PANGOMM_VERSION_MAJOR = 2.38
 PANGOMM_VERSION = $(PANGOMM_VERSION_MAJOR).1
 PANGOMM_SOURCE = pangomm-$(PANGOMM_VERSION).tar.xz
 PANGOMM_SITE = http://ftp.gnome.org/pub/gnome/sources/pangomm/$(PANGOMM_VERSION_MAJOR)
Signature · 1 line
2.4.10
#7 lore raw

PATCH v3 3/7 pangomm: roll back to version 2.38.1

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

2.39.1 (and all odd-numbered versions for y in x.y.z) are development releases not intended for general usage, so roll back to the latest stable version.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

PATCH v3 4/7 gtkmm3: bump to version 3.18.0

In reply to Gustavo Zacarias

Required 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
index 238a8cd..59b1372 100644
@@ -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
index 49e2f76..fcbadab 100644
@@ -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
index 034cdf9..a895d85 100644
@@ -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.4.10
#9 lore raw

PATCH v3 5/7 wayland: bump to version 1.10.0

In reply to Gustavo Zacarias

wayland-scanner host/cross support is now native so drop the funky trick.

---
 package/wayland/Config.in    |  3 ++-
 package/wayland/wayland.hash |  4 ++--
 package/wayland/wayland.mk   | 18 +++---------------
 3 files changed, 7 insertions(+), 18 deletions(-)
package/wayland/Config.in +2 -1
index 857ba73..32718fc 100644
@@ -2,8 +2,9 @@ config BR2_PACKAGE_WAYLAND
 	bool "wayland"
 	depends on !BR2_STATIC_LIBS # dlfcn.h
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	select BR2_PACKAGE_LIBFFI
 	select BR2_PACKAGE_EXPAT
+	select BR2_PACKAGE_LIBFFI
+	select BR2_PACKAGE_LIBXML2
 	help
 	  Wayland is a project to define a protocol for a compositor
 	  to talk to its clients as well as a library implementation
package/wayland/wayland.hash +2 -2
index 316d6b5..c9d0721 100644
@@ -1,2 +1,2 @@
-# From: http://lists.freedesktop.org/archives/wayland-devel/2015-June/022630.html
-sha256  f17c938d1c24fd0a10f650a623a2775d329db3168b5732e498b08388ec776fc8 wayland-1.8.1.tar.xz
+# From https://lists.freedesktop.org/archives/wayland-devel/2016-February/027038.html
+sha256  4bf6e790aa6f50ab3825676282ecd75850ec9c4767af96ecb7127b1f3c3d60dc	wayland-1.10.0.tar.xz
package/wayland/wayland.mk +3 -15
index 4e44fa0..215e70a 100644
@@ -4,28 +4,16 @@
 #
 ################################################################################
 
-WAYLAND_VERSION = 1.8.1
+WAYLAND_VERSION = 1.10.0
 WAYLAND_SITE = http://wayland.freedesktop.org/releases
 WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
 WAYLAND_LICENSE = MIT
 WAYLAND_LICENSE_FILES = COPYING
-
 WAYLAND_INSTALL_STAGING = YES
-WAYLAND_DEPENDENCIES = libffi host-pkgconf host-wayland expat
+WAYLAND_DEPENDENCIES = host-pkgconf host-wayland expat libffi libxml2
 
 # wayland-scanner is only needed for building, not on the target
-WAYLAND_CONF_OPTS = --disable-scanner
-
-# We must provide a specialy-crafted wayland-scanner .pc file
-# which we vampirise and adapt from the host-wayland copy
-define WAYLAND_SCANNER_PC
-	$(INSTALL) -m 0644 -D $(HOST_DIR)/usr/lib/pkgconfig/wayland-scanner.pc \
-		$(STAGING_DIR)/usr/lib/pkgconfig/wayland-scanner.pc
-	$(SED) 's:^prefix=.*:prefix=/usr:' \
-		-e 's:^wayland_scanner=.*:wayland_scanner=$(HOST_DIR)/usr/bin/wayland-scanner:' \
-		$(STAGING_DIR)/usr/lib/pkgconfig/wayland-scanner.pc
-endef
-WAYLAND_POST_INSTALL_STAGING_HOOKS += WAYLAND_SCANNER_PC
+WAYLAND_CONF_OPTS = --disable-scanner --with-host-scanner
 
 # Remove the DTD from the target, it's not needed at runtime
 define WAYLAND_TARGET_CLEANUP
Signature · 1 line
2.4.10
#10 lore raw

PATCH v3 6/7 wayland-protocols: new package

In reply to Gustavo Zacarias

For wayland 1.10+ they're split from wayland core and required by weston.
Hide it behind the wayland package since it's useless independently even though it can be "built" and installed.
And it makes no sense to install to target since they are DTDs used at build-time.

---
 package/Config.in                                |  1 +
 package/wayland-protocols/Config.in              |  9 +++++++++
 package/wayland-protocols/wayland-protocols.hash |  2 ++
 package/wayland-protocols/wayland-protocols.mk   | 15 +++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/wayland-protocols/Config.in
 create mode 100644 package/wayland-protocols/wayland-protocols.hash
 create mode 100644 package/wayland-protocols/wayland-protocols.mk
package/Config.in +1 -0
index 221852e..b6a15c1 100644
@@ -940,6 +940,7 @@ menu "Graphics"
 	source "package/powervr/Config.in"
 	source "package/tiff/Config.in"
 	source "package/wayland/Config.in"
+	source "package/wayland-protocols/Config.in"
 	source "package/webkit/Config.in"
 	source "package/webkitgtk24/Config.in"
 	source "package/webp/Config.in"
package/wayland-protocols/Config.in new file +9 -0
new file mode 100644
index 0000000..8b4dedf
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_WAYLAND_PROTOCOLS
+	bool "wayland-protocols"
+	# Not really... but useless otherwise
+	depends on BR2_PACKAGE_WAYLAND
+	help
+	  Wayland protocols that adds functionality not available in
+	  the Wayland core protocol.
+
+	  http://wayland.freedesktop.org/
package/wayland-protocols/wayland-protocols.hash new file +2 -0
new file mode 100644
index 0000000..f2d5b7f
@@ -0,0 +1,2 @@
+# From https://lists.freedesktop.org/archives/wayland-devel/2015-November/025759.html
+sha256	a538a8e3f999f2722897eb60aa2e2b53d879381b413b630957d58a9acd226def	wayland-protocols-1.0.tar.xz
package/wayland-protocols/wayland-protocols.mk new file +15 -0
new file mode 100644
index 0000000..bb6d52f
@@ -0,0 +1,15 @@
+################################################################################
+#
+# wayland-protocols
+#
+################################################################################
+
+WAYLAND_PROTOCOLS_VERSION = 1.0
+WAYLAND_PROTOCOLS_SITE = http://wayland.freedesktop.org/releases
+WAYLAND_PROTOCOLS_SOURCE = wayland-protocols-$(WAYLAND_PROTOCOLS_VERSION).tar.xz
+WAYLAND_PROTOCOLS_LICENSE = MIT
+WAYLAND_PROTOCOLS_LICENSE_FILES = COPYING
+WAYLAND_PROTOCOLS_INSTALL_STAGING = YES
+WAYLAND_PROTOCOLS_INSTALL_TARGET = NO
+
+$(eval $(autotools-package))
Signature · 1 line
2.4.10
#11 lore raw

PATCH v3 7/7 weston: bump to version 1.10.0

In reply to Gustavo Zacarias
---
 package/weston/Config.in   | 1 +
 package/weston/weston.hash | 4 ++--
 package/weston/weston.mk   | 9 ++++++---
 3 files changed, 9 insertions(+), 5 deletions(-)
package/weston/Config.in +1 -0
index 4c820e9..aaf1706 100644
@@ -6,6 +6,7 @@ comment "weston needs udev and a toolchain w/ locale, threads, dynamic library,
 config BR2_PACKAGE_WESTON
 	bool "weston"
 	select BR2_PACKAGE_WAYLAND
+	select BR2_PACKAGE_WAYLAND_PROTOCOLS
 	select BR2_PACKAGE_LIBXKBCOMMON
 	select BR2_PACKAGE_CAIRO
 	select BR2_PACKAGE_CAIRO_PNG
package/weston/weston.hash +2 -2
index e7bc2bb..ed174e6 100644
@@ -1,2 +1,2 @@
-# From http://lists.freedesktop.org/archives/wayland-devel/2015-June/022416.html
-sha256  8963e69f328e815cec42c58046c4af721476c7541bb7d9edc71740fada5ad312  weston-1.8.0.tar.xz
+# From https://lists.freedesktop.org/archives/wayland-devel/2016-February/027039.html
+sha256  e0b2004d00d8293ddf7903ca283c1746afa9ccb5919ab50fd04397ff472aa5c1  weston-1.10.0.tar.xz
package/weston/weston.mk +6 -3
index 4ad89ce..d818071 100644
@@ -4,14 +4,14 @@
 #
 ################################################################################
 
-WESTON_VERSION = 1.8.0
+WESTON_VERSION = 1.10.0
 WESTON_SITE = http://wayland.freedesktop.org/releases
 WESTON_SOURCE = weston-$(WESTON_VERSION).tar.xz
 WESTON_LICENSE = MIT
 WESTON_LICENSE_FILES = COPYING
 
-WESTON_DEPENDENCIES = host-pkgconf wayland libxkbcommon pixman libpng \
-	jpeg mtdev udev cairo libinput
+WESTON_DEPENDENCIES = host-pkgconf wayland wayland-protocols \
+	libxkbcommon pixman libpng jpeg mtdev udev cairo libinput
 
 WESTON_CONF_OPTS = \
 	--with-dtddir=$(STAGING_DIR)/usr/share/wayland \
@@ -25,6 +25,9 @@ WESTON_CONF_OPTS = \
 	--disable-weston-launch \
 	--disable-colord
 
+WESTON_MAKE_OPTS = \
+	WAYLAND_PROTOCOLS_DATADIR=$(STAGING_DIR)/usr/share/wayland-protocols
+
 ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
 WESTON_DEPENDENCIES += libunwind
 else
Signature · 1 line
2.4.10