All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: Allow to select bash in a modified environment
@ 2022-06-03  9:38 Schspa Shi
  2022-06-03 16:35 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Schspa Shi @ 2022-06-03  9:38 UTC (permalink / raw)
  To: ndesaulniers, masahiroy, michal.lkml
  Cc: linux-kbuild, linux-kernel, peterz, Schspa Shi

This fixes the build error when the system has a default bash version
which is too old to support associative array variables.

The build error log as fellowing:
linux/scripts/check-local-export: line 11: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

Signed-off-by: Schspa Shi <schspa@gmail.com>
---
 scripts/check-local-export | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/check-local-export b/scripts/check-local-export
index 017119d89cd2..2defd0bf3552 100755
--- a/scripts/check-local-export
+++ b/scripts/check-local-export
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2022 Masahiro Yamada <masahiroy@kernel.org>
-- 
2.24.3 (Apple Git-128)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: Allow to select bash in a modified environment
  2022-06-03  9:38 [PATCH] kbuild: Allow to select bash in a modified environment Schspa Shi
@ 2022-06-03 16:35 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2022-06-03 16:35 UTC (permalink / raw)
  To: Schspa Shi
  Cc: Nick Desaulniers, Michal Marek, Linux Kbuild mailing list,
	Linux Kernel Mailing List, Peter Zijlstra (Intel)

On Fri, Jun 3, 2022 at 6:39 PM Schspa Shi <schspa@gmail.com> wrote:
>
> This fixes the build error when the system has a default bash version
> which is too old to support associative array variables.
>
> The build error log as fellowing:
> linux/scripts/check-local-export: line 11: declare: -A: invalid option
> declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
>
> Signed-off-by: Schspa Shi <schspa@gmail.com>
> ---


Applied to linux-kbuild. Thanks.


>  scripts/check-local-export | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/check-local-export b/scripts/check-local-export
> index 017119d89cd2..2defd0bf3552 100755
> --- a/scripts/check-local-export
> +++ b/scripts/check-local-export
> @@ -1,4 +1,4 @@
> -#!/bin/bash
> +#!/usr/bin/env bash
>  # SPDX-License-Identifier: GPL-2.0-only
>  #
>  # Copyright (C) 2022 Masahiro Yamada <masahiroy@kernel.org>
> --
> 2.24.3 (Apple Git-128)
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-03 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03  9:38 [PATCH] kbuild: Allow to select bash in a modified environment Schspa Shi
2022-06-03 16:35 ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.