Skip to content

Commit 359b014

Browse files
authored
Merge pull request #16250 from argotorg/remove-duplicate-z3-binaries
Use z3-solver python package instead of z3 binaries
2 parents 1460b62 + d8b4bd8 commit 359b014

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

scripts/docker/buildpack-deps/Dockerfile.ubuntu2404

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# (c) 2016-2024 solidity contributors.
2323
#------------------------------------------------------------------------------
2424
FROM buildpack-deps:noble AS base
25-
LABEL version="4"
25+
LABEL version="5"
2626

2727
ARG DEBIAN_FRONTEND=noninteractive
2828

@@ -31,6 +31,7 @@ ARG DEBIAN_FRONTEND=noninteractive
3131
ENV PIP_BREAK_SYSTEM_PACKAGES 1
3232

3333
RUN set -ex; \
34+
z3_version="4.13.3"; \
3435
dist=$(grep DISTRIB_CODENAME /etc/lsb-release | cut -d= -f2); \
3536
echo "deb http://ppa.launchpad.net/ethereum/cpp-build-deps/ubuntu $dist main" >> /etc/apt/sources.list ; \
3637
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1c52189c923f6ca9 ; \
@@ -62,7 +63,7 @@ RUN set -ex; \
6263
pylint \
6364
requests \
6465
tabulate \
65-
z3-solver;
66+
z3-solver=="${z3_version}";
6667

6768
# Eldarica
6869
RUN set -ex; \
@@ -84,15 +85,6 @@ RUN set -ex; \
8485
unzip -j /opt/cvc5.zip "${cvc5_archive_name}/bin/cvc5" -d /usr/bin; \
8586
rm -f /opt/cvc5.zip;
8687

87-
# Z3
88-
RUN set -ex; \
89-
z3_version="4.13.3"; \
90-
z3_archive_name="z3-${z3_version}-x64-glibc-2.35"; \
91-
wget "https://github.com/Z3Prover/z3/releases/download/z3-${z3_version}/${z3_archive_name}.zip" -O /opt/z3.zip; \
92-
test "$(sha256sum /opt/z3.zip)" = "32c7377026733c9d7b33c21cd77a68f50ba682367207b031a6bfd80140a8722f /opt/z3.zip"; \
93-
unzip -j /opt/z3.zip "${z3_archive_name}/bin/z3" -d /usr/bin; \
94-
rm -f /opt/z3.zip;
95-
9688
FROM base AS libraries
9789

9890
# EVMONE

scripts/docker/buildpack-deps/Dockerfile.ubuntu2404.clang

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# (c) 2016-2024 solidity contributors.
2323
#------------------------------------------------------------------------------
2424
FROM buildpack-deps:noble AS base
25-
LABEL version="5"
25+
LABEL version="6"
2626

2727
ARG DEBIAN_FRONTEND=noninteractive
2828

@@ -31,6 +31,7 @@ ARG DEBIAN_FRONTEND=noninteractive
3131
ENV PIP_BREAK_SYSTEM_PACKAGES 1
3232

3333
RUN set -ex; \
34+
z3_version="4.13.3"; \
3435
dist=$(grep DISTRIB_CODENAME /etc/lsb-release | cut -d= -f2); \
3536
echo "deb http://ppa.launchpad.net/ethereum/cpp-build-deps/ubuntu $dist main" >> /etc/apt/sources.list ; \
3637
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1c52189c923f6ca9 ; \
@@ -60,7 +61,7 @@ RUN set -ex; \
6061
pylint \
6162
requests \
6263
tabulate \
63-
z3-solver;
64+
z3-solver=="${z3_version}";
6465

6566
# Eldarica
6667
RUN set -ex; \
@@ -83,15 +84,6 @@ RUN set -ex; \
8384
unzip -j /opt/cvc5.zip "${cvc5_archive_name}/bin/cvc5" -d /usr/bin; \
8485
rm -f /opt/cvc5.zip;
8586

86-
# Z3
87-
RUN set -ex; \
88-
z3_version="4.13.3"; \
89-
z3_archive_name="z3-${z3_version}-x64-glibc-2.35"; \
90-
wget "https://github.com/Z3Prover/z3/releases/download/z3-${z3_version}/${z3_archive_name}.zip" -O /opt/z3.zip; \
91-
test "$(sha256sum /opt/z3.zip)" = "32c7377026733c9d7b33c21cd77a68f50ba682367207b031a6bfd80140a8722f /opt/z3.zip"; \
92-
unzip -j /opt/z3.zip "${z3_archive_name}/bin/z3" -d /usr/bin; \
93-
rm -f /opt/z3.zip;
94-
9587
FROM base AS libraries
9688

9789
ENV CC clang

0 commit comments

Comments
 (0)