From patchwork Wed Dec 25 16:57:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182445 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp771923ild; Wed, 25 Dec 2019 08:57:19 -0800 (PST) X-Google-Smtp-Source: APXvYqw5cfAUFAzcJMfx6qn+eIY26bNiuOPBDivxjSAnXSQGWbTsgELodJSsYw5Ibx/7PvTRHWAT X-Received: by 2002:a63:de4c:: with SMTP id y12mr43646896pgi.107.1577293039382; Wed, 25 Dec 2019 08:57:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577293039; cv=none; d=google.com; s=arc-20160816; b=JFvWjzYo0ef5Oz9gQ9rGmTd/Xf1O3deykfFiF3gyqJ6rpww3hDprA8elVU3u95k/Aq PqVmTrJAJCN0zXxHryL0lZcLK71zyTXU75jObLtxk81GEcyu+4YZqhCAtrMJTlIDT1Sg 0umENVeggV2C3DhaO8kLLHQDg6aZOz14ppLbOUUw81uXuz247dSCEIwp3/zvbdUTLrVX 7wnDx1pMZWgzie7iY1+YQgdraKXRR+KAT7NuVpaI1loSJcY0OauKSJMi7EFUtExeuwMj +c+r8LIR/nX6cAWsgDzit0G0yo6RjlY32iOEOYNYPWUfjvv2/zNJfdtH0k+PHYxs45TW FM3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=qcpV9lMHB2Y+bWKuT7q/R1qVEsvK2ZeRcK+TsExd/9M=; b=ZVayp1AgSWZUmNuy6kcqQ59ES6GeL8vi2PFxopMJknzV3NhlhKCrPfBHoViTgiT1+T Iaw2kQI1kWXxRh3LcY941V86KHzZg4QwPN5ik+YbiD9eoHewOG+K9+GYvDVQaqnX95Mm +wKDMAW7KRpa6WGgRH0ttk6N/pLUCdwVqcpZlvFnCdZf0SVkTEAr5wLKsFWdChtG9Qac ymDpwHXeNVg5VoU8euLDpy+AV5+XHbI5WZXsfQOCwinm98/lB28dnvARpDJyQtU9HP3Q Ap8IHK/DPB6CesoDT+Zb6U61iiaUAJAk7NiWCuHnY/Kv6NRrS/NNDEKayXRDJOih6yqG +LFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=M6xENjYu; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id em12si6479262pjb.70.2019.12.25.08.57.19; Wed, 25 Dec 2019 08:57:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=M6xENjYu; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 19E357CEF7; Wed, 25 Dec 2019 16:57:17 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by mail.openembedded.org (Postfix) with ESMTP id 887606C23A for ; Wed, 25 Dec 2019 16:57:16 +0000 (UTC) Received: by mail-pg1-f179.google.com with SMTP id r11so11821167pgf.1 for ; Wed, 25 Dec 2019 08:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yqXuDyk/k5qi0oJk5X90GukFRT22ekXKXiUKwJnd3YI=; b=M6xENjYugeh0QvbV5dXJH3GhrQAbh5hbqKNbT+47cxg+PkDVLUnTEhE6rPn6I8/Hwq CyPvEH3/gYIsYoqELx68f9/lMpDLwhqbRJnn62/jP6Jy+bVepaRTcTuHfnUQrRHMu/qQ PfPH48c/Fg6svREcTADTc4TYtfyIIhO4O103odgt4ZMwsQEaPUQ4QnSB9UadZIUXxPz/ f3M8S57mzbBe17MKOYEYOGRtCJoHGgwouEnnIvdVCDFCu/B9rgol0si3QSe21Y5g2VRJ BuY3UJjrH9VXjMEKVp6KzEExFLM5wPgD6UYDz8qyEYPUiFfRisD1hOnFJE6u99m1QEaA cRDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yqXuDyk/k5qi0oJk5X90GukFRT22ekXKXiUKwJnd3YI=; b=boaAUBhGSpWKq2OacfVL4a1dgJEWdX0SLDDSLi0zUHY0KbIjG0aHFHVmdhlE/0CmJQ eLY8DnuVvWzyE4StOwiRgc3U5ab3i7tNeb29G/q6AjCjLNAzPjIMcscXbZiscU1pSTUK 0OCl2/rZyakP6EZMkblPs8mE85gO1XGM1vasDZo8+ow4b+UtY2RiqoZXk+Va33qQs7vi BddQyfwcJ6gL2hZNDRvLsZaWigs2n0XbvS4Zr9IXBI5tbE8hrpdsWYPRHnTCIaQgY1CO V0jHZf203bKBJ17LB8w0Y1yk/55RniEJTdyC/RFDse2jAFUUZpf/jzHuuCIvdU0utT7K cfLw== X-Gm-Message-State: APjAAAXqXj3N8/9dqgdDCTa97464XttBz3jq+Zy9NipuzOk69ww8n3jH wGuSQP+l8maV8J3y/3SNJxoeU0E1PWE= X-Received: by 2002:a63:3484:: with SMTP id b126mr42740531pga.17.1577293037198; Wed, 25 Dec 2019 08:57:17 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::36e9]) by smtp.gmail.com with ESMTPSA id p23sm30380829pgh.83.2019.12.25.08.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Dec 2019 08:57:16 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 25 Dec 2019 08:57:07 -0800 Message-Id: <20191225165709.2123137-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 1/3] upm: Fix 'may be used uninitialized' errors X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...nitialize-local-variables-before-use.patch | 57 +++++++++++++++++++ meta-oe/recipes-extended/upm/upm_git.bb | 1 + 2 files changed, 58 insertions(+) create mode 100644 meta-oe/recipes-extended/upm/upm/0001-initialize-local-variables-before-use.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/upm/upm/0001-initialize-local-variables-before-use.patch b/meta-oe/recipes-extended/upm/upm/0001-initialize-local-variables-before-use.patch new file mode 100644 index 0000000000..f9fae1641d --- /dev/null +++ b/meta-oe/recipes-extended/upm/upm/0001-initialize-local-variables-before-use.patch @@ -0,0 +1,57 @@ +From cce8be3966b602cf7e20d559e50fcf493b9b42cc Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 23 Dec 2019 18:13:21 -0800 +Subject: [PATCH] initialize local variables before use + +fixes +error: 'ctrl_reg2_data' may be used uninitialized in this function [-Werror=maybe-uninitialized] + +Upstream-Status: Submitted [https://github.com/eclipse/upm/pull/693] +Signed-off-by: Khem Raj +--- + src/kxtj3/kxtj3.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/kxtj3/kxtj3.c b/src/kxtj3/kxtj3.c +index a6f3c4f8..050ae585 100755 +--- a/src/kxtj3/kxtj3.c ++++ b/src/kxtj3/kxtj3.c +@@ -715,7 +715,7 @@ upm_result_t kxtj3_sensor_software_reset(const kxtj3_context dev) + if (kxtj3_set_bit_on(dev, KXTJ3_CTRL_REG2, KXTJ3_CTRL_REG2_SRST) != UPM_SUCCESS) + return UPM_ERROR_OPERATION_FAILED; + +- uint8_t ctrl_reg2_data; ++ uint8_t ctrl_reg2_data = 0; + kxtj3_read_register(dev, KXTJ3_CTRL_REG2, &ctrl_reg2_data); + + uint8_t srst_counter = 0; +@@ -824,7 +824,7 @@ upm_result_t kxtj3_enable_interrupt_pin(const kxtj3_context dev, KXTJ3_INTERRUPT + KXTJ3_INTERRUPT_RESPONSE_T response_type) + { + assert(dev != NULL); +- uint8_t int_reg_value; ++ uint8_t int_reg_value = 0; + kxtj3_read_register(dev, KXTJ3_INT_CTRL_REG1, &int_reg_value); + + if (polarity) +@@ -865,7 +865,7 @@ upm_result_t kxtj3_set_interrupt_response(const kxtj3_context dev, KXTJ3_INTERRU + bool kxtj3_get_interrupt_status(const kxtj3_context dev) + { + assert(dev != NULL); +- uint8_t status_reg_value; ++ uint8_t status_reg_value = 0; + kxtj3_read_register(dev, KXTJ3_STATUS_REG, &status_reg_value); + if (!(status_reg_value & KXTJ3_STATUS_REG_INT)) + return false; +@@ -955,7 +955,7 @@ kxtj3_wakeup_axes kxtj3_get_wakeup_axis_and_direction(kxtj3_context dev) + { + assert(dev != NULL); + +- uint8_t int_source2_value; ++ uint8_t int_source2_value = 0; + kxtj3_read_register(dev, KXTJ3_INT_SOURCE2, &int_source2_value); + + kxtj3_wakeup_axes wakeup_axis; +-- +2.24.1 + diff --git a/meta-oe/recipes-extended/upm/upm_git.bb b/meta-oe/recipes-extended/upm/upm_git.bb index dbe97370d5..7564738dda 100644 --- a/meta-oe/recipes-extended/upm/upm_git.bb +++ b/meta-oe/recipes-extended/upm/upm_git.bb @@ -13,6 +13,7 @@ PV = "2.0.0+git${SRCPV}" SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \ file://0001-CMakeLists.txt-Use-SWIG_SUPPORT_FILES-to-find-the-li.patch \ file://0001-Use-stdint-types.patch \ + file://0001-initialize-local-variables-before-use.patch \ " SRC_URI_append_toolchain-clang_x86 = " file://0001-nmea_gps-Link-with-latomic.patch " From patchwork Wed Dec 25 16:57:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182446 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp771986ild; Wed, 25 Dec 2019 08:57:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyz5/HO9LD4gg/Xkd07YSNTbTpaAcJ69hTBzoEtPYzCrNK/veoyieaWcnEjdcyyoC5bxD4n X-Received: by 2002:a63:6b82:: with SMTP id g124mr27684979pgc.418.1577293044588; Wed, 25 Dec 2019 08:57:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577293044; cv=none; d=google.com; s=arc-20160816; b=t7F7u1DfpHXD6dSzRPt0KZzZBPH3g+9Nm2rRBtIVeblIR4a8iVpm/H74C3Z3ssSbip A7w8K/jCV8ebSj5QsW46vrgmte9Qmsm2qzMbYXx9VUVgfH0YDgm6+MCxkxL4COlBm6M2 vW5a8QcScY5gSn5+Tc3IZfGFovWWK0zvUnLPAzqEhQ2s8NryptTgilUjezVmEFyg2ufp pg45P9VzE7LqAZbuRxlklNJEp/M2lXD24etNnmJZ2HmH4QPEdNkb4k1ts72hqATBNRdu /fNzf2vb/G4sHEidxrOlqAtvJ2JFQJk/qtlgyRsiM2nZhGvgGY43B9WQYpFT4WfP6Kd/ fPtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=PY7v+zcD77oN58uAMrU5q6McGB+fXYQwj76drgLAAtU=; b=FlEqRn4hGDE9k4xrMwdHrrYQBReTg1IaIbyrq7lkinx58p10y/T/Yb6qFscS8iWPdr 2RZIovAX8J8YmeT21QWy4CQoRLRl1+Eh/x0hxEBYmqsJA+1GZ5m+7sIyvAWOQSYWlZiw IqPHAFAC8BABeDbZCyG91gyTwxaaQYvzUFSTgMvSGj6yVbnz8o4m78q2IjMgHSxrkEqS mrQAccCXOxe3nnL7y+dgk+7L+KadE82uUS8BNkByjV7B0qPZReEMwWNaTP4pnE4yIG/Y j4neAsYJwTUC12gQsr5koaL8Pxa6jcrhbnP+ZCGAq8m5LRRbH4ANzzMx30PF6h4lq2Hx FjBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=l9pRYa+Z; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o7si23453207pll.163.2019.12.25.08.57.24; Wed, 25 Dec 2019 08:57:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=l9pRYa+Z; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 277117F7D2; Wed, 25 Dec 2019 16:57:20 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by mail.openembedded.org (Postfix) with ESMTP id 412CC7DDA5 for ; Wed, 25 Dec 2019 16:57:17 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id m13so2493201pjb.2 for ; Wed, 25 Dec 2019 08:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sHN0f8lbq9dnCSGBqnpGVMz7s52/TLbRdbVAIEoYWI8=; b=l9pRYa+ZVEQndeJcYe9MJIIH2eJwzU7A1yYjV8zy4zJfUU1HKCNr8XykKrNFX+ndiQ iL8rExX4wnK/dQ9fmpMAMtwsaJg7JSRYT0V7y2weCcck7Ym8qQlfOLdo6TIRk6n6tbj2 thpyYNE0zJQtGt8mYubJ/OTIeymYynpSTPp8Df2AxtSR5afhUpU53ckDgDzej14yu6+Q PaR1E5s/lta5GXLelnq7iIYXtoML/tf5kYMqimT95p/XSFYKym0HWw5gNkLYfjnA+Xuk bMh2Acd4CJtg76WvckXaWg43sXHDgLgquVaGJuw3Mozne2vZbMo3uUuJBU7RPbP4xrYy oq4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sHN0f8lbq9dnCSGBqnpGVMz7s52/TLbRdbVAIEoYWI8=; b=SJcebJ+ZnOXp+HDHwD4ZB7NhbkRYWu0g90xxesCrm3QDw+NMU5XOiPe4qVi1RaIAZp tV04IEO7xvXRsbNfuxiHUKBW5eCrn6lGazqeiQ4sPVhFjYTkQ0OXKI4ZJNYJeRshNeE4 qWOQ3PqVgH8Op58ywMQQRFe6LwHkSeeGhdMm/SROQmL6FFwYdPUEndV9/DbSdW80Or+k r9dzQflBZT0w0Z1sfPsGauulboycN6XTlc+ZxQFfSgtzlNPqr1ovVeyNvknxFTts5RiG fl1VAeosfaeySrHEFjznZ1RNVY8W3+LQxJRECfJDaGj8vV0cio53js4Bx5vNF/STtkYQ zlNA== X-Gm-Message-State: APjAAAVJctVcP3/6NKMQAJmQpe+hL0zvGXZnJao5DpvMU+gLILF4NeJl RdsO1YTVlI9CRBUrXBMp7XcwSzAdMns= X-Received: by 2002:a17:90a:c588:: with SMTP id l8mr13647777pjt.69.1577293037842; Wed, 25 Dec 2019 08:57:17 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::36e9]) by smtp.gmail.com with ESMTPSA id p23sm30380829pgh.83.2019.12.25.08.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Dec 2019 08:57:17 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 25 Dec 2019 08:57:08 -0800 Message-Id: <20191225165709.2123137-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191225165709.2123137-1-raj.khem@gmail.com> References: <20191225165709.2123137-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 2/3] memcached: upgrade to 1.5.20 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../memcached/{memcached_1.5.10.bb => memcached_1.5.20.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-networking/recipes-support/memcached/{memcached_1.5.10.bb => memcached_1.5.20.bb} (92%) -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/memcached/memcached_1.5.10.bb b/meta-networking/recipes-support/memcached/memcached_1.5.20.bb similarity index 92% rename from meta-networking/recipes-support/memcached/memcached_1.5.10.bb rename to meta-networking/recipes-support/memcached/memcached_1.5.20.bb index d2cafc9f6d..37a77c3648 100644 --- a/meta-networking/recipes-support/memcached/memcached_1.5.10.bb +++ b/meta-networking/recipes-support/memcached/memcached_1.5.20.bb @@ -22,8 +22,8 @@ RDEPENDS_${PN} += "perl perl-module-posix perl-module-autoloader \ SRC_URI = "http://www.memcached.org/files/${BP}.tar.gz \ file://memcached-add-hugetlbfs-check.patch \ " -SRC_URI[md5sum] = "8462616b554183a75845b03c56837cca" -SRC_URI[sha256sum] = "494c060dbd96d546c74ab85a3cc3984d009b4423767ac33e05dd2340c01f1c4b" +SRC_URI[md5sum] = "4b64296ea0eeccdee9168c035e0488ab" +SRC_URI[sha256sum] = "cfd7b023a9cefe7ae8a67184f51d841dbbf97994ed0e8a55e31ee092320ea1e4" # set the same COMPATIBLE_HOST as libhugetlbfs COMPATIBLE_HOST = '(i.86|x86_64|powerpc|powerpc64|arm).*-linux' From patchwork Wed Dec 25 16:57:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182447 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp772041ild; Wed, 25 Dec 2019 08:57:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyDPyJ0XAM5nbKghCODl3dOtpLGnWBAkIl8gohWgJ4jZmq2QSKFQw4TjEwwQcHxRC/i24PC X-Received: by 2002:a17:90a:a88d:: with SMTP id h13mr13191329pjq.55.1577293050959; Wed, 25 Dec 2019 08:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577293050; cv=none; d=google.com; s=arc-20160816; b=y8n8laENQ/6MzpVVIUpDNowClO2JRwzxsdqNpFy6MRC2w3BYc9DLNlwTFYc3wjikHk 82MvOXqB4dXSYsn4NpK59qWdVKeX4mpsniuT1DbedA9/18dSETzMD1BntwbfdZdx6KP6 XhJl5wla8vi/PgjBNnje4anzgEbQqB/wzCzGkwsrB9l82F+dK8QoDryq8EwW9/iezmzQ +hT4TDrIZ/dzWOUSHxHT+E3iWNGNP/UlgJ/O0xI/gJB3OwcDrlqlXgKg3J5skh1Y0VGM bdEZjffwOLH0JqCVnbt/QDj3nUaXpoxNud2HjJjsOiQMTa5qfrLVOu3Qkv4d76Bn8lKa OrNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=LQZxMWGoRWGXstL2OZjFoLOQa+DF9TgPoi+Ir91SLn8=; b=ADW4ocWpPMM/cjnBduRLgSUE20soJAboeeHr9o9xH1uwP9CxjbyNYl/IZ22/I4ugHI /V4R5gbnQsL8kqX0gLLWtqlf5IiCXNbtLREeI0Go/cHBNuL94wZh1yvPZStrRCQQ6RQh rFqvcj8mTAtyEX6iH8gG2AJeXxB0jXCORsb+f7HeQYNSHC9R/zFg/qx047CEKYpUvBwJ KJWSk2jg6BIx2XYyOLvFIXjmRcmtwEnXjVQ2uEAvBAAt7PgBwSrenixcgRKrM7hORxWf VNtY4CmidsJCSUNQyyM493k5OBSfmAbOkpgVSpSdbzOxNUOvBaK/38Dc8AtjlIPa1Xsq fdJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=p14dPsd4; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o10si6310223pjp.94.2019.12.25.08.57.30; Wed, 25 Dec 2019 08:57:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=p14dPsd4; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 435C77F7B1; Wed, 25 Dec 2019 16:57:21 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by mail.openembedded.org (Postfix) with ESMTP id BFC2B7F7C9 for ; Wed, 25 Dec 2019 16:57:17 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id b22so9583973pls.12 for ; Wed, 25 Dec 2019 08:57:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mYMO/oF2EpPom3cZicRsqxO+BueouJ9+AS47VjSCke0=; b=p14dPsd4pBq+yRr9a62H/iXEE33UMVxO6ecPDl6WtnwpNTaHp2QFa6fC36Etb6v70r niaOVDxZDWr3yFU1sRyRvaQH+eUAGzRe/uLQArEhzOd4QZ+k2c6r0Sr6PUImW3ZNMyQ5 Fiei2dSe0nXVpo3uW3T/ZPKzENKnRfCWRoPaUNz62HLAPHKMN5SviucAl5pr9MuKQbIG GmESSB1fG6ZiWsvFkTpdaOOozRjsZX+jYMoq/h/CKapUtQ9ukkQGxtC0A/ihYIPH9Kpi shfW48WnPiwurEOsRVat/zHibtEDTcIXofNKWeWeb7e+BUh523r2yoCY5NzX7BdVFnBC iDAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mYMO/oF2EpPom3cZicRsqxO+BueouJ9+AS47VjSCke0=; b=c5TRz/+tpWC0FclTfyYnd81EhCI4bHpSb26HMxDuyBuKikpYjBJy011WCtlWpdsqdy cB6Wt5gDky5sc4l3VCSB8IYHFR7of8pccF1M8dpCNoG2CSLYIAelkrKcpSv3vD5IMr1T SgjcsbztfBQ5WqtiVYQfprzirp/B7nSeNVoNu6PFT+1yCoS5pvKAhOhkcSCywE9Alvtg Eoq6p0UQrExoU8oiQhWJvGWnmcBLViOZ++heiPDaGiMKJ4t3ksXieHlzFxZKAOIuNT01 ozX22OAK+D8BecZ5Sd+7O/kGoeih1rSmvS93cyOytYFj1JC3xN8/zk4QP/JqYhKD+m7K GAfw== X-Gm-Message-State: APjAAAX+YM6zqwW8OML1Yqsux+UDcM47ce5nIptp19GnesLlBZM6izDF YeWSJD4VDhx3pTHXLmgxQ6bUHH72va8= X-Received: by 2002:a17:90a:8545:: with SMTP id a5mr13521144pjw.3.1577293038466; Wed, 25 Dec 2019 08:57:18 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::36e9]) by smtp.gmail.com with ESMTPSA id p23sm30380829pgh.83.2019.12.25.08.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Dec 2019 08:57:18 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 25 Dec 2019 08:57:09 -0800 Message-Id: <20191225165709.2123137-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191225165709.2123137-1-raj.khem@gmail.com> References: <20191225165709.2123137-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 3/3] ltrace: Fix build with gcc10 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...-struct-pointers-are-null-initilized.patch | 46 +++++++++++++++++++ ...hook-Do-not-append-int-to-std-string.patch | 2 +- meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 1 + 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/0001-ensure-the-struct-pointers-are-null-initilized.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-ensure-the-struct-pointers-are-null-initilized.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ensure-the-struct-pointers-are-null-initilized.patch new file mode 100644 index 0000000000..9def41ca60 --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ensure-the-struct-pointers-are-null-initilized.patch @@ -0,0 +1,46 @@ +From 67a8fa478a4484bc4dbfb3ac74e11be1dd5af594 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 23 Dec 2019 19:35:48 -0800 +Subject: [PATCH] ensure the struct pointers are null initilized + +Do not delete if pointer is already null + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + expr.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/expr.c b/expr.c +index 4059a32..5ffd0ad 100644 +--- a/expr.c ++++ b/expr.c +@@ -189,10 +189,8 @@ int + expr_clone(struct expr_node *retp, const struct expr_node *node) + { + *retp = *node; +- ++ struct expr_node *nlhs = 0, *nrhs = 0; + switch (node->kind) { +- struct expr_node *nlhs; +- struct expr_node *nrhs; + + case EXPR_OP_ARGNO: + case EXPR_OP_SELF: +@@ -236,8 +234,10 @@ expr_clone(struct expr_node *retp, const struct expr_node *node) + if (expr_alloc_and_clone(&nlhs, node->lhs, node->own_lhs) < 0) { + if (node->kind == EXPR_OP_CALL2 + && node->u.call.own_rhs) { +- expr_destroy(nrhs); +- free(nrhs); ++ if (nrhs) { ++ expr_destroy(nrhs); ++ free(nrhs); ++ } + return -1; + } + } +-- +2.24.1 + diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-hook-Do-not-append-int-to-std-string.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-hook-Do-not-append-int-to-std-string.patch index 8f1c4b9b9b..2890373821 100644 --- a/meta-oe/recipes-devtools/ltrace/ltrace/0001-hook-Do-not-append-int-to-std-string.patch +++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-hook-Do-not-append-int-to-std-string.patch @@ -23,7 +23,7 @@ Signed-off-by: Khem Raj if (sysconfdir != NULL && *sysconfdir != '\0') { /* No +1, we skip the initial period. */ - syspath = malloc(strlen(sysconfdir) + sizeof FN); -+ syspath = malloc(strlen(sysconfdir) + sizeof FN + 1); ++ syspath = malloc(strlen(sysconfdir) + sizeof FN + 2); + syspath[strlen(sysconfdir) + sizeof FN + 1] = '\0'; if (syspath == NULL - || sprintf(syspath, "%s/%s", sysconfdir, FN + 1) < 0) diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb index bb21cbca8a..6b66c25297 100644 --- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb @@ -28,6 +28,7 @@ SRC_URI = "git://github.com/sparkleholic/ltrace.git;branch=master;protocol=http file://0001-hook-Do-not-append-int-to-std-string.patch \ file://include_unistd_nr.patch \ file://0001-Bug-fix-for-data-type-length-judgment.patch \ + file://0001-ensure-the-struct-pointers-are-null-initilized.patch \ " S = "${WORKDIR}/git"