From d5aab5256d74cf6c1f9ff5f7e3f7d11d553c6a92 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Mon, 3 Jul 2023 00:17:53 +0000 Subject: [PATCH] fix: only apply libQt5Core.so fix when exists --- containers/jug/dev.Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/containers/jug/dev.Dockerfile b/containers/jug/dev.Dockerfile index c390af8bb..4b0c8f8ee 100644 --- a/containers/jug/dev.Dockerfile +++ b/containers/jug/dev.Dockerfile @@ -173,7 +173,9 @@ RUN du -sh $SPACK_ROOT \ ## See #https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir ## and links therin for more info -RUN strip --remove-section=.note.ABI-tag /usr/local/lib/libQt5Core.so +RUN if [ -f /usr/local/lib/libQt5Core.so ] ; then \ + strip --remove-section=.note.ABI-tag /usr/local/lib/libQt5Core.so;\ + fi RUN spack debug report \ | sed "s/^/ - /" | sed "s/\* \*\*//" | sed "s/\*\*//" \ -- GitLab