Skip to content
Snippets Groups Projects
Commit 7cc9984b authored by Simon Rose's avatar Simon Rose
Browse files

Merge branch 'ld_library_path_issue' into 'master'

E3-310: Update require-ess/tools/setE3Env.bash to solve a LD_LIBRARY_PATH related issue

See merge request e3/e3-require!34
parents 0ae28e75 b1fda669
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
# the ROOT build system in ${ROOTSYS}/bin/, and modified # the ROOT build system in ${ROOTSYS}/bin/, and modified
# a little to return its result # a little to return its result
# Wednesday, July 11 23:19:00 CEST 2018, jhlee # Wednesday, July 11 23:19:00 CEST 2018, jhlee
drop_from_path() { drop_from_path() {
# #
# Assert that we got enough arguments # Assert that we got enough arguments
...@@ -157,9 +158,8 @@ if [ -n "$EPICS_BASE" ]; then ...@@ -157,9 +158,8 @@ if [ -n "$EPICS_BASE" ]; then
fi fi
e3_ld_path=${LD_LIBRARY_PATH} # Drop the require-related LD_LIBRARY pathes set previously
drop_e3_ld_path="${E3_REQUIRE_LIB}/${EPICS_HOST_ARCH}" LD_LIBRARY_PATH=$(drop_from_path "$LD_LIBRARY_PATH" "${E3_REQUIRE_LOCATION}[^:]*")
LD_LIBRARY_PATH=$(drop_from_path "${e3_ld_path}" "${drop_e3_ld_path}")
export LD_LIBRARY_PATH export LD_LIBRARY_PATH
unset E3_REQUIRE_NAME unset E3_REQUIRE_NAME
...@@ -327,8 +327,8 @@ export PATH ...@@ -327,8 +327,8 @@ export PATH
old_ld_path=${LD_LIBRARY_PATH} old_ld_path=${LD_LIBRARY_PATH}
E3_LD_LIBRARY_PATH="${EPICS_BASE}/lib/${EPICS_HOST_ARCH}:${E3_REQUIRE_LIB}/${EPICS_HOST_ARCH}" E3_LD_LIBRARY_PATH="${EPICS_BASE}/lib/${EPICS_HOST_ARCH}:${E3_REQUIRE_LIB}/${EPICS_HOST_ARCH}"
LD_LIBRARY_PATH=$(set_variable "${old_ld_path}" "${E3_LD_LIBRARY_PATH}") LD_LIBRARY_PATH=$(set_variable "${old_ld_path}" "${E3_LD_LIBRARY_PATH}")
export LD_LIBRARY_PATH export LD_LIBRARY_PATH
# Add iocsh.bash autocompletion # Add iocsh.bash autocompletion
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment