From patchwork Wed Jun 28 06:14:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106496 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp637364qge; Tue, 27 Jun 2017 23:16:18 -0700 (PDT) X-Received: by 10.98.150.135 with SMTP id s7mr2607175pfk.172.1498630578611; Tue, 27 Jun 2017 23:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498630578; cv=none; d=google.com; s=arc-20160816; b=XBHWs3mc7Ft3z0w1oygZ8JwJr5Mmeoagw4vm8QGbmdq3nOPOcylMvrkeIuUD1Kp8w/ BM5bX8rkgVajYPwKlB6Jmmi7K4Rhc/xTmblsv/Iwe35lZHV8JR3Y3p30KW/yzt7+qk/m A16Hr2PrqwR7W2KwPku/9GWjK3YUpADKPZpPJSqyx2lONWJbl50GjGIzlgDGlUZVKaov j7uZJ8hCwYax+O03v2Es5bDsRbg1lRc4UijB6+YKRMNPU1QmzQ9z3Vb2xxHDF+HkfTKA 69WxLT+j85eG7vKl2z35vA244CH1vZaBHniiec8CPw6E2KvwFdk2vPhhL/lWVd+HdCYQ BAAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=czjnryGp4TIhJ4Hp9TSzJSV0FL/W3hd3GU5IwzaNNnw=; b=QGWDg8yJuzsMGElh+CDGSQvtm//39e+MNk+SlRC/avQyFeiy9Ki1xT7TcxG3uvPiwX dT1pv/gE42iAa0XR0QbeL2BtI6jpkO5x1Lal4pBahFedLpjpby8BJ865YyyEOg+pttbY LVivL2qC7H54Z5J0xZ6Ny4zLE+psA3bQ+AXvlE1be/0hVJHmsozl4U5Fw0qPxY28nlmH +6q1jIBwsxcMJHBl9JdBCrgzcRlx+tfM4nE9SBW1lanYDzi86mbJAxB6Xh0b1ZbPsTS+ AGxQ7z84I/nb0h5gRScXTKJaz5RUtTjBZ7AQJhpnso5ccAyrwmMNLGyjj+REg6kFyHJG 3wYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=uj3ej4sS; 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=NONE 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 y63si949950pgb.47.2017.06.27.23.16.18; Tue, 27 Jun 2017 23:16:18 -0700 (PDT) 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.b=uj3ej4sS; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3FB7178077; Wed, 28 Jun 2017 06:16:15 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by mail.openembedded.org (Postfix) with ESMTP id 6D46B71AFC for ; Wed, 28 Jun 2017 06:14:30 +0000 (UTC) Received: by mail-pf0-f179.google.com with SMTP id s66so28069855pfs.1 for ; Tue, 27 Jun 2017 23:14:32 -0700 (PDT) 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; bh=k843tosGRb/ZFuYHHnqgmm38nNKppGKwReXoFCwznLA=; b=uj3ej4sSVvQm82KfGaDuyU+w1f3OYjAKZvezC+Tpg21DPWyxkKGnFRL7KrrOtGlWJA GJLmtaH2gUVLCxLkFV3DzwQrM3omc24VayFFi1e73eEZXpwrpghys0N/WDU2IrTGXzV1 dV3Ntxqz8Efqd+0RMbULAPS2Dn0MqYJ9ln4ke8T7V6xu0AzUPQg39yOMqPW/4X5bN/ez BVZ3yi8U2WiNzoCfFjQQ6ahaQ3iA4YtOFY8gL9CCRO5rYt+lc0ijJS9r8G3n2YFVzoF6 1cDuU6e1DGi2j1eqtoAC+VEVDiGNaKL93bMYf0NzLRqK907q7dFhAbkSwsYMTuNROuJs pyhw== 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; bh=k843tosGRb/ZFuYHHnqgmm38nNKppGKwReXoFCwznLA=; b=dcvRkpEFnK54pQWaYFO6Du27nrcUMcWiqv6NIpC1O4W7vo/4C30MlLCsOxPEFd8Aux oT0A78YjJz/8UbO1NZl3JS4RSRiY/ISU9gKGR8n3UtceWvn1+Ak1BRFqbkzNmL2mRRbK jeQcjNkfluca/TdcLZiZVtbiGODLZmvpwphgG5iP/Sr9NHW6fIOYUyZJPMt/ZkJaL11o DfpsLaCb8nv0sQcVaLfBCoiQn8NfAWTv+yBo9Ft6H59aXaZ4Ub8zpiRfPrGzXkgvIgIK /FZ10oDLQxoOHPGjF25XejeU1n6+1eWcXHLSc0IPsORDs44TKdY/ewYa/HDgHi5wm+RI HFbA== X-Gm-Message-State: AKS2vOy3qYB566HN3o7BYZOxS7fJZGfc0Uk8SoWJN3QkiUPKjk6IlwJE eGSqu/AwBrRanegb X-Received: by 10.99.128.193 with SMTP id j184mr8658400pgd.245.1498630471478; Tue, 27 Jun 2017 23:14:31 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id r129sm2102839pfr.112.2017.06.27.23.14.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Jun 2017 23:14:30 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 27 Jun 2017 23:14:16 -0700 Message-Id: <20170628061418.16693-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170628061418.16693-1-raj.khem@gmail.com> References: <20170628061418.16693-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 2/4] orrery: Fix build with hardening flags 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../orrery/0001-orrery-Fix-sprintf-format.patch | 26 ++++++++++++++++++++++ meta-oe/recipes-navigation/orrery/orrery_2.7.bb | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch b/meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch new file mode 100644 index 000000000..eb6241fdd --- /dev/null +++ b/meta-oe/recipes-navigation/orrery/orrery/0001-orrery-Fix-sprintf-format.patch @@ -0,0 +1,26 @@ +From e600d3c09d2f97a197f86e6987d44d142e7b7cdf Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Tue, 27 Jun 2017 21:12:17 -0700 +Subject: [PATCH] orrery: Fix sprintf format + +Signed-off-by: Khem Raj +--- + orrery.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/orrery.c b/orrery.c +index e3a1f6d..1b31a9f 100644 +--- a/orrery.c ++++ b/orrery.c +@@ -3767,7 +3767,7 @@ static void drawOptsScreens(void) + displayWidth/2 - gdk_string_width(smallFont, scratchString)/2, + 12, scratchString); + for (day = 0; day < 7; day++) { +- sprintf(scratchString, dayName[day]); ++ sprintf(scratchString, "%s", dayName[day]); + gdk_draw_string(pixmap, smallFont, blueGC, + CAL_DAY_WIDTH/2 + day*CAL_DAY_WIDTH + CAL_LEFT_OFFSET - + gdk_string_width(smallFont, scratchString)/2, +-- +2.13.2 + diff --git a/meta-oe/recipes-navigation/orrery/orrery_2.7.bb b/meta-oe/recipes-navigation/orrery/orrery_2.7.bb index 40a6df3c9..1a00b0808 100644 --- a/meta-oe/recipes-navigation/orrery/orrery_2.7.bb +++ b/meta-oe/recipes-navigation/orrery/orrery_2.7.bb @@ -10,7 +10,8 @@ inherit autotools-brokensep pkgconfig SRC_URI = "http://projects.openmoko.org/frs/download.php/923/orrery_2.7_clean.tar.gz \ file://orrery.png \ file://use.GdkPixbuf.patch \ -" + file://0001-orrery-Fix-sprintf-format.patch \ + " SRC_URI[md5sum] = "bd62a33e7554ee1030313dfcdefcda8b" SRC_URI[sha256sum] = "645166a5e05b2064ab630534a514697fc47b681951e7fe1d635c259cbdf7a5e6"