From 8fbe4db183301c2c421135a043bb70b28c415e04 Mon Sep 17 00:00:00 2001 From: akritkbehera Date: Wed, 14 Jan 2026 11:46:58 +0100 Subject: [PATCH] Bug-Fix: Copy failed inside Docker --- bits_helpers/build.py | 4 ++++ bits_helpers/build_template.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bits_helpers/build.py b/bits_helpers/build.py index b4bd70b..5b3c3b9 100644 --- a/bits_helpers/build.py +++ b/bits_helpers/build.py @@ -1324,6 +1324,10 @@ def performPreferCheckWithTempDir(pkg, cmd): "build_requires": " ".join(spec["build_requires"]), "runtime_requires": " ".join(spec["runtime_requires"]), }) + shutil.copyfile( + join(dirname(realpath(__file__)), 'relocate-me.sh'), + join(scriptDir, 'relocate-me.sh') + ) # Define the environment so that it can be passed up to the # actual build script diff --git a/bits_helpers/build_template.sh b/bits_helpers/build_template.sh index a9e7a4c..4152250 100644 --- a/bits_helpers/build_template.sh +++ b/bits_helpers/build_template.sh @@ -224,7 +224,7 @@ PH=${PKGHASH} PKG_DIR="$WORK_DIR" EoF -cp "${BITS_SCRIPT_DIR}/relocate-me.sh" "$INSTALLROOT/" +cp "$WORK_DIR/SPECS/$ARCHITECTURE/$PKGNAME/$PKGVERSION-$PKGREVISION/relocate-me.sh" "$INSTALLROOT/" # Always relocate the modulefile (if present) so that it works also in devel mode. if [[ ! -s "$INSTALLROOT/etc/profile.d/.bits-relocate" && -f "$INSTALLROOT/etc/modulefiles/$PKGNAME" ]]; then