All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3
@ 2014-06-18 16:19 Hadrien Boutteville
  2014-06-18 16:19 ` [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0 Hadrien Boutteville
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Hadrien Boutteville @ 2014-06-18 16:19 UTC (permalink / raw)
  To: buildroot

Hello all,

I'm currently packaging libgtk3 (work in progress, patch soon), and
this series bumps pango and libglib2 as it is necessary for libgtk3, and
add Freetype support to Cairo.

This series is juste compiled-tested, so it's mostly an RFC. I will do
running tests with libgtk3 and libgtk2.

Regards,

Hadrien

Hadrien Boutteville (3):
  libglib2: bump to version 2.40.0
  pango: bump to version 1.36.3
  cairo: add freetype dependency for freetype support

 package/cairo/cairo.mk                             |   7 +
 ...ror-format-string-errors-from-mismatched-.patch |  56 ---
 package/libglib2/libglib2-0002-no-gtk-doc.patch    |  11 +
 package/libglib2/libglib2.mk                       |   4 +-
 package/pango/Config.in                            |   1 +
 package/pango/pango-0001-no-tests.patch            |  21 +
 package/pango/pango-0002-no-gtk-doc.patch          |  11 +
 package/pango/pango-no-const-return.patch          | 475 ---------------------
 package/pango/pango-no-tests.patch                 |  22 -
 package/pango/pango.mk                             |  19 +-
 10 files changed, 63 insertions(+), 564 deletions(-)
 delete mode 100644 package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
 create mode 100644 package/libglib2/libglib2-0002-no-gtk-doc.patch
 create mode 100644 package/pango/pango-0001-no-tests.patch
 create mode 100644 package/pango/pango-0002-no-gtk-doc.patch
 delete mode 100644 package/pango/pango-no-const-return.patch
 delete mode 100644 package/pango/pango-no-tests.patch

-- 
2.0.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0
  2014-06-18 16:19 [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Hadrien Boutteville
@ 2014-06-18 16:19 ` Hadrien Boutteville
  2014-06-18 20:08   ` Thomas De Schampheleire
  2014-06-18 16:19 ` [Buildroot] [PATCH 2/3] pango: bump to version 1.36.3 Hadrien Boutteville
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Hadrien Boutteville @ 2014-06-18 16:19 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 ...ror-format-string-errors-from-mismatched-.patch | 56 ----------------------
 package/libglib2/libglib2-0002-no-gtk-doc.patch    | 11 +++++
 package/libglib2/libglib2.mk                       |  4 +-
 3 files changed, 13 insertions(+), 58 deletions(-)
 delete mode 100644 package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
 create mode 100644 package/libglib2/libglib2-0002-no-gtk-doc.patch

