From patchwork Mon Feb 5 22:42:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 869603 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qavCF9IS"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zb2fF1Jy2z9sBW for ; Tue, 6 Feb 2018 09:42:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C2B2088EC2; Mon, 5 Feb 2018 22:42:25 +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 mjidejaF5y8S; Mon, 5 Feb 2018 22:42:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4F1AD88D2E; Mon, 5 Feb 2018 22:42:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 60B491CF011 for ; Mon, 5 Feb 2018 22:42:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5BA3486E28 for ; Mon, 5 Feb 2018 22:42:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jw-dYfOlQZV8 for ; Mon, 5 Feb 2018 22:42:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id DEB2386A95 for ; Mon, 5 Feb 2018 22:42:21 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id v71so228706wmv.2 for ; Mon, 05 Feb 2018 14:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=am1rZyAlyL9A+XD/m5gsKYmeqCpnZpwyp7pp5BCOILE=; b=qavCF9ISWhxW5mpa0SVvHXPZasYMpB61Gxbnjoc/BLqurng1HUbr2mMNzsJDXaPCHJ RXVcxeVuqGCsuOu4z17Dq40I+Yl1z486+XHbsajZvQTP+9h3P917fKD5B2r82fnaAK1M ShK3y7iAdzcMOErGvPh3pnp9ut+DmELjCiiIFuA1D09JvThibgLM99Qb0+DMCz+zoP2K lVkTAalisojQNy9gB0sDIMmrhj1hRsY7q2uIRrBiWnHRuaGIRB4q/eRP3CTqb1hd5BaV FCawENoCNdMZPJfshjlfzEnvArx44kqFMdnBlfSdurKjMXKq3TUyyU4toLMEpQQe5hS0 yCUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=am1rZyAlyL9A+XD/m5gsKYmeqCpnZpwyp7pp5BCOILE=; b=Er+jLKzXx7RpFyGW9PJlxtulkX1k4I/5GTg+NS/HQ+CMcZGKNSDA2kRjMPkxpI6NnC YvQn+Q8Gu7ntIlUXvq/aVnPo1OxtM+Ru1iXCxzfG0MflZsLRe94vlG3ehyAiVH0x1UBH izUPy+egeN8qSxX2NdzirxAy8ATiF4sWJvEdlGVcvngumnIThOCuiWdnCn5UBnpu+kvP 6Ou6MWnrPoMhUOdeBj5ANUfhHRU03q6hk43A61kL1upVaZjgG/E6g83HwDsRWyE92MlM pYPynDnDMAWFgxUfQTuPqoF85KV6DsoPb6dLsgRLoXavgkarMFrXk8usfJPSphTPDrkh RHJw== X-Gm-Message-State: APf1xPAY1UT5cOIAHSg1PlYnUWmRbnH+zP4snlrCoAV5T3f9fW45LVRA yOKsXIHxvVh0Is5xG9YNatsVzjJO X-Google-Smtp-Source: AH8x224j2lPG6X1Q3wbIHc2FRLixFuv1UsPGNqlLnrInx6deCjX/lwc3EJjdmqfI4cfJ2z6EvjHoEA== X-Received: by 10.80.134.40 with SMTP id o37mr1068025edo.62.1517870540010; Mon, 05 Feb 2018 14:42:20 -0800 (PST) Received: from dell.be.48ers.dk ([2a02:a03f:3ed0:1300:ba8a:60ff:feb3:d607]) by smtp.gmail.com with ESMTPSA id d20sm6730113ede.16.2018.02.05.14.42.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Feb 2018 14:42:19 -0800 (PST) Received: from peko by dell.be.48ers.dk with local (Exim 4.89) (envelope-from ) id 1eipSs-0000Xd-DM; Mon, 05 Feb 2018 23:42:18 +0100 From: Peter Korsgaard To: buildroot@buildroot.org, aduskett@gmail.com Date: Mon, 5 Feb 2018 23:42:13 +0100 Message-Id: <20180205224213.2036-1-peter@korsgaard.com> X-Mailer: git-send-email 2.11.0 Subject: [Buildroot] [PATCH-2017.11.x] refpolicy: add upstream patch fixing compile error related to implicit-fallthrough X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 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" Fixes: http://autobuild.buildroot.net/results/958/958ff318cdbedb5b8641b376223491b85a75f084/ http://autobuild.buildroot.net/results/54e/54e240243aba31da33a2cbecdcc234b44f24dcf7/ fc-sort is a host utility compiled with -Werror, and for modern (>= 7.x) gcc versions, Werror implies -Werror=implicit-fallthrough. And an upstream patch fixing this issue. Signed-off-by: Peter Korsgaard --- ...0001-fc_sort-avoid-compiler-warning-error.patch | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/refpolicy/0001-fc_sort-avoid-compiler-warning-error.patch diff --git a/package/refpolicy/0001-fc_sort-avoid-compiler-warning-error.patch b/package/refpolicy/0001-fc_sort-avoid-compiler-warning-error.patch new file mode 100644 index 0000000000..403daedd0d --- /dev/null +++ b/package/refpolicy/0001-fc_sort-avoid-compiler-warning-error.patch @@ -0,0 +1,45 @@ +From 89b53fafa9904ba7a3df2ad94d01a485eae5366f Mon Sep 17 00:00:00 2001 +From: Guido Trentalancia +Date: Tue, 6 Jun 2017 00:08:13 +0200 +Subject: [PATCH] fc_sort: avoid compiler warning/error + +Fix a "-Werror=implicit-fallthrough" compiler warning/error on +the switch statement. + +This third version (v3) fixes a bug introduced in the first +version and improves the style over the second version. + +Signed-off-by: Guido Trentalancia +Signed-off-by: Peter Korsgaard +--- + support/fc_sort.c | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/support/fc_sort.c b/support/fc_sort.c +index 5561288a..66cdf39f 100644 +--- a/support/fc_sort.c ++++ b/support/fc_sort.c +@@ -292,14 +292,16 @@ void fc_fill_data(file_context_node_t *fc_node) + /* If a escape character is found, + * skip the next character. */ + c++; ++ break; + default: +- /* If no meta character has been found yet, +- * add one to the stem length. */ +- if (!fc_node->meta) +- fc_node->stem_len++; + break; + } + ++ /* If no meta character has been found yet, ++ * add one to the stem length. */ ++ if (!fc_node->meta) ++ fc_node->stem_len++; ++ + fc_node->str_len++; + c++; + } +-- +2.11.0 +