From patchwork Fri Jan 26 12:44:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 866290 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.136; helo=silver.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=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b="Gy+Ij4z9"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zSdsR1nq7z9ryr for ; Fri, 26 Jan 2018 23:44:58 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 336BD2EFFB; Fri, 26 Jan 2018 12:44:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FSyI3gQOi7WN; Fri, 26 Jan 2018 12:44:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 774032EED5; Fri, 26 Jan 2018 12:44:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 354351C24F3 for ; Fri, 26 Jan 2018 12:44:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 306238843D for ; Fri, 26 Jan 2018 12:44:52 +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 8-J2aXob3oiB for ; Fri, 26 Jan 2018 12:44:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id 315938836E for ; Fri, 26 Jan 2018 12:44:51 +0000 (UTC) Received: by mail-qt0-f195.google.com with SMTP id i1so884740qtj.8 for ; Fri, 26 Jan 2018 04:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=hupnx+oERB/KKXRGdY+s/gmHDsO6hqLB8cZX/TLYuhQ=; b=Gy+Ij4z9bolCsCcPC7gMvu4eJ3Zcr7KEemAhuaAxSqFREedzuZDb1cB2vnNyC9snmT K7qgjz0XbxCiKGR7Jl1fudf4wmf5zJfoyolHtrjPo7yIdnPpzjBZB3LjGOUhdwZVCp+y bjEc7nsgLImJkcNriCoSOh56rwmVjXGH7ugAxdkpIyzX6bw9ABCfVmBV5O0yYQsMX+sA t59W2+gozQ1EfUvSl5hICbFT0aA3Or3tGqB2ORRj7jevlORmOMsFs2yPaIv4y2+EL/2X /Cv9xlaP+MLHA2YbFXbCLlMYuRS3yhHQYr2/DRNUmaHs9oHer4oBemA6cKN6d3nbRNkB NDZQ== 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; bh=hupnx+oERB/KKXRGdY+s/gmHDsO6hqLB8cZX/TLYuhQ=; b=Z6VA4q8bDPgT9g2I6NEcYrFr4K/qkfLvj8uWY64E6YnzAQ9ZXn3gsAVdP+bXiQSNYh 1IlNivnQzsGw4rDh7Jx/KEnML915dDXPZ+vCgUfteW8PzBDMBiWi+mMgiMn6DBxVX3mx wi6B+NUn2YG43wf02cxJf3cn56DsMEBgKATCjF184DrFJHFr/TsH5Z8hy+Bfk5k1ETIU 5QVxHtmN1J0+nzDChlTmLYbTLhJw1/Oyx8SM1TiLRw0yfXHW+9ZqANDPHdiXoyO3EzOb j4aaIJ0tMzFxirNtRBQAp2rT/OY8xdEtz21yd79W9M8M475kqGVMbnU1V2IWkRGwg4Qq 4k1w== X-Gm-Message-State: AKwxytcYfYf+xV+t2DJytPKy2m7UADBUTKqxiSQvV3/2rQDz8wZmln6q +eniGRbAtEkMCVJ3RMK3gMfNL5Xz X-Google-Smtp-Source: AH8x225omD8m+GfC+IawhbAxMq53RWesuJynV/6nvankFZOsKYp3sw+8kwjf/PT80d9W5vk8k+iiVA== X-Received: by 10.200.63.120 with SMTP id w53mr23132483qtk.318.1516970689985; Fri, 26 Jan 2018 04:44:49 -0800 (PST) Received: from localhost.localdomain ([189.100.34.201]) by smtp.gmail.com with ESMTPSA id v45sm5509856qtc.45.2018.01.26.04.44.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jan 2018 04:44:49 -0800 (PST) From: Sergio Prado To: buildroot@buildroot.org Date: Fri, 26 Jan 2018 10:44:02 -0200 Message-Id: <1516970642-9098-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] aoetools: fix aoe-stat script that was using /bin/bash in its shebang 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: , Cc: Sergio Prado MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This will make the script more portable, making it possible to run on systems that do not have bash. The script was tested with ash from BusyBox and checked for portability issues and bashisms with shellcheck and checkbashisms tools. The patch was already applied upstream [1] and should be removed in the next version bump. [1] https://github.com/OpenAoE/aoetools/commit/4ef42740538cefd3c1554aa4df5bcb1388ac927b Signed-off-by: Sergio Prado --- ...l-script-interpreter-from-bin-bash-to-bin.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/aoetools/0001-Change-shell-script-interpreter-from-bin-bash-to-bin.patch diff --git a/package/aoetools/0001-Change-shell-script-interpreter-from-bin-bash-to-bin.patch b/package/aoetools/0001-Change-shell-script-interpreter-from-bin-bash-to-bin.patch new file mode 100644 index 000000000000..00b24c8943ec --- /dev/null +++ b/package/aoetools/0001-Change-shell-script-interpreter-from-bin-bash-to-bin.patch @@ -0,0 +1,26 @@ +From 4ef42740538cefd3c1554aa4df5bcb1388ac927b Mon Sep 17 00:00:00 2001 +From: Sergio Prado +Date: Tue, 16 Jan 2018 22:28:32 -0200 +Subject: [PATCH] Change shell script interpreter from /bin/bash to /bin/sh + +This will make the script more portable, making it possible to run on +systems that do not have bash. + +Signed-off-by: Sergio Prado +--- + aoe-stat.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/aoe-stat.in b/aoe-stat.in +index 50e6ac674169..0c1d6f5ebe1e 100755 +--- a/aoe-stat.in ++++ b/aoe-stat.in +@@ -1,4 +1,4 @@ +-#! /bin/bash ++#! /bin/sh + # aoe-stat - collate and present information about AoE storage + # Copyright 2012, CORAID, Inc., and licensed under GPL v.2. + +-- +1.9.1 +