Skip to content

Commit

Permalink
manually recreate libstdc++ symlinks in ci-conda images
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 3, 2024
1 parent d63e1aa commit ae32db0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ci-conda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ if [[ "$LINUX_VER" == "rockylinux"* ]]; then
fi
find /opt/conda -follow -type f -name '*.a' -delete
find /opt/conda -follow -type f -name '*.pyc' -delete
# Recreate missing libstdc++ symlinks.
# This should be removed when it is fixed upstream.
# ref: https://github.com/rapidsai/ci-imgs/issues/185
if [[ ! -e "/opt/conda/lib/libstdc++.so.6" ]]; then
ln -sf \
"$(ls /opt/conda/lib/libstdc++.so.6.* | head -1)" \
/opt/conda/lib/libstdc++.so.6
fi
if [[ ! -e "/opt/conda/lib/libstdc++.so" ]]; then
ln -sf \
"$(ls /opt/conda/lib/libstdc++.so.6.* | head -1)" \
/opt/conda/lib/libstdc++.so
fi
conda clean -afy
EOF

Expand Down

0 comments on commit ae32db0

Please sign in to comment.