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`} From patchwork Wed Jun 12 23:39:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 1114912 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.133; helo=hemlock.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="C5Aonwxf"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45PNdk4jCBz9s4Y for ; Thu, 13 Jun 2019 09:40:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8BBD38816B; Wed, 12 Jun 2019 23:40:07 +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 0bg-VRcTejJL; Wed, 12 Jun 2019 23:40:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F321C88175; Wed, 12 Jun 2019 23:40:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0DC681BF397 for ; Wed, 12 Jun 2019 23:40:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 0A35E20027 for ; Wed, 12 Jun 2019 23:40:06 +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 ksx1APnCRI2D for ; Wed, 12 Jun 2019 23:40:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by silver.osuosl.org (Postfix) with ESMTPS id DAB7A226C2 for ; Wed, 12 Jun 2019 23:40:04 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id i189so10561222pfg.10 for ; Wed, 12 Jun 2019 16:40:04 -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=CVEObqr9kfSOepDgap1YaiGQKUVyQAIRTBWUXTbyo/A=; b=C5Aonwxfd7jR59qvb1+8Er9My/tXvszGYCQ3gGQyyzHgIfnq7qOsyxyKksICyM6DTI Bh4esue+SdxXpYH7QqhWdZPOio/OAPmHsGyrs7ZHg5rGvCCmhUQdfAy2YMP2FUSq6esr LaoIYqXFvmDXoAI3J9O1Uao+79QvP+5q9T1lw= 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=CVEObqr9kfSOepDgap1YaiGQKUVyQAIRTBWUXTbyo/A=; b=btZWFrHgyQMyuvntc3wC3My95InEe2ddasbTXglfaEwEOdJeIk3YbHKxm/hW+jgRsZ 96cFzjjH7MXxyIsUOfhHZcGkQauLwY49p4/za5G7gGUFO/ZIuAvOZkJGaR6rI3vCjyBk cxinFWY+XLNUcFmRSWcfduQyttcIWGZp3uC3GiNBFs8/s/Ao1LxnA0IyvmmZN9UeQ2O5 zgNKCNlgR2SgwzC8zI4+GwZC1J3WaPvdxDKaUDJ6LQU3p9TgmSsNTXttzoFD8c+fUJnb 7sOa0mu35EblsgKU15B3acvJkULQZ7/gmyYEcPzBwJ9FKj2HDOJxk/F2ilWYFNjBNBLW AC/g== X-Gm-Message-State: APjAAAUE4VwMScUvW+5u9Duo5yQyFlDI3qiy63Dq90ksKWTe3/K942ko JU0o9kWEFPIxZY1ekL+/nOrMxQ7mS0Cs/hMk7JaGCTgosXAuA/j7/JkwZH4h7yatiE3Ei9YB72U 7bJDTI5SlHVjR0IwfsAPbgVTu2++5eQqRwolRKQRoAy+jDgSkDBXkdDcn0vUZN9ppGH3A X-Google-Smtp-Source: APXvYqw+PX28L0ncYpVdhKhNqByXkFRbJ3RX8d5l864t6KYC4B2qsMj9rt9yMtpjuoCmXt/eWIvgmw== X-Received: by 2002:a63:a044:: with SMTP id u4mr26365482pgn.316.1560382804043; Wed, 12 Jun 2019 16:40:04 -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.40.02 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 16:40:03 -0700 (PDT) From: Markus Mayer To: Buildroot Mailing List Date: Wed, 12 Jun 2019 16:39:34 -0700 Message-Id: <20190612233934.14805-3-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 2/2] lmbench: install the lmbench script on the target 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" lmbench seems to be forgetting to install its main script when "make install" is being performed. Rectify this by adding lmbench to the list of executables. Signed-off-by: Markus Mayer --- package/lmbench/0002-install_lmbench.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/lmbench/0002-install_lmbench.patch diff --git a/package/lmbench/0002-install_lmbench.patch b/package/lmbench/0002-install_lmbench.patch new file mode 100644 index 000000000000..7397ea7e3a33 --- /dev/null +++ b/package/lmbench/0002-install_lmbench.patch @@ -0,0 +1,11 @@ +--- lmbench-3.0-a9/src/Makefile.orig 2007-04-10 05:16:49.000000000 -0700 ++++ lmbench-3.0-a9/src/Makefile 2019-06-12 16:11:49.955136809 -0700 +@@ -98,7 +98,7 @@ + $O/lat_select $O/lat_pipe $O/lat_rpc $O/lat_syscall $O/lat_tcp \ + $O/lat_udp $O/lat_mmap $O/mhz $O/lat_proc $O/lat_pagefault \ + $O/lat_connect $O/lat_fs $O/lat_sig $O/lat_mem_rd $O/lat_ctx \ +- $O/lat_sem \ ++ $O/lat_sem $O/lmbench \ + $O/memsize $O/lat_unix $O/lmdd $O/timing_o $O/enough \ + $O/msleep $O/loop_o $O/lat_fifo $O/lmhttp $O/lat_http \ + $O/lat_fcntl $O/disk $O/lat_unix_connect $O/flushdisk \