Skip to content

Commit 6ec711b

Browse files
authored
Merge pull request #11667 from ethereum/z3PPAScriptUpdate
Update Z3 version to 4.8.12 in PPA script and add static binary package.
2 parents ce0e0c4 + 88b5be4 commit 6ec711b

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

scripts/deps-ppa/static_z3.sh

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ set -ev
2424

2525
keyid=70D110489D66E2F6
2626
27-
packagename=libz3-static-dev
28-
version=4.8.10
27+
packagename=z3-static
28+
version=4.8.12
2929

30-
DISTRIBUTIONS="focal groovy"
30+
DISTRIBUTIONS="focal groovy hirsute"
3131

3232
for distribution in $DISTRIBUTIONS
3333
do
@@ -62,7 +62,7 @@ mkdir debian
6262
echo 9 > debian/compat
6363
# TODO: the Z3 packages have different build dependencies
6464
cat <<EOF > debian/control
65-
Source: libz3-static-dev
65+
Source: z3-static
6666
Section: science
6767
Priority: extra
6868
Maintainer: Daniel Kirchner <[email protected]>
@@ -78,6 +78,22 @@ Homepage: https://github.com/Z3Prover/z3
7878
Vcs-Git: git://github.com/Z3Prover/z3.git
7979
Vcs-Browser: https://github.com/Z3Prover/z3
8080
81+
Package: z3-static
82+
Architecture: any
83+
Breaks: z3
84+
Replaces: z3
85+
Depends: \${misc:Depends}, \${shlibs:Depends}
86+
Description: theorem prover from Microsoft Research
87+
Z3 is a state-of-the art theorem prover from Microsoft Research. It can be
88+
used to check the satisfiability of logical formulas over one or more
89+
theories. Z3 offers a compelling match for software analysis and verification
90+
tools, since several common software constructs map directly into supported
91+
theories.
92+
.
93+
The Z3 input format is an extension of the one defined by the SMT-LIB 2.0
94+
standard.
95+
96+
8197
Package: libz3-static-dev
8298
Section: libdevel
8399
Architecture: any-amd64
@@ -133,6 +149,9 @@ usr/include/*
133149
usr/lib/*/libz3.a
134150
usr/lib/*/cmake/z3/*
135151
EOF
152+
cat <<EOF > debian/z3-static.install
153+
usr/bin/z3
154+
EOF
136155
cat <<EOF > debian/copyright
137156
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
138157
Upstream-Name: z3
@@ -179,7 +198,7 @@ This program is free software: you can redistribute it and/or modify
179198
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
180199
EOF
181200
cat <<EOF > debian/changelog
182-
libz3-static-dev (0.0.1-1ubuntu0) saucy; urgency=low
201+
z3-static (0.0.1-1ubuntu0) saucy; urgency=low
183202
184203
* Initial release.
185204

0 commit comments

Comments
 (0)