From 8344d7c331fe25cf0974f8dda3fd1c0e3e11aab1 Mon Sep 17 00:00:00 2001 From: Jehan Date: Mon, 23 Sep 2024 01:18:14 +0200 Subject: [PATCH] tools: more portability fixes. Apparently mktemp with busybox (and no GNU coreutils) requires mktemp template to be XXXXXX. Thanks to pippin for raising this issue. --- tools/in-build-gimp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/in-build-gimp.sh b/tools/in-build-gimp.sh index b4a3b47aab..b1254e7e98 100755 --- a/tools/in-build-gimp.sh +++ b/tools/in-build-gimp.sh @@ -2,7 +2,7 @@ set -e -export GIMP3_DIRECTORY=$(mktemp -d ${GIMP_GLOBAL_BUILD_ROOT}/.GIMP3-build-config-XXX) +export GIMP3_DIRECTORY=$(mktemp -d ${GIMP_GLOBAL_BUILD_ROOT}/.GIMP3-build-config-XXXXXX) echo INFO: temporary GIMP configuration directory: $GIMP3_DIRECTORY if [ -n "$GIMP_TEMP_UPDATE_RPATH" ]; then @@ -52,7 +52,7 @@ if [ -n "$GIMP3_DIRECTORY" ] && [ -d "$GIMP3_DIRECTORY" ] && [ -O "$GIMP3_DIRECT exit 1 fi used_dir_prefix=$(realpath "$GIMP3_DIRECTORY") - used_dir_prefix=${used_dir_prefix%???} + used_dir_prefix=${used_dir_prefix%??????} tmpl_dir_prefix=$(realpath "$GIMP_GLOBAL_BUILD_ROOT")/.GIMP3-build-config- if [ "$used_dir_prefix" != "$tmpl_dir_prefix" ]; then echo "ERROR: \$GIMP3_DIRECTORY ($GIMP3_DIRECTORY) should be under the build directory with a specific prefix."