qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] Fix for Haiku


From: Thomas Huth
Subject: Re: [PATCH 2/2] Fix for Haiku
Date: Sun, 4 Jul 2021 09:16:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 03/07/2021 23.12, Richard Zak wrote:
Fix for path to env

Please change the subject to something more meaning full, e.g. "Fix setting of the SHELL variable for Haiku".

In the patch description, you should mention that there is no /usr/bin/env on Haiku.

Signed-off-by: Richard Zak <richard.j.zak@gmail.com <mailto:richard.j.zak@gmail.com>>
---
  Makefile | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 30f19d33bb..ced9b97372 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,11 @@ SRC_PATH=.
  # we have explicit rules for everything
  MAKEFLAGS += -rR

+ifneq ($(BE_HOST_CPU),)
+SHELL = /bin/env bash -o pipefail
+else
  SHELL = /usr/bin/env bash -o pipefail
+endif

Actually, I wonder why we had to take the detour via /usr/bin/env here at all? Couldn't we simply set

SHELL = bash -o pipefail

by default, or does this cause some trouble on other systems?

If nobody objects, I'd suggest that you change your patch to always set "SHELL = bash -o pipefail" unconditionally.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]