Skip to content

Commit c7bc2ef

Browse files
use sed to apply the patch
1 parent e4a6ef8 commit c7bc2ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockerfiles/ubuntu20-g4.11.0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ RUN git clone https://gitlab.cern.ch/geant4/geant4.git &&\
1818
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc
1919

2020
# Apply expat patch to geant4 install
21-
RUN patch -p5 -d /usr/local/lib/Geant4-11.0.4/ < /tmp/ubuntu20-g4.11.0-Geant4PackageCache.cmake-patch
21+
RUN sed -i 's#geant4_set_and_check_package_variable(EXPAT_LIBRARY "" "")#geant4_set_and_check_package_variable(EXPAT_LIBRARY "/usr/lib/x86_64-linux-gnu/libexpat.so" FILEPATH "Path to a library.")#g' /usr/local/lib/Geant4-11.0.4/Geant4PackageCache.cmake

0 commit comments

Comments
 (0)