From 2c22589782d74e9db5d79f72b259df08beb5ef7a Mon Sep 17 00:00:00 2001 From: Ilya Katsnelson Date: Mon, 30 Oct 2023 01:39:31 +0300 Subject: [PATCH] build: replace `true` with a custom noop script `true` might be a shell built-in, or simply not accessible in the hardcoded locations. Replace it with a custom script that does nothing. Signed-off-by: Ilya Katsnelson --- include/prereq-build.mk | 2 +- scripts/noop.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 scripts/noop.sh diff --git a/include/prereq-build.mk b/include/prereq-build.mk index e5f20fff22..49340ce3e4 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -238,4 +238,4 @@ prereq: $(STAGING_DIR_HOST)/bin/mkhash $(STAGING_DIR_HOST)/bin/xxd # Install ldconfig stub $(eval $(call TestHostCommand,ldconfig-stub,Failed to install stub, \ - $(LN) $(firstword $(wildcard /bin/true /usr/bin/true)) $(STAGING_DIR_HOST)/bin/ldconfig)) + $(LN) $(SCRIPT_DIR)/noop.sh $(STAGING_DIR_HOST)/bin/ldconfig)) diff --git a/scripts/noop.sh b/scripts/noop.sh new file mode 100755 index 0000000000..96b71fe3bf --- /dev/null +++ b/scripts/noop.sh @@ -0,0 +1,2 @@ +#!/bin/sh +# This script does nothing, intentionally.