Skip to content

Commit

Permalink
Consistent Dockerfile for gcc-cint 5.18 over Debian buster. Note CXXF…
Browse files Browse the repository at this point in the history
…LAGS.
  • Loading branch information
AdamVStephen committed Nov 7, 2023
1 parent 36fc0bc commit 664b1fe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 22 additions & 1 deletion avstephen/gcc-cint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,28 @@ RUN apt-get install -y unzip

RUN apt-get install -y libreadline-dev

RUN cd /opt/cint-master/cint-5.18.00 && ./configure --prefix=/opt --/usr/bin/x86_64-linux-gnu/libreadline.so && make && make install
RUN apt-get install -y vim less

# For the jessie (Debian 8) based image, there was a version plus jre-1.7.0
# So provide java with the buster update
RUN apt-get install -y default-jre

# Invoke with --build-arg CACHEBUST=$(date +%s) to force no-cache beyond here
# Necessary to ensure the configure is rerun to populate the source directory

ARG CACHEBUST=1

RUN cd /opt/cint-master/cint-5.18.00 && ./configure --prefix=/opt --readlinelib=/usr/lib/x86_64-linux-gnu/libreadline.so

RUN cd /opt/cint-master/cint-5.18.00 && sed -i -e 's/CXXFLAGS =/CXXFLAGS = -std=gnu++03/g' Makefile

# Apply CXXFLAGS patch also at the build/ level which is copied into the source level later
RUN cd /opt/cint-master/cint-5.18.00/build && sed -i -e 's/CXXFLAGS =/CXXFLAGS = -std=gnu++03/g' Makefile

RUN cd /opt/cint-master/cint-5.18.00 && make

RUN cd /opt/cint-master/cint-5.18.00 && make install




Expand Down
2 changes: 2 additions & 0 deletions avstephen/gcc-cint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ Provide better links to the above tools
1. llvm tool

docker buildx build -t avstephen/gcc-cint:buster-20231030-slim -f Dockerfile .

docker buildx build -t avstephen/gcc-cint:buster-20231030-slim -f Dockerfile --build-arg CACHEBUST=$(date +%s) .

0 comments on commit 664b1fe

Please sign in to comment.