aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-08-17 15:25:09 +0530
committerArun Isaac2021-08-17 15:25:09 +0530
commit99b11c99393e2d5e52347c456c4370f842c0fb49 (patch)
tree93d6e79e6f873e7fdbf2b222461df6933c7af216
parent4b898a0a437f7d0c58e3766202a48c2c2d5f70d2 (diff)
downloadccwl-99b11c99393e2d5e52347c456c4370f842c0fb49.tar.gz
ccwl-99b11c99393e2d5e52347c456c4370f842c0fb49.tar.lz
ccwl-99b11c99393e2d5e52347c456c4370f842c0fb49.zip
build-aux: Preserve only the LIBRARY_PATH environment in cwltool runs.
* build-aux/generate-cwl-output.sh.in: Preserve only the LIBRARY_PATH environment variable.
-rwxr-xr-xbuild-aux/generate-cwl-output.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/generate-cwl-output.sh.in b/build-aux/generate-cwl-output.sh.in
index 6f56996..ca5803e 100755
--- a/build-aux/generate-cwl-output.sh.in
+++ b/build-aux/generate-cwl-output.sh.in
@@ -28,9 +28,9 @@ output_file=$(basename $cwl_file .cwl).out
{
echo "\$ ccwl compile $(basename $cwl_file .cwl).scm > $cwl_file"
echo "\$ cwltool $cwl_file $@"
- # On Guix, workflows involving gcc need the
- # --preserve-entire-environment flag.
- @CWLTOOL@ --preserve-entire-environment --outdir cwl-output $cwl_file "$@" 2>&1 \
+ # On Guix, workflows involving gcc need to preserve the
+ # LIBRARY_PATH environment variable.
+ @CWLTOOL@ --preserve-environment LIBRARY_PATH --outdir cwl-output $cwl_file "$@" 2>&1 \
| @SED@ '1,2d' \
| @SED@ 's|\[1;30mINFO\[0m ||g' \
| @SED@ "s|$(pwd)|/home/manimekalai|g"