From patchwork Thu Apr 10 14:46:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 338140 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id EB306140098 for ; Fri, 11 Apr 2014 00:46:47 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1AEFD8A341; Thu, 10 Apr 2014 14:46:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id enJCPOMlLPc1; Thu, 10 Apr 2014 14:46:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 826B189ECB; Thu, 10 Apr 2014 14:46:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 1DFEC1BF983 for ; Thu, 10 Apr 2014 14:46:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 197BB89ECB for ; Thu, 10 Apr 2014 14:46:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ANazOnsxqlj8 for ; Thu, 10 Apr 2014 14:46:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9463D895D7 for ; Thu, 10 Apr 2014 14:46:42 +0000 (UTC) Received: from us02secmta2.synopsys.com (us02secmta2.synopsys.com [10.12.235.98]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5105D10C07F9; Thu, 10 Apr 2014 07:46:41 -0700 (PDT) Received: from us02secmta2.internal.synopsys.com (us02secmta2.internal.synopsys.com [127.0.0.1]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 15C2455F13; Thu, 10 Apr 2014 07:46:41 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 7764255F02; Thu, 10 Apr 2014 07:46:40 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 67CCD1A3; Thu, 10 Apr 2014 07:46:40 -0700 (PDT) Received: from abrodkin-8560l.internal.synopsys.com (unknown [10.225.15.248]) by mailhost.synopsys.com (Postfix) with ESMTP id 988AA19D; Thu, 10 Apr 2014 07:46:38 -0700 (PDT) From: Alexey Brodkin To: buildroot@buildroot.org Date: Thu, 10 Apr 2014 18:46:36 +0400 Message-Id: <1397141196-1316-1-git-send-email-abrodkin@synopsys.com> X-Mailer: git-send-email 1.9.0 Cc: thomas.petazzoni@free-electrons.com, Alexey Brodkin Subject: [Buildroot] [PATCH] libglib2: fix compilation for aarch64 and arc X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Copied from here - https://github.com/openembedded/oe-core/blob/master/meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch Initially posted here - http://lists.openembedded.org/pipermail/openembedded-core/2013-October/085174.html Signed-off-by: Alexey Brodkin --- ...ror-format-string-errors-from-mismatched-.patch | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.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 new file mode 100644 index 0000000..9b87d9d --- /dev/null +++ b/package/libglib2/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch @@ -0,0 +1,56 @@ +From 0167c3340d8201dca8e9031b61703bbc5ed6ce33 Mon Sep 17 00:00:00 2001 +From: Jan Schmidt +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 +