Return-Path: Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by mail.openembedded.org (Postfix) with ESMTP id EC6AE73608 for ; Fri, 20 Feb 2015 05:44:01 +0000 (UTC) Received: by mail-ig0-f176.google.com with SMTP id hl2so858127igb.3 for ; Thu, 19 Feb 2015 21:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mDI6mIgQMncwGSDgECdyVB84Lk2DNlnyEY7vtfZ4GMI=; b=YyzBBMcSqTfnGSwvbeFh7lLdxnU5w+OBZ6e+XCRI4xVbhbgw4dcrqZKM6v8lvZNASr dFzUeyc6eyMnQgEgq+laqfs+6G92C/m49hxSvin9nK939pKVuwQp+5HlZqYFIrUQcJYJ LgZqzBAfOi7sDZR0nGebi0neZzESzoT5XO/QeSQ4+6it/XyxYjiss+ICG7xQ+gAotThJ O7lMFOlt4i42JJNPTDQrjKX44x1xNkJvXlE7vuASYroof1Z09dqu0wYaD1DbLbqNRagr jJv2VfzGu2UD2sjClCcKdfAU+V4QRGIt6lpsI62K3O4BryfZbNgzLyI2JOUfZWx+yDnq aVNQ== X-Received: by 10.50.97.41 with SMTP id dx9mr9633518igb.1.1424411042826; Thu, 19 Feb 2015 21:44:02 -0800 (PST) Received: from kraj-ch2e.sys.comcast.net (a-96-119-88-205.sys.comcast.net. [96.119.88.205]) by mx.google.com with ESMTPSA id p138sm16404022ioe.9.2015.02.19.21.44.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Feb 2015 21:44:02 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 20 Feb 2015 05:43:37 +0000 Message-Id: <1424411017-31055-2-git-send-email-raj.khem@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1424411017-31055-1-git-send-email-raj.khem@gmail.com> References: <1424411017-31055-1-git-send-email-raj.khem@gmail.com> Subject: [meta-oe][PATCH 2/2] collectd: Backport fix build with newer gcc X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2015 05:44:04 -0000 on mips we get the errors of type mismatch Change-Id: Ib7b3bd243417d1ba77e8167daf761fd4a2fc2e64 Signed-off-by: Khem Raj --- ...ure-size_t-portability-in-DEBUG-statement.patch | 30 ++++++++++++++++++++++ .../recipes-extended/collectd/collectd_5.4.1.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch diff --git a/meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch b/meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch new file mode 100644 index 0000000..52b9a86 --- /dev/null +++ b/meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch @@ -0,0 +1,30 @@ +From f6c89c17955223bf8c99a901ca6f901b83fa521f Mon Sep 17 00:00:00 2001 +From: Marc Fournier +Date: Wed, 3 Dec 2014 16:15:28 +0100 +Subject: [PATCH] netlink: ensure size_t portability in DEBUG() statement + +This prevents the following error when building on 32bit systems with +gcc 4.7.2: + +netlink.c: In function 'ir_read': +netlink.c:783:7: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Werror=format] +--- + src/netlink.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/netlink.c b/src/netlink.c +index 422dc8c..3c4642c 100644 +--- a/src/netlink.c ++++ b/src/netlink.c +@@ -683,7 +683,7 @@ static int ir_read (void) + continue; + } + +- DEBUG ("netlink plugin: ir_read: querying %s from %s (%lu).", ++ DEBUG ("netlink plugin: ir_read: querying %s from %s (%zu).", + type_name[type_index], iflist[ifindex], ifindex); + + nlh = mnl_nlmsg_put_header (buf); +-- +2.1.4 + diff --git a/meta-oe/recipes-extended/collectd/collectd_5.4.1.bb b/meta-oe/recipes-extended/collectd/collectd_5.4.1.bb index 92b231c..6e40076 100644 --- a/meta-oe/recipes-extended/collectd/collectd_5.4.1.bb +++ b/meta-oe/recipes-extended/collectd/collectd_5.4.1.bb @@ -9,6 +9,7 @@ SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \ file://no-gcrypt-badpath.patch \ file://collectd-version.patch \ file://glibc-2.20-compatiblity.patch \ + file://0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch \ file://collectd.init \ file://collectd.service" SRC_URI[md5sum] = "6f56c71c96573a7f4f7fb3bfab185974" -- 2.1.4