diff --git a/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch b/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
deleted file mode 100644
index 9b87d9d..0000000
--- a/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 0167c3340d8201dca8e9031b61703bbc5ed6ce33 Mon Sep 17 00:00:00 2001
-From: Jan Schmidt <thaytan@noraisin.net>
-Date: Wed, 25 Sep 2013 19:22:26 +1000
-Subject: [PATCH] gio: Fix -Werror format string errors from mismatched ints.
-
-Upstream-Status: Backport
-
----
- gio/gdbusmessage.c | 8 ++++----
- gio/gdbusprivate.c | 4 ++--
- 2 files changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
-index ac233a3..ad77aa6 100644
---- a/gio/gdbusmessage.c
-+++ b/gio/gdbusmessage.c
-@@ -3468,10 +3468,10 @@ g_dbus_message_print (GDBusMessage *message,
-                                           statbuf.st_mode);
-                   g_string_append_printf (fs, "%s" "ino=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "",
-                                           (guint64) statbuf.st_ino);
--                  g_string_append_printf (fs, "%s" "uid=%d", fs->len > 0 ? "," : "",
--                                          statbuf.st_uid);
--                  g_string_append_printf (fs, "%s" "gid=%d", fs->len > 0 ? "," : "",
--                                          statbuf.st_gid);
-+                  g_string_append_printf (fs, "%s" "uid=%u", fs->len > 0 ? "," : "",
-+                                          (guint) statbuf.st_uid);
-+                  g_string_append_printf (fs, "%s" "gid=%u", fs->len > 0 ? "," : "",
-+                                          (guint) statbuf.st_gid);
-                   g_string_append_printf (fs, "%s" "rdev=%d:%d", fs->len > 0 ? "," : "",
-                                           major (statbuf.st_rdev), minor (statbuf.st_rdev));
-                   g_string_append_printf (fs, "%s" "size=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "",
-diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
-index 0e5bef2..785a0c0 100644
---- a/gio/gdbusprivate.c
-+++ b/gio/gdbusprivate.c
-@@ -2155,7 +2155,7 @@ write_message_print_transport_debug (gssize bytes_written,
-   _g_dbus_debug_print_lock ();
-   g_print ("========================================================================\n"
-            "GDBus-debug:Transport:\n"
--           "  >>>> WROTE %" G_GSIZE_FORMAT " bytes of message with serial %d and\n"
-+           "  >>>> WROTE %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n"
-            "       size %" G_GSIZE_FORMAT " from offset %" G_GSIZE_FORMAT " on a %s\n",
-            bytes_written,
-            g_dbus_message_get_serial (data->message),
-@@ -2206,7 +2206,7 @@ read_message_print_transport_debug (gssize bytes_read,
-     _g_dbus_debug_print_lock ();
-   g_print ("========================================================================\n"
-            "GDBus-debug:Transport:\n"
--           "  <<<< READ %" G_GSIZE_FORMAT " bytes of message with serial %d and\n"
-+           "  <<<< READ %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n"
-            "       size %d to offset %" G_GSIZE_FORMAT " from a %s\n",
-            bytes_read,
-            serial,
--- 
-1.8.3.1
-
diff --git a/package/libglib2/libglib2-0002-no-gtk-doc.patch b/package/libglib2/libglib2-0002-no-gtk-doc.patch
new file mode 100644
index 0000000..0c12ee4
--- /dev/null
+++ b/package/libglib2/libglib2-0002-no-gtk-doc.patch
@@ -0,0 +1,11 @@
+--- a/gtk-doc.make
++++ b/gtk-doc.make
+@@ -267,7 +267,7 @@
+ #
+ # Require gtk-doc when making dist
+ #
+-if HAVE_GTK_DOC
++if ENABLE_GTK_DOC
+ dist-check-gtkdoc: docs
+ else
+ dist-check-gtkdoc:
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 8df7c55..255b85d 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-LIBGLIB2_VERSION_MAJOR = 2.38
-LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).2
+LIBGLIB2_VERSION_MAJOR = 2.40
+LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).0
 LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz
 LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
 LIBGLIB2_LICENSE = LGPLv2+
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 2/3] pango: bump to version 1.36.3
  2014-06-18 16:19 [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Hadrien Boutteville
  2014-06-18 16:19 ` [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0 Hadrien Boutteville
@ 2014-06-18 16:19 ` Hadrien Boutteville
  2014-06-18 20:10   ` Thomas De Schampheleire
  2014-06-18 16:19 ` [Buildroot] [PATCH 3/3] cairo: add freetype dependency for freetype support Hadrien Boutteville
  2014-06-19  8:02 ` [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Eric Le Bihan
  3 siblings, 1 reply; 10+ messages in thread
From: Hadrien Boutteville @ 2014-06-18 16:19 UTC (permalink / raw)
  To: buildroot

Note: HarfBuzz is needed to build Pango. Configure does not return an
error if HarfBuzz is missing, but without HarfBuzz it can't enable any
backends.

Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/pango/Config.in                   |   1 +
 package/pango/pango-0001-no-tests.patch   |  21 ++
 package/pango/pango-0002-no-gtk-doc.patch |  11 +
 package/pango/pango-no-const-return.patch | 475 ------------------------------
 package/pango/pango-no-tests.patch        |  22 --
 package/pango/pango.mk                    |  19 +-
 6 files changed, 43 insertions(+), 506 deletions(-)
 create mode 100644 package/pango/pango-0001-no-tests.patch
 create mode 100644 package/pango/pango-0002-no-gtk-doc.patch
 delete mode 100644 package/pango/pango-no-const-return.patch
 delete mode 100644 package/pango/pango-no-tests.patch

diff --git a/package/pango/Config.in b/package/pango/Config.in
index 774682d..70f4fd3 100644
--- a/package/pango/Config.in
+++ b/package/pango/Config.in
@@ -9,6 +9,7 @@ config BR2_PACKAGE_PANGO
 	select BR2_PACKAGE_CAIRO
 	select BR2_PACKAGE_FONTCONFIG
 	select BR2_PACKAGE_FREETYPE
+	select BR2_PACKAGE_HARFBUZZ
 	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
 	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
 	help
diff --git a/package/pango/pango-0001-no-tests.patch b/package/pango/pango-0001-no-tests.patch
new file mode 100644
index 0000000..324fd52
--- /dev/null
+++ b/package/pango/pango-0001-no-tests.patch
@@ -0,0 +1,21 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to create Makefile.in.
+ 
+-SUBDIRS= pango modules pango-view examples docs tools tests build
++SUBDIRS= pango modules pango-view examples docs tools build
+ 
+ EXTRA_DIST = 			\
+ 	autogen.sh		\
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -418,7 +418,7 @@ target_alias = @target_alias@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = pango modules pango-view examples docs tools tests build
++SUBDIRS = pango modules pango-view examples docs tools build
+ EXTRA_DIST = \
+ 	autogen.sh		\
+ 	pango.pc.in		\
diff --git a/package/pango/pango-0002-no-gtk-doc.patch b/package/pango/pango-0002-no-gtk-doc.patch
new file mode 100644
index 0000000..0c12ee4
--- /dev/null
+++ b/package/pango/pango-0002-no-gtk-doc.patch
@@ -0,0 +1,11 @@
+--- a/gtk-doc.make
++++ b/gtk-doc.make
+@@ -267,7 +267,7 @@
+ #
+ # Require gtk-doc when making dist
+ #
+-if HAVE_GTK_DOC
++if ENABLE_GTK_DOC
+ dist-check-gtkdoc: docs
+ else
+ dist-check-gtkdoc:
diff --git a/package/pango/pango-no-const-return.patch b/package/pango/pango-no-const-return.patch
deleted file mode 100644
index a0749a4..0000000
--- a/package/pango/pango-no-const-return.patch
+++ /dev/null
@@ -1,475 +0,0 @@
-From 4b060ca43c9605be2fdb219a379f8a17c33b0d98 Mon Sep 17 00:00:00 2001
-From: Ryan Lortie <desrt@desrt.ca>
-Date: Thu, 9 Jun 2011 11:36:59 -0400
-Subject: [PATCH] Stop using G_CONST_RETURN in Pango
-
-Upstream: 4c7807daee7189f48
-
-G_CONST_RETURN is headed for deprecation (as per bug #644611).  Stop
-using it in Pango.
-
-https://bugzilla.gnome.org/show_bug.cgi?id=652202
-
-Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
----
- modules/hebrew/hebrew-shaper.c |    2 +-
- pango/fonts.c                  |    6 +++---
- pango/pango-attributes.c       |    2 +-
- pango/pango-attributes.h       |    2 +-
- pango/pango-context.c          |    2 +-
- pango/pango-context.h          |    6 +++---
- pango/pango-font.h             |    6 +++---
- pango/pango-fontmap.c          |    2 +-
- pango/pango-language.c         |    6 +++---
- pango/pango-language.h         |    6 +++---
- pango/pango-layout.c           |    4 ++--
- pango/pango-layout.h           |    2 +-
- pango/pango-ot-ruleset.c       |    2 +-
- pango/pango-renderer.c         |    2 +-
- pango/pango-renderer.h         |    2 +-
- pango/pango-script.c           |    8 ++++----
- pango/pango-script.h           |   12 ++++++------
- pango/pango-utils.c            |    4 ++--
- pango/pango-utils.h            |   12 ++++++------
- pango/pangocairo-context.c     |    4 ++--
- pango/pangoft2.c               |    2 +-
- pango/pangox-fontmap.c         |    4 ++--
- 22 files changed, 49 insertions(+), 49 deletions(-)
-
-diff --git a/modules/hebrew/hebrew-shaper.c b/modules/hebrew/hebrew-shaper.c
-index 8aa3638..db3055b 100644
---- a/modules/hebrew/hebrew-shaper.c
-+++ b/modules/hebrew/hebrew-shaper.c
-@@ -167,7 +167,7 @@ static const gboolean compose_table[4][4] = {
- #define	is_composible(cur_wc, nxt_wc)	(compose_table[char_type_table[ucs2iso8859_8 (cur_wc)]]\
- 						      [char_type_table[ucs2iso8859_8 (nxt_wc)]])
- 
--G_CONST_RETURN char *
-+const char *
- hebrew_shaper_get_next_cluster(const char      *text,
- 			       gint		length,
- 			       gunichar        *cluster,
-diff --git a/pango/fonts.c b/pango/fonts.c
-index ab5397a..d9de7de 100644
---- a/pango/fonts.c
-+++ b/pango/fonts.c
-@@ -165,7 +165,7 @@ pango_font_description_set_family_static (PangoFontDescription *desc,
-  *               %NULL if not previously set.  This has the same life-time
-  *               as the font description itself and should not be freed.
-  **/
--G_CONST_RETURN char *
-+const char *
- pango_font_description_get_family (const PangoFontDescription *desc)
- {
-   g_return_val_if_fail (desc != NULL, NULL);
-@@ -1927,7 +1927,7 @@ pango_font_family_init (PangoFontFamily *family G_GNUC_UNUSED)
-  * Return value: the name of the family. This string is owned
-  *   by the family object and must not be modified or freed.
-  **/
--G_CONST_RETURN char *
-+const char *
- pango_font_family_get_name (PangoFontFamily  *family)
- {
-   g_return_val_if_fail (PANGO_IS_FONT_FAMILY (family), NULL);
-@@ -2060,7 +2060,7 @@ pango_font_face_is_synthesized (PangoFontFace  *face)
-  * Return value: the face name for the face. This string is
-  *   owned by the face object and must not be modified or freed.
-  **/
--G_CONST_RETURN char *
-+const char *
- pango_font_face_get_face_name (PangoFontFace *face)
- {
-   g_return_val_if_fail (PANGO_IS_FONT_FACE (face), NULL);
-diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
-index 28c11de..373fba1 100644
---- a/pango/pango-attributes.c
-+++ b/pango/pango-attributes.c
-@@ -97,7 +97,7 @@ pango_attr_type_register (const gchar *name)
-  *
-  * Since: 1.22
-  **/
--G_CONST_RETURN char *
-+const char *
- pango_attr_type_get_name (PangoAttrType type)
- {
-   const char *result = NULL;
-diff --git a/pango/pango-attributes.h b/pango/pango-attributes.h
-index 866e35d..59f97a3 100644
---- a/pango/pango-attributes.h
-+++ b/pango/pango-attributes.h
-@@ -180,7 +180,7 @@ struct _PangoAttrFontDesc
- };
- 
- PangoAttrType         pango_attr_type_register (const gchar        *name);
--G_CONST_RETURN char * pango_attr_type_get_name (PangoAttrType       type) G_GNUC_CONST;
-+const char *          pango_attr_type_get_name (PangoAttrType       type) G_GNUC_CONST;
- 
- void             pango_attribute_init        (PangoAttribute       *attr,
- 					      const PangoAttrClass *klass);
-diff --git a/pango/pango-context.c b/pango/pango-context.c
-index 6ec0b56..3c9442a 100644
---- a/pango/pango-context.c
-+++ b/pango/pango-context.c
-@@ -188,7 +188,7 @@ pango_context_set_matrix (PangoContext       *context,
-  *
-  * Since: 1.6
-  **/
--G_CONST_RETURN PangoMatrix *
-+const PangoMatrix *
- pango_context_get_matrix (PangoContext *context)
- {
-   g_return_val_if_fail (PANGO_IS_CONTEXT (context), NULL);
-diff --git a/pango/pango-context.h b/pango/pango-context.h
-index d8c3cb8..d85928a 100644
---- a/pango/pango-context.h
-+++ b/pango/pango-context.h
-@@ -84,9 +84,9 @@ void                      pango_context_set_gravity_hint     (PangoContext
- 							      PangoGravityHint            hint);
- PangoGravityHint          pango_context_get_gravity_hint     (PangoContext               *context);
- 
--void                        pango_context_set_matrix (PangoContext      *context,
--						      const PangoMatrix *matrix);
--G_CONST_RETURN PangoMatrix *pango_context_get_matrix (PangoContext      *context);
-+void                      pango_context_set_matrix           (PangoContext      *context,
-+						              const PangoMatrix *matrix);
-+const PangoMatrix *       pango_context_get_matrix           (PangoContext      *context);
- 
- /* Break a string of Unicode characters into segments with
-  * consistent shaping/language engine and bidrectional level.
-diff --git a/pango/pango-font.h b/pango/pango-font.h
-index b5b2cf1..eea27b4 100644
---- a/pango/pango-font.h
-+++ b/pango/pango-font.h
-@@ -117,7 +117,7 @@ void                 pango_font_description_set_family        (PangoFontDescript
- 							       const char           *family);
- void                 pango_font_description_set_family_static (PangoFontDescription *desc,
- 							       const char           *family);
--G_CONST_RETURN char *pango_font_description_get_family        (const PangoFontDescription *desc) G_GNUC_PURE;
-+const char          *pango_font_description_get_family        (const PangoFontDescription *desc) G_GNUC_PURE;
- void                 pango_font_description_set_style         (PangoFontDescription *desc,
- 							       PangoStyle            style);
- PangoStyle           pango_font_description_get_style         (const PangoFontDescription *desc) G_GNUC_PURE;
-@@ -212,7 +212,7 @@ GType      pango_font_family_get_type       (void) G_GNUC_CONST;
- void                 pango_font_family_list_faces (PangoFontFamily  *family,
- 						   PangoFontFace  ***faces,
- 						   int              *n_faces);
--G_CONST_RETURN char *pango_font_family_get_name   (PangoFontFamily  *family) G_GNUC_PURE;
-+const char *pango_font_family_get_name   (PangoFontFamily  *family) G_GNUC_PURE;
- gboolean   pango_font_family_is_monospace         (PangoFontFamily  *family) G_GNUC_PURE;
- 
- #ifdef PANGO_ENABLE_BACKEND
-@@ -261,7 +261,7 @@ struct _PangoFontFamilyClass
- GType      pango_font_face_get_type       (void) G_GNUC_CONST;
- 
- PangoFontDescription *pango_font_face_describe       (PangoFontFace  *face);
--G_CONST_RETURN char  *pango_font_face_get_face_name  (PangoFontFace  *face) G_GNUC_PURE;
-+const char           *pango_font_face_get_face_name  (PangoFontFace  *face) G_GNUC_PURE;
- void                  pango_font_face_list_sizes     (PangoFontFace  *face,
- 						      int           **sizes,
- 						      int            *n_sizes);
-diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c
-index 13f4263..78b1692 100644
---- a/pango/pango-fontmap.c
-+++ b/pango/pango-fontmap.c
-@@ -290,7 +290,7 @@ pango_font_map_real_load_fontset (PangoFontMap               *fontmap,
-  *
-  * Since: 1.4
-  **/
--G_CONST_RETURN char *
-+const char *
- pango_font_map_get_shape_engine_type (PangoFontMap *fontmap)
- {
-   g_return_val_if_fail (PANGO_IS_FONT_MAP (fontmap), NULL);
-diff --git a/pango/pango-language.c b/pango/pango-language.c
-index bfde308..2bb294e 100644
---- a/pango/pango-language.c
-+++ b/pango/pango-language.c
-@@ -319,7 +319,7 @@ pango_language_from_string (const char *language)
-  * Returns: a string representing the language tag.  This is owned by
-  *          Pango and should not be freed.
-  */
--G_CONST_RETURN char *
-+const char *
- (pango_language_to_string) (PangoLanguage *language)
- {
-   return pango_language_to_string (language);
-@@ -531,7 +531,7 @@ static const LangInfo lang_texts[] = {
-  * Return value: the sample string. This value is owned by Pango
-  *   and should not be freed.
-  **/
--G_CONST_RETURN char *
-+const char *
- pango_language_get_sample_string (PangoLanguage *language)
- {
-   const LangInfo *lang_info;
-@@ -592,7 +592,7 @@ pango_language_get_sample_string (PangoLanguage *language)
-  
-  * Since: 1.22
-  **/
--G_CONST_RETURN PangoScript *
-+const PangoScript *
- pango_language_get_scripts (PangoLanguage *language,
- 			    int           *num_scripts)
- {
-diff --git a/pango/pango-language.h b/pango/pango-language.h
-index 37cdc16..31660ca 100644
---- a/pango/pango-language.h
-+++ b/pango/pango-language.h
-@@ -34,11 +34,11 @@ typedef struct _PangoLanguage PangoLanguage;
- GType          pango_language_get_type    (void) G_GNUC_CONST;
- PangoLanguage *pango_language_from_string (const char *language);
- 
--G_CONST_RETURN char *pango_language_to_string   (PangoLanguage *language) G_GNUC_CONST;
-+const char    *pango_language_to_string   (PangoLanguage *language) G_GNUC_CONST;
- /* For back compat.  Will have to keep indefinitely. */
- #define pango_language_to_string(language) ((const char *)language)
- 
--G_CONST_RETURN char *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST;
-+const char    *pango_language_get_sample_string (PangoLanguage *language) G_GNUC_CONST;
- PangoLanguage *pango_language_get_default (void) G_GNUC_CONST;
- 
- gboolean      pango_language_matches  (PangoLanguage *language,
-@@ -48,7 +48,7 @@ gboolean      pango_language_matches  (PangoLanguage *language,
- 
- gboolean		    pango_language_includes_script (PangoLanguage *language,
- 							    PangoScript    script) G_GNUC_PURE;
--G_CONST_RETURN PangoScript *pango_language_get_scripts	   (PangoLanguage *language,
-+const PangoScript          *pango_language_get_scripts	   (PangoLanguage *language,
- 							    int           *num_scripts);
- 
- G_END_DECLS
-diff --git a/pango/pango-layout.c b/pango/pango-layout.c
-index 12f9dee..2dc0c17 100644
---- a/pango/pango-layout.c
-+++ b/pango/pango-layout.c
-@@ -677,7 +677,7 @@ pango_layout_set_font_description (PangoLayout                 *layout,
-  *
-  * Since: 1.8
-  **/
--G_CONST_RETURN PangoFontDescription *
-+const PangoFontDescription *
- pango_layout_get_font_description (PangoLayout *layout)
- {
-   g_return_val_if_fail (PANGO_IS_LAYOUT (layout), NULL);
-@@ -1087,7 +1087,7 @@ pango_layout_set_text (PangoLayout *layout,
-  *
-  * Return value: the text in the @layout.
-  **/
--G_CONST_RETURN char*
-+const char*
- pango_layout_get_text (PangoLayout *layout)
- {
-   g_return_val_if_fail (PANGO_IS_LAYOUT (layout), NULL);
-diff --git a/pango/pango-layout.h b/pango/pango-layout.h
-index 3b769ff..d786dc6 100644
---- a/pango/pango-layout.h
-+++ b/pango/pango-layout.h
-@@ -116,7 +116,7 @@ void           pango_layout_set_markup_with_accel (PangoLayout    *layout,
- void           pango_layout_set_font_description (PangoLayout                *layout,
- 						  const PangoFontDescription *desc);
- 
--G_CONST_RETURN PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout);
-+const PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout);
- 
- void           pango_layout_set_width            (PangoLayout                *layout,
- 						  int                         width);
-diff --git a/pango/pango-ot-ruleset.c b/pango/pango-ot-ruleset.c
-index b5e2795..8fe7b72 100644
---- a/pango/pango-ot-ruleset.c
-+++ b/pango/pango-ot-ruleset.c
-@@ -107,7 +107,7 @@ pango_ot_ruleset_finalize (GObject *object)
-  *
-  * Since: 1.18
-  **/
--G_CONST_RETURN PangoOTRuleset *
-+const PangoOTRuleset *
- pango_ot_ruleset_get_for_description (PangoOTInfo                     *info,
- 				      const PangoOTRulesetDescription *desc)
- {
-diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
-index db75446..a1fea5e 100644
---- a/pango/pango-renderer.c
-+++ b/pango/pango-renderer.c
-@@ -1352,7 +1352,7 @@ pango_renderer_set_matrix (PangoRenderer     *renderer,
-  *
-  * Since: 1.8
-  **/
--G_CONST_RETURN PangoMatrix *
-+const PangoMatrix *
- pango_renderer_get_matrix (PangoRenderer *renderer)
- {
-   g_return_val_if_fail (PANGO_IS_RENDERER (renderer), NULL);
-diff --git a/pango/pango-renderer.h b/pango/pango-renderer.h
-index 354127b..5410a9f 100644
---- a/pango/pango-renderer.h
-+++ b/pango/pango-renderer.h
-@@ -249,7 +249,7 @@ PangoColor *pango_renderer_get_color (PangoRenderer    *renderer,
- 
- void                        pango_renderer_set_matrix (PangoRenderer     *renderer,
- 						       const PangoMatrix *matrix);
--G_CONST_RETURN PangoMatrix *pango_renderer_get_matrix (PangoRenderer     *renderer);
-+const PangoMatrix          *pango_renderer_get_matrix (PangoRenderer     *renderer);
- 
- PangoLayout     *pango_renderer_get_layout      (PangoRenderer     *renderer);
- PangoLayoutLine *pango_renderer_get_layout_line (PangoRenderer     *renderer);
-diff --git a/pango/pango-script.c b/pango/pango-script.c
-index 605e46e..1d57a69 100644
---- a/pango/pango-script.c
-+++ b/pango/pango-script.c
-@@ -164,10 +164,10 @@ pango_script_iter_free (PangoScriptIter *iter)
-  * Since: 1.4
-  **/
- void
--pango_script_iter_get_range (PangoScriptIter      *iter,
--			     G_CONST_RETURN char **start,
--			     G_CONST_RETURN char **end,
--			     PangoScript          *script)
-+pango_script_iter_get_range (PangoScriptIter  *iter,
-+                             const char      **start,
-+                             const char      **end,
-+                             PangoScript      *script)
- {
-   if (start)
-     *start = iter->script_start;
-diff --git a/pango/pango-script.h b/pango/pango-script.h
-index 32ef737..ef5f698 100644
---- a/pango/pango-script.h
-+++ b/pango/pango-script.h
-@@ -128,12 +128,12 @@ PangoScript pango_script_for_unichar         (gunichar             ch) G_GNUC_CO
- 
- PangoScriptIter *pango_script_iter_new       (const char          *text,
- 					      int                  length);
--void             pango_script_iter_get_range (PangoScriptIter      *iter,
--					      G_CONST_RETURN char **start,
--					      G_CONST_RETURN char **end,
--					      PangoScript          *script);
--gboolean         pango_script_iter_next      (PangoScriptIter      *iter);
--void             pango_script_iter_free      (PangoScriptIter      *iter);
-+void             pango_script_iter_get_range (PangoScriptIter     *iter,
-+                                              const char         **start,
-+                                              const char         **end,
-+                                              PangoScript         *script);
-+gboolean         pango_script_iter_next      (PangoScriptIter     *iter);
-+void             pango_script_iter_free      (PangoScriptIter     *iter);
- 
- #include <pango/pango-language.h>
- 
-diff --git a/pango/pango-utils.c b/pango/pango-utils.c
-index 100dbc7..71deeef 100644
---- a/pango/pango-utils.c
-+++ b/pango/pango-utils.c
-@@ -689,7 +689,7 @@ DllMain (HINSTANCE hinstDLL,
-  * Return value: the Pango sysconf directory. The returned string should
-  * not be freed.
-  */
--G_CONST_RETURN char *
-+const char *
- pango_get_sysconf_subdirectory (void)
- {
- #ifdef G_OS_WIN32
-@@ -718,7 +718,7 @@ pango_get_sysconf_subdirectory (void)
-  * Return value: the Pango lib directory. The returned string should
-  * not be freed.
-  */
--G_CONST_RETURN char *
-+const char *
- pango_get_lib_subdirectory (void)
- {
- #ifdef G_OS_WIN32
-diff --git a/pango/pango-utils.h b/pango/pango-utils.h
-index 41a8bbb..f86c662 100644
---- a/pango/pango-utils.h
-+++ b/pango/pango-utils.h
-@@ -82,13 +82,13 @@ gboolean pango_parse_stretch (const char   *str,
-  * stored in the registry). The returned string should not be
-  * g_free'd.
-  */
--G_CONST_RETURN char *   pango_get_sysconf_subdirectory (void) G_GNUC_PURE;
-+const char *   pango_get_sysconf_subdirectory (void) G_GNUC_PURE;
- 
- /* Ditto for LIBDIR/pango. On Win32, use the same Pango
-  * installation directory. This returned string should not be
-  * g_free'd either.
-  */
--G_CONST_RETURN char *   pango_get_lib_subdirectory (void) G_GNUC_PURE;
-+const char *   pango_get_lib_subdirectory (void) G_GNUC_PURE;
- 
- #endif /* PANGO_ENABLE_BACKEND */
- 
-@@ -131,12 +131,12 @@ gboolean pango_is_zero_width (gunichar ch) G_GNUC_CONST;
- int pango_version (void) G_GNUC_CONST;
- 
- /* Return run-time Pango version as an string */
--G_CONST_RETURN char * pango_version_string (void) G_GNUC_CONST;
-+const char * pango_version_string (void) G_GNUC_CONST;
- 
- /* Check that run-time Pango is as new as required */
--G_CONST_RETURN char * pango_version_check (int required_major,
--					   int required_minor,
--					   int required_micro) G_GNUC_CONST;
-+const char * pango_version_check (int required_major,
-+                                  int required_minor,
-+                                  int required_micro) G_GNUC_CONST;
- 
- G_END_DECLS
- 
-diff --git a/pango/pangocairo-context.c b/pango/pangocairo-context.c
-index 69432f0..f61e839 100644
---- a/pango/pangocairo-context.c
-+++ b/pango/pangocairo-context.c
-@@ -260,7 +260,7 @@ pango_cairo_context_set_font_options (PangoContext               *context,
-  *
-  * Since: 1.10
-  **/
--G_CONST_RETURN cairo_font_options_t *
-+const cairo_font_options_t *
- pango_cairo_context_get_font_options (PangoContext *context)
- {
-   PangoCairoContextInfo *info;
-@@ -286,7 +286,7 @@ pango_cairo_context_get_font_options (PangoContext *context)
-  * Return value: the combined set of font options. This value is owned
-  * by the context and must not be modified or freed.
-  **/
--G_CONST_RETURN cairo_font_options_t *
-+const cairo_font_options_t *
- _pango_cairo_context_get_merged_font_options (PangoContext *context)
- {
-   PangoCairoContextInfo *info = get_context_info (context, TRUE);
-diff --git a/pango/pangoft2.c b/pango/pangoft2.c
-index f4a3864..b41c468 100644
---- a/pango/pangoft2.c
-+++ b/pango/pangoft2.c
-@@ -520,7 +520,7 @@ ft_error_compare (const void *pkey,
-   return ((ft_error_description *) pkey)->code - ((ft_error_description *) pbase)->code;
- }
- 
--G_CONST_RETURN char *
-+const char *
- _pango_ft2_ft_strerror (FT_Error error)
- {
- #undef __FTERRORS_H__
-diff --git a/pango/pangox-fontmap.c b/pango/pangox-fontmap.c
-index 6d5e547..3f5343f 100644
---- a/pango/pangox-fontmap.c
-+++ b/pango/pangox-fontmap.c
-@@ -1441,7 +1441,7 @@ pango_x_fontmap_atom_from_name (PangoFontMap *fontmap,
- }
- 
- 
--G_CONST_RETURN char *
-+const char *
- pango_x_fontmap_name_from_atom (PangoFontMap *fontmap,
- 				Atom          atom)
- {
-@@ -1645,7 +1645,7 @@ pango_x_family_list_faces (PangoFontFamily  *family,
-     }
- }
- 
--static G_CONST_RETURN char *
-+static const char *
- pango_x_family_get_name (PangoFontFamily  *family)
- {
-   PangoXFamily *xfamily = PANGO_X_FAMILY (family);
--- 
-1.7.8.3
-
diff --git a/package/pango/pango-no-tests.patch b/package/pango/pango-no-tests.patch
deleted file mode 100644
index 7ebcbc6..0000000
--- a/package/pango/pango-no-tests.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- a/Makefile.in	2008-01-21 22:28:49.000000000 -0500
-+++ b/Makefile.in	2008-02-09 13:02:41.000000000 -0500
-@@ -260,7 +260,7 @@ sysconfdir = @sysconfdir@
- target_alias = @target_alias@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--SUBDIRS = pango modules pango-view examples docs tools tests
-+SUBDIRS = pango modules pango-view examples docs tools 
- EXTRA_DIST = \
- 	autogen.sh		\
- 	pango.pc.in		\
-
---- a/Makefile.am	2008-01-17 16:37:49.000000000 -0500
-+++ b/Makefile.am	2008-02-09 13:35:13.000000000 -0500
-@@ -1,6 +1,6 @@
- ## Process this file with automake to create Makefile.in.
- 
--SUBDIRS= pango modules pango-view examples docs tools tests
-+SUBDIRS= pango modules pango-view examples docs tools 
- 
- EXTRA_DIST = 			\
- 	autogen.sh		\
diff --git a/package/pango/pango.mk b/package/pango/pango.mk
index 31d92ba..45361d9 100644
--- a/package/pango/pango.mk
+++ b/package/pango/pango.mk
@@ -4,10 +4,10 @@
 #
 ################################################################################
 
-PANGO_VERSION_MAJOR = 1.28
-PANGO_VERSION = $(PANGO_VERSION_MAJOR).4
+PANGO_VERSION_MAJOR = 1.36
+PANGO_VERSION = $(PANGO_VERSION_MAJOR).3
 
-PANGO_SOURCE = pango-$(PANGO_VERSION).tar.bz2
+PANGO_SOURCE = pango-$(PANGO_VERSION).tar.xz
 PANGO_SITE = http://ftp.gnome.org/pub/GNOME/sources/pango/$(PANGO_VERSION_MAJOR)
 PANGO_AUTORECONF = YES
 PANGO_INSTALL_STAGING = YES
@@ -39,26 +39,27 @@ PANGO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \
 		ac_use_included_regex=no gl_cv_c_restrict=no \
 		ac_cv_path_FREETYPE_CONFIG=$(STAGING_DIR)/usr/bin/freetype-config
 
-PANGO_CONF_OPT = --enable-explicit-deps=no --disable-debug
+PANGO_CONF_OPT = --enable-explicit-deps=no \
+	--disable-debug \
+	--disable-gtk-doc-html
 
 PANGO_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \
 	host-pkgconf \
 	libglib2 \
 	cairo \
+	harfbuzz \
 	fontconfig \
 	freetype
 
 ifeq ($(BR2_PACKAGE_XORG7),y)
-        PANGO_CONF_OPT += --with-x \
-		--x-includes=$(STAGING_DIR)/usr/include/X11 \
-		--x-libraries=$(STAGING_DIR)/usr/lib --disable-glibtest
+	PANGO_CONF_OPT += --x-includes=$(STAGING_DIR)/usr/include/X11 \
+		--x-libraries=$(STAGING_DIR)/usr/lib
 	PANGO_DEPENDENCIES += xlib_libX11
-else
-        PANGO_CONF_OPT += --without-x
 endif
 
 ifeq ($(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXRENDER),yy)
 	PANGO_DEPENDENCIES += xlib_libXft xlib_libXrender
+	PANGO_CONF_OPT += --with-xft
 endif
 
 define PANGO_INSTALL_INITSCRIPT
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 3/3] cairo: add freetype dependency for freetype support
  2014-06-18 16:19 [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Hadrien Boutteville
  2014-06-18 16:19 ` [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0 Hadrien Boutteville
  2014-06-18 16:19 ` [Buildroot] [PATCH 2/3] pango: bump to version 1.36.3 Hadrien Boutteville
@ 2014-06-18 16:19 ` Hadrien Boutteville
  2014-06-19  8:02 ` [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Eric Le Bihan
  3 siblings, 0 replies; 10+ messages in thread
From: Hadrien Boutteville @ 2014-06-18 16:19 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/cairo/cairo.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk
index 789dfa7..263e0e9 100644
--- a/package/cairo/cairo.mk
+++ b/package/cairo/cairo.mk
@@ -55,6 +55,13 @@ else
 	CAIRO_CONF_OPT += --disable-directfb
 endif
 
+ifeq ($(BR2_PACKAGE_FREETYPE),y)
+	CAIRO_CONF_OPT += --enable-ft
+	CAIRO_DEPENDENCIES += freetype
+else
+	CAIRO_CONF_OPT += --disable-ft
+endif
+
 ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
 	CAIRO_CONF_OPT += --enable-glesv2
 	CAIRO_DEPENDENCIES += libgles
-- 
2.0.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0
  2014-06-18 16:19 ` [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0 Hadrien Boutteville
@ 2014-06-18 20:08   ` Thomas De Schampheleire
  2014-06-19 15:02     ` Hadrien Boutteville
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas De Schampheleire @ 2014-06-18 20:08 UTC (permalink / raw)
  To: buildroot

Hi Hadrien,

Hadrien Boutteville <hadrien.boutteville@gmail.com> schreef:
>Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
>Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
>---
> ...ror-format-string-errors-from-mismatched-.patch | 56 ----------------------
> package/libglib2/libglib2-0002-no-gtk-doc.patch    | 11 +++++
> package/libglib2/libglib2.mk                       |  4 +-
> 3 files changed, 13 insertions(+), 58 deletions(-)
> delete mode 100644 package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
> create mode 100644 package/libglib2/libglib2-0002-no-gtk-doc.patch
>
>diff --git a/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch b/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
>deleted file mode 100644
>index 9b87d9d..0000000
>--- a/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
>+++ /dev/null
>@@ -1,56 +0,0 @@
>-From 0167c3340d8201dca8e9031b61703bbc5ed6ce33 Mon Sep 17 00:00:00 2001
>-From: Jan Schmidt <thaytan@noraisin.net>
>-Date: Wed, 25 Sep 2013 19:22:26 +1000
>-Subject: [PATCH] gio: Fix -Werror format string errors from mismatched ints.
>-
>-Upstream-Status: Backport
>-
>----
>- gio/gdbusmessage.c | 8 ++++----
>- gio/gdbusprivate.c | 4 ++--
>- 2 files changed, 6 insertions(+), 6 deletions(-)
>-
>-diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
>-index ac233a3..ad77aa6 100644
>---- a/gio/gdbusmessage.c
>-+++ b/gio/gdbusmessage.c
>-@@ -3468,10 +3468,10 @@ g_dbus_message_print (GDBusMessage *message,
>-                                           statbuf.st_mode);
>-                   g_string_append_printf (fs, "%s" "ino=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "",
>-                                           (guint64) statbuf.st_ino);
>--                  g_string_append_printf (fs, "%s" "uid=%d", fs->len > 0 ? "," : "",
>--                                          statbuf.st_uid);
>--                  g_string_append_printf (fs, "%s" "gid=%d", fs->len > 0 ? "," : "",
>--                                          statbuf.st_gid);
>-+                  g_string_append_printf (fs, "%s" "uid=%u", fs->len > 0 ? "," : "",
>-+                                          (guint) statbuf.st_uid);
>-+                  g_string_append_printf (fs, "%s" "gid=%u", fs->len > 0 ? "," : "",
>-+                                          (guint) statbuf.st_gid);
>-                   g_string_append_printf (fs, "%s" "rdev=%d:%d", fs->len > 0 ? "," : "",
>-                                           major (statbuf.st_rdev), minor (statbuf.st_rdev));
>-                   g_string_append_printf (fs, "%s" "size=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "",
>-diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
>-index 0e5bef2..785a0c0 100644
>---- a/gio/gdbusprivate.c
>-+++ b/gio/gdbusprivate.c
>-@@ -2155,7 +2155,7 @@ write_message_print_transport_debug (gssize bytes_written,
>-   _g_dbus_debug_print_lock ();
>-   g_print ("========================================================================\n"
>-            "GDBus-debug:Transport:\n"
>--           "  >>>> WROTE %" G_GSIZE_FORMAT " bytes of message with serial %d and\n"
>-+           "  >>>> WROTE %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n"
>-            "       size %" G_GSIZE_FORMAT " from offset %" G_GSIZE_FORMAT " on a %s\n",
>-            bytes_written,
>-            g_dbus_message_get_serial (data->message),
>-@@ -2206,7 +2206,7 @@ read_message_print_transport_debug (gssize bytes_read,
>-     _g_dbus_debug_print_lock ();
>-   g_print ("========================================================================\n"
>-            "GDBus-debug:Transport:\n"
>--           "  <<<< READ %" G_GSIZE_FORMAT " bytes of message with serial %d and\n"
>-+           "  <<<< READ %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n"
>-            "       size %d to offset %" G_GSIZE_FORMAT " from a %s\n",
>-            bytes_read,
>-            serial,
>--- 
>-1.8.3.1
>-
>diff --git a/package/libglib2/libglib2-0002-no-gtk-doc.patch b/package/libglib2/libglib2-0002-no-gtk-doc.patch
>new file mode 100644
>index 0000000..0c12ee4
>--- /dev/null
>+++ b/package/libglib2/libglib2-0002-no-gtk-doc.patch

Patches inside Buildroot should also contain a description, sob line, and Upstream-status (for example: backported, submitted, accepted, ..., each time referring to the relevant url.

Best regards,
Thomas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 2/3] pango: bump to version 1.36.3
  2014-06-18 16:19 ` [Buildroot] [PATCH 2/3] pango: bump to version 1.36.3 Hadrien Boutteville
@ 2014-06-18 20:10   ` Thomas De Schampheleire
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas De Schampheleire @ 2014-06-18 20:10 UTC (permalink / raw)
  To: buildroot

Hadrien Boutteville <hadrien.boutteville@gmail.com> schreef:
>Note: HarfBuzz is needed to build Pango. Configure does not return an
>error if HarfBuzz is missing, but without HarfBuzz it can't enable any
>backends.
>
>Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
>Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
>---
> package/pango/Config.in                   |   1 +
> package/pango/pango-0001-no-tests.patch   |  21 ++
> package/pango/pango-0002-no-gtk-doc.patch |  11 +
> package/pango/pango-no-const-return.patch | 475 ------------------------------
> package/pango/pango-no-tests.patch        |  22 --
> package/pango/pango.mk                    |  19 +-
> 6 files changed, 43 insertions(+), 506 deletions(-)
> create mode 100644 package/pango/pango-0001-no-tests.patch
> create mode 100644 package/pango/pango-0002-no-gtk-doc.patch
> delete mode 100644 package/pango/pango-no-const-return.patch
> delete mode 100644 package/pango/pango-no-tests.patch


Same comment about header in newly added patches...

Best regards,
Thomas

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3
  2014-06-18 16:19 [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Hadrien Boutteville
                   ` (2 preceding siblings ...)
  2014-06-18 16:19 ` [Buildroot] [PATCH 3/3] cairo: add freetype dependency for freetype support Hadrien Boutteville
@ 2014-06-19  8:02 ` Eric Le Bihan
  2014-06-19 12:37   ` Thomas Petazzoni
  3 siblings, 1 reply; 10+ messages in thread
From: Eric Le Bihan @ 2014-06-19  8:02 UTC (permalink / raw)
  To: buildroot

Hi!
On Wed, Jun 18, 2014 at 06:19:02PM +0200, Hadrien Boutteville wrote:
> Hello all,
>
> I'm currently packaging libgtk3 (work in progress, patch soon), and
> this series bumps pango and libglib2 as it is necessary for libgtk3, and
> add Freetype support to Cairo.
>
> This series is juste compiled-tested, so it's mostly an RFC. I will do
> running tests with libgtk3 and libgtk2.

I also have a WIP packaging for libgtk3 [1], but I have not sent the patch
because libgtk3 depends on at-spi2-core. This package performs some
non-cross-compilable checks in its configure script via this m4 macro, defined
in acinclude.m4:

  DBIND_CHECK_ALIGNOF(dbus_bool_t)

It fails when cross-compiling because it relies on AC_TRY_RUN() [2].

The only (ugly) solution I found was hardcoding some values depending on the
architecture [3]:

  ifeq ($(BR2_i386), y)
  AT_SPI2_CORE_CONF_ENV = ac_cv_alignof_char=1 \
  	ac_cv_alignof_double=4 \
  	ac_cv_alignof_dbind_pointer=4 \
  	ac_cv_alignof_dbind_struct=1 \
  	ac_cv_alignof_dbus_bool_t=4 \
  	ac_cv_alignof_dbus_int16_t=2 \
  	ac_cv_alignof_dbus_int32_t=4 \
  	ac_cv_alignof_dbus_int64_t=4
  endif

How do you deal with this problem?

Best regards,
ELB

[1] https://github.com/elebihan/buildroot/tree/libgtk3-support
[2] https://www.sourceware.org/autobook/autobook/autobook_269.html
[3] https://github.com/elebihan/buildroot/blob/libgtk3-support/package/at-spi2-core/at-spi2-core.mk

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3
  2014-06-19  8:02 ` [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Eric Le Bihan
@ 2014-06-19 12:37   ` Thomas Petazzoni
  2014-06-19 15:44     ` Hadrien Boutteville
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2014-06-19 12:37 UTC (permalink / raw)
  To: buildroot

Dear Eric Le Bihan,

On Thu, 19 Jun 2014 10:02:49 +0200, Eric Le Bihan wrote:

> I also have a WIP packaging for libgtk3 [1]

Aah, ok. Then please sync with Hadrien on how to upstream this and
avoid duplicated work.

>, but I have not sent the
> patch because libgtk3 depends on at-spi2-core. This package performs
> some non-cross-compilable checks in its configure script via this m4
> macro, defined in acinclude.m4:
> 
>   DBIND_CHECK_ALIGNOF(dbus_bool_t)
> 
> It fails when cross-compiling because it relies on AC_TRY_RUN() [2].
> 
> The only (ugly) solution I found was hardcoding some values depending
> on the architecture [3]:
> 
>   ifeq ($(BR2_i386), y)
>   AT_SPI2_CORE_CONF_ENV = ac_cv_alignof_char=1 \
>   	ac_cv_alignof_double=4 \
>   	ac_cv_alignof_dbind_pointer=4 \
>   	ac_cv_alignof_dbind_struct=1 \
>   	ac_cv_alignof_dbus_bool_t=4 \
>   	ac_cv_alignof_dbus_int16_t=2 \
>   	ac_cv_alignof_dbus_int32_t=4 \
>   	ac_cv_alignof_dbus_int64_t=4
>   endif
> 
> How do you deal with this problem?

AC_CHECK_ALIGNOF() ?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0
  2014-06-18 20:08   ` Thomas De Schampheleire
@ 2014-06-19 15:02     ` Hadrien Boutteville
  0 siblings, 0 replies; 10+ messages in thread
From: Hadrien Boutteville @ 2014-06-19 15:02 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Wed, 18 Jun 2014 22:08:21 +0200, Thomas De Schampheleire wrote:
> Hadrien Boutteville <hadrien.boutteville@gmail.com> schreef:
>> Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
>> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
>> ---
>> ...ror-format-string-errors-from-mismatched-.patch | 56 ----------------------
>> package/libglib2/libglib2-0002-no-gtk-doc.patch    | 11 +++++
>> package/libglib2/libglib2.mk                       |  4 +-
>> 3 files changed, 13 insertions(+), 58 deletions(-)
>> delete mode 100644 package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
>> create mode 100644 package/libglib2/libglib2-0002-no-gtk-doc.patch
>>
>> diff --git a/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch b/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
>> deleted file mode 100644
>> index 9b87d9d..0000000
>> --- a/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch
>> +++ /dev/null
>> @@ -1,56 +0,0 @@
>> -From 0167c3340d8201dca8e9031b61703bbc5ed6ce33 Mon Sep 17 00:00:00 2001
>> -From: Jan Schmidt <thaytan@noraisin.net>
>> -Date: Wed, 25 Sep 2013 19:22:26 +1000
>> -Subject: [PATCH] gio: Fix -Werror format string errors from mismatched ints.
>> -
>> -Upstream-Status: Backport
>> -
>> ----
>> - gio/gdbusmessage.c | 8 ++++----
>> - gio/gdbusprivate.c | 4 ++--
>> - 2 files changed, 6 insertions(+), 6 deletions(-)
>> -
>> -diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
>> -index ac233a3..ad77aa6 100644
>> ---- a/gio/gdbusmessage.c
>> -+++ b/gio/gdbusmessage.c
>> -@@ -3468,10 +3468,10 @@ g_dbus_message_print (GDBusMessage *message,
>> -                                           statbuf.st_mode);
>> -                   g_string_append_printf (fs, "%s" "ino=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "",
>> -                                           (guint64) statbuf.st_ino);
>> --                  g_string_append_printf (fs, "%s" "uid=%d", fs->len > 0 ? "," : "",
>> --                                          statbuf.st_uid);
>> --                  g_string_append_printf (fs, "%s" "gid=%d", fs->len > 0 ? "," : "",
>> --                                          statbuf.st_gid);
>> -+                  g_string_append_printf (fs, "%s" "uid=%u", fs->len > 0 ? "," : "",
>> -+                                          (guint) statbuf.st_uid);
>> -+                  g_string_append_printf (fs, "%s" "gid=%u", fs->len > 0 ? "," : "",
>> -+                                          (guint) statbuf.st_gid);
>> -                   g_string_append_printf (fs, "%s" "rdev=%d:%d", fs->len > 0 ? "," : "",
>> -                                           major (statbuf.st_rdev), minor (statbuf.st_rdev));
>> -                   g_string_append_printf (fs, "%s" "size=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "",
>> -diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
>> -index 0e5bef2..785a0c0 100644
>> ---- a/gio/gdbusprivate.c
>> -+++ b/gio/gdbusprivate.c
>> -@@ -2155,7 +2155,7 @@ write_message_print_transport_debug (gssize bytes_written,
>> -   _g_dbus_debug_print_lock ();
>> -   g_print ("========================================================================\n"
>> -            "GDBus-debug:Transport:\n"
>> --           "  >>>> WROTE %" G_GSIZE_FORMAT " bytes of message with serial %d and\n"
>> -+           "  >>>> WROTE %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n"
>> -            "       size %" G_GSIZE_FORMAT " from offset %" G_GSIZE_FORMAT " on a %s\n",
>> -            bytes_written,
>> -            g_dbus_message_get_serial (data->message),
>> -@@ -2206,7 +2206,7 @@ read_message_print_transport_debug (gssize bytes_read,
>> -     _g_dbus_debug_print_lock ();
>> -   g_print ("========================================================================\n"
>> -            "GDBus-debug:Transport:\n"
>> --           "  <<<< READ %" G_GSIZE_FORMAT " bytes of message with serial %d and\n"
>> -+           "  <<<< READ %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n"
>> -            "       size %d to offset %" G_GSIZE_FORMAT " from a %s\n",
>> -            bytes_read,
>> -            serial,
>> --- 
>> -1.8.3.1
>> -
>> diff --git a/package/libglib2/libglib2-0002-no-gtk-doc.patch b/package/libglib2/libglib2-0002-no-gtk-doc.patch
>> new file mode 100644
>> index 0000000..0c12ee4
>> --- /dev/null
>> +++ b/package/libglib2/libglib2-0002-no-gtk-doc.patch
> 
> Patches inside Buildroot should also contain a description, sob line, and Upstream-status (for example: backported, submitted, accepted, ..., each time referring to the relevant url.

Ok, I will add that. I think these patches are however not meant for
upstream, as they are adaptations for Buildroot or minimal build.

Thanks for the review!

Best regards,

Hadrien

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3
  2014-06-19 12:37   ` Thomas Petazzoni
@ 2014-06-19 15:44     ` Hadrien Boutteville
  0 siblings, 0 replies; 10+ messages in thread
From: Hadrien Boutteville @ 2014-06-19 15:44 UTC (permalink / raw)
  To: buildroot

Hi Eric, Thomas,

On Thu, 19 Jun 2014 14:37:04 +0200, Thomas Petazzoni wrote:
> Dear Eric Le Bihan,
> 
> On Thu, 19 Jun 2014 10:02:49 +0200, Eric Le Bihan wrote:
> 
>> I also have a WIP packaging for libgtk3 [1]
> 
> Aah, ok. Then please sync with Hadrien on how to upstream this and
> avoid duplicated work.

Great! I'm looking at your branch. You can find mine here:
https://github.com/Eksel/buildroot/tree/libgtk3
(warning, WIP, there are ugly commits and there will be some rebase soon
;-) ).

Apparently we did several things differently, like how to handle the
host-libgtk3 build (I just adapted the patch from libgtk2).

>> , but I have not sent the
>> patch because libgtk3 depends on at-spi2-core. This package performs
>> some non-cross-compilable checks in its configure script via this m4
>> macro, defined in acinclude.m4:
>>
>>   DBIND_CHECK_ALIGNOF(dbus_bool_t)
>>
>> It fails when cross-compiling because it relies on AC_TRY_RUN() [2].
>>
>> The only (ugly) solution I found was hardcoding some values depending
>> on the architecture [3]:
>>
>>   ifeq ($(BR2_i386), y)
>>   AT_SPI2_CORE_CONF_ENV = ac_cv_alignof_char=1 \
>>   	ac_cv_alignof_double=4 \
>>   	ac_cv_alignof_dbind_pointer=4 \
>>   	ac_cv_alignof_dbind_struct=1 \
>>   	ac_cv_alignof_dbus_bool_t=4 \
>>   	ac_cv_alignof_dbus_int16_t=2 \
>>   	ac_cv_alignof_dbus_int32_t=4 \
>>   	ac_cv_alignof_dbus_int64_t=4
>>   endif
>>
>> How do you deal with this problem?
> 
> AC_CHECK_ALIGNOF() ?

Well, I didn't find (yet) the at-spi2-core dependency, so I don't have
this problem for now. I'm still resolving some configure errors.
It's a bit weird, there is no references to at-spi2-* neither in the
documentation nor in the configure.

Best regards,

Hadrien

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-19 15:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18 16:19 [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Hadrien Boutteville
2014-06-18 16:19 ` [Buildroot] [PATCH 1/3] libglib2: bump to version 2.40.0 Hadrien Boutteville
2014-06-18 20:08   ` Thomas De Schampheleire
2014-06-19 15:02     ` Hadrien Boutteville
2014-06-18 16:19 ` [Buildroot] [PATCH 2/3] pango: bump to version 1.36.3 Hadrien Boutteville
2014-06-18 20:10   ` Thomas De Schampheleire
2014-06-18 16:19 ` [Buildroot] [PATCH 3/3] cairo: add freetype dependency for freetype support Hadrien Boutteville
2014-06-19  8:02 ` [Buildroot] [PATCH 0/3] Bump packages before adding libgtk3 Eric Le Bihan
2014-06-19 12:37   ` Thomas Petazzoni
2014-06-19 15:44     ` Hadrien Boutteville

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.