Skip to content
Snippets Groups Projects
Commit d3af1b27 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

feat: use ld.so.conf.d to add paths

parent 9cae68ac
No related branches found
No related tags found
1 merge request!856feat: use ld.so.conf.d to add paths
......@@ -314,6 +314,13 @@ EOF
## set ROOT TFile forward compatibility
RUN sed -i 's/# \(TFile.v630forwardCompatibility:\) no/\1 yes/' /usr/local/etc/root/system.rootrc
## Setup ld.so.conf with what could go in LD_LIBRARY_PATH (but lower priority)
## Ref: https://man7.org/linux/man-pages/man8/ld.so.8.html
COPY <<EOF /etc/ld.so.conf.d/eic-shell.conf
/usr/local/lib/root
EOF
RUN ldconfig
## set the local spack configuration
ENV SPACK_DISABLE_LOCAL_CONFIG="true"
RUN <<EOF
......
#!/bin/bash
# FIXME: add ROOT libraries to LD_LIBRARY_PATH until removal can be tested
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/root
if [ ! -z ${EIC_SHELL_PREFIX} ]; then
if [ "$LD_LIBRARY_PATH" != *"${EIC_SHELL_PREFIX}/lib"* ]; then
export LD_LIBRARY_PATH=$EIC_SHELL_PREFIX/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
......
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