From patchwork Wed Jun 12 23:39:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 1114911 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="C2xacOKh"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45PNdZ4pZgz9s4Y for ; Thu, 13 Jun 2019 09:40:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 58173876CF; Wed, 12 Jun 2019 23:39:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0+8cfpL6dgcp; Wed, 12 Jun 2019 23:39:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1DFE3875EB; Wed, 12 Jun 2019 23:39:56 +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 5D1791BF397 for ; Wed, 12 Jun 2019 23:39:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 586A488175 for ; Wed, 12 Jun 2019 23:39:54 +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 1MEKFyqimXTt for ; Wed, 12 Jun 2019 23:39:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by hemlock.osuosl.org (Postfix) with ESMTPS id 9DB8B8816B for ; Wed, 12 Jun 2019 23:39:52 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id m30so10056326pff.8 for ; Wed, 12 Jun 2019 16:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iC8ZIRhe2V1jZCNbvTCjxA7snSgKf7mStLthgQwUGNM=; b=C2xacOKhMCCX1eiNjvPi5ELZwDCBMVxJykCKH6p6necetPkbzz1sblBLSxmsiMMaLT ja/Wty0X9WedsC/yBbYWCtjA6yOhKQWxk0NqVydkOQZ3VIiLumTwqr1KPtMwrtsx/Tsm J2+L3TLDCpqeOiGEOSQbhnBzdIC3VVZIUJ1Zo= 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=iC8ZIRhe2V1jZCNbvTCjxA7snSgKf7mStLthgQwUGNM=; b=c3cLAcECwdVG43T9qcoYFetURhYW8fu8aLbfn8wHoiPmkQ9vwVdGux5Vm2lCbMj8S6 w/OHQU1iwQcHtITzhlb7eljvRZ8baT7+oHxTNAo7iJLIqWoDnrxADeujGfv/MwqfTsct mCAdI0PztrTwkZ4xmFo8iO/NObboY6G3xLGjMPY2Le4ROQWKJfxYMkNw69gzFPCPgB5j 5j19ibHDdbhCl2pscohTzQDi9gRhayeUqhtBlNP1PdbqnR+QjUoinVPBB+0flJs9oNIf 9+5HDQ9yLQhSKTO/lijqey2sNLtOI2PFPswPvGhkA0W9tXH83xlCbFYzTLYV5m8eJuSb ZvNQ== X-Gm-Message-State: APjAAAVKnD+FiuOzlu3f5hA4s01Azeqk7YpvhCFcgsn2+XunREe0MnPx yGfvciMqTQ6zSj7Gu/6lNR2E+8NvwS9GVlbXtvCGMZmQGO0jBweNiox7Azb5Ez8bc6MDGhboawm GCp1dE5oll114WK9QAe7fYMsiPeyA+jDt01w8X8QK6Yh6vqtd13BpgA4XYUqs1wMFV1ah X-Google-Smtp-Source: APXvYqwruHG4l4B8jYjSj/CvYqmKsKr8VsxPM+xbul6LQa1UgzV+FIFmjNjhdNlguE1z3XnRnyyg9w== X-Received: by 2002:a63:1b65:: with SMTP id b37mr27287132pgm.408.1560382791686; Wed, 12 Jun 2019 16:39:51 -0700 (PDT) Received: from lbrmn-mmayer.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id p6sm548237pgs.77.2019.06.12.16.39.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 16:39:51 -0700 (PDT) From: Markus Mayer To: Buildroot Mailing List Date: Wed, 12 Jun 2019 16:39:33 -0700 Message-Id: <20190612233934.14805-2-mmayer@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190612233934.14805-1-mmayer@broadcom.com> References: <20190612233934.14805-1-mmayer@broadcom.com> Subject: [Buildroot] [PATCH 1/2] lmbench: mark scripts/build as bash script X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Markus Mayer MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" While bash supports the "+=" operator for environment variables, /bin/sh does not. scripts/build is making use of "+=" but declares itself to be a /bin/sh script. This leads to errors of the form ../scripts/build: 21: ../scripts/build: LDLIBS+= -lm: not found and doesn't change the contents of LDLIBS as was the intention. Therefore, we change the interpreter to /bin/bash, which makes things work as intended. Signed-off-by: Markus Mayer --- package/lmbench/0001-build_use_bash.patch | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 package/lmbench/0001-build_use_bash.patch diff --git a/package/lmbench/0001-build_use_bash.patch b/package/lmbench/0001-build_use_bash.patch new file mode 100644 index 000000000000..c68ed2ef7ac4 --- /dev/null +++ b/package/lmbench/0001-build_use_bash.patch @@ -0,0 +1,8 @@ +--- lmbench-3.0-a9/scripts/build.orig 2006-06-27 09:25:18.000000000 -0700 ++++ lmbench-3.0-a9/scripts/build 2019-06-12 16:08:26.078093924 -0700 +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + + CC=${CC-`../scripts/compiler`} + MAKE=${MAKE-`../scripts/make`}