Skip to contentSkip to conversation

kbuild: Allow to select bash in a modified environment

PATCH In review Schspa Shi 2 participants 2 messages Jun 3, 2022 Kbuild

lore
Share & tools
lore

Schspa Shi

author
#0 lore raw

PATCH 1/1 kbuild: Allow to select bash in a modified environment

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] ...]

---
 scripts/check-local-export | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/check-local-export +1 -1
index 017119d89cd2..2defd0bf3552 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2022 Masahiro Yamada <[email protected]>
Signature · 1 line
2.24.3 (Apple Git-128)
#1 lore raw
Quoted 10 lines · 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] ...]

---

Applied to linux-kbuild. Thanks.

Quoted 16 lines
 scripts/check-local-export | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/check-local-export +1 -2
index 017119d89cd2..2defd0bf3552 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0-only
 #
 # Copyright (C) 2022 Masahiro Yamada <[email protected]>
--

2.24.3 (Apple Git-128)

Signature · 2 lines
Best Regards
Masahiro Yamada