diff options
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch | 56 | ||||
-rw-r--r-- | meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb | 1 |
2 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch b/meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch new file mode 100644 index 0000000000..9b87d9d547 --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 0167c3340d8201dca8e9031b61703bbc5ed6ce33 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jan Schmidt <thaytan@noraisin.net> | ||
3 | Date: Wed, 25 Sep 2013 19:22:26 +1000 | ||
4 | Subject: [PATCH] gio: Fix -Werror format string errors from mismatched ints. | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | --- | ||
9 | gio/gdbusmessage.c | 8 ++++---- | ||
10 | gio/gdbusprivate.c | 4 ++-- | ||
11 | 2 files changed, 6 insertions(+), 6 deletions(-) | ||
12 | |||
13 | diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c | ||
14 | index ac233a3..ad77aa6 100644 | ||
15 | --- a/gio/gdbusmessage.c | ||
16 | +++ b/gio/gdbusmessage.c | ||
17 | @@ -3468,10 +3468,10 @@ g_dbus_message_print (GDBusMessage *message, | ||
18 | statbuf.st_mode); | ||
19 | g_string_append_printf (fs, "%s" "ino=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "", | ||
20 | (guint64) statbuf.st_ino); | ||
21 | - g_string_append_printf (fs, "%s" "uid=%d", fs->len > 0 ? "," : "", | ||
22 | - statbuf.st_uid); | ||
23 | - g_string_append_printf (fs, "%s" "gid=%d", fs->len > 0 ? "," : "", | ||
24 | - statbuf.st_gid); | ||
25 | + g_string_append_printf (fs, "%s" "uid=%u", fs->len > 0 ? "," : "", | ||
26 | + (guint) statbuf.st_uid); | ||
27 | + g_string_append_printf (fs, "%s" "gid=%u", fs->len > 0 ? "," : "", | ||
28 | + (guint) statbuf.st_gid); | ||
29 | g_string_append_printf (fs, "%s" "rdev=%d:%d", fs->len > 0 ? "," : "", | ||
30 | major (statbuf.st_rdev), minor (statbuf.st_rdev)); | ||
31 | g_string_append_printf (fs, "%s" "size=%" G_GUINT64_FORMAT, fs->len > 0 ? "," : "", | ||
32 | diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c | ||
33 | index 0e5bef2..785a0c0 100644 | ||
34 | --- a/gio/gdbusprivate.c | ||
35 | +++ b/gio/gdbusprivate.c | ||
36 | @@ -2155,7 +2155,7 @@ write_message_print_transport_debug (gssize bytes_written, | ||
37 | _g_dbus_debug_print_lock (); | ||
38 | g_print ("========================================================================\n" | ||
39 | "GDBus-debug:Transport:\n" | ||
40 | - " >>>> WROTE %" G_GSIZE_FORMAT " bytes of message with serial %d and\n" | ||
41 | + " >>>> WROTE %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n" | ||
42 | " size %" G_GSIZE_FORMAT " from offset %" G_GSIZE_FORMAT " on a %s\n", | ||
43 | bytes_written, | ||
44 | g_dbus_message_get_serial (data->message), | ||
45 | @@ -2206,7 +2206,7 @@ read_message_print_transport_debug (gssize bytes_read, | ||
46 | _g_dbus_debug_print_lock (); | ||
47 | g_print ("========================================================================\n" | ||
48 | "GDBus-debug:Transport:\n" | ||
49 | - " <<<< READ %" G_GSIZE_FORMAT " bytes of message with serial %d and\n" | ||
50 | + " <<<< READ %" G_GSSIZE_FORMAT " bytes of message with serial %d and\n" | ||
51 | " size %d to offset %" G_GSIZE_FORMAT " from a %s\n", | ||
52 | bytes_read, | ||
53 | serial, | ||
54 | -- | ||
55 | 1.8.3.1 | ||
56 | |||
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb index 4b9b1129e2..5717bd233b 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb | |||
@@ -14,6 +14,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ | |||
14 | file://add-march-i486-into-CFLAGS-automatically.patch \ | 14 | file://add-march-i486-into-CFLAGS-automatically.patch \ |
15 | file://glib-2.0-configure-readlink.patch \ | 15 | file://glib-2.0-configure-readlink.patch \ |
16 | file://run-ptest \ | 16 | file://run-ptest \ |
17 | file://0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | SRC_URI_append_class-native = " file://glib-gettextize-dir.patch" | 20 | SRC_URI_append_class-native = " file://glib-gettextize-dir.patch" |