Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bits_helpers/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bits_helpers/build_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down