From 2349bae553fa04837c512d79f23bb3c29ada79e1 Mon Sep 17 00:00:00 2001 From: Karlheinz Friedberger Date: Tue, 17 Sep 2024 22:07:48 +0200 Subject: [PATCH] configure Ivy with a new classifier for 'arch', tested for Z3 binary. --- build.xml | 10 +++-- build/build-ivy.xml | 4 +- build/build-publish-solvers/macros.xml | 7 ++-- build/build-publish-solvers/solver-z3.xml | 37 ++++++++++-------- build/ivysettings.xml | 9 +++-- lib/native/x86_64-linux/libz3.so | 2 +- lib/native/x86_64-linux/libz3java.so | 2 +- solvers_ivy_conf/ivy_z3.xml | 47 +++++++++++++++-------- 8 files changed, 70 insertions(+), 48 deletions(-) diff --git a/build.xml b/build.xml index 9710d2cc88..7dad4a974f 100644 --- a/build.xml +++ b/build.xml @@ -79,12 +79,14 @@ SPDX-License-Identifier: Apache-2.0 - + - + + + - - + + diff --git a/build/build-ivy.xml b/build/build-ivy.xml index b5b6b733b5..e571206b34 100644 --- a/build/build-ivy.xml +++ b/build/build-ivy.xml @@ -66,7 +66,7 @@ SPDX-License-Identifier: Apache-2.0 - + @@ -80,7 +80,7 @@ SPDX-License-Identifier: Apache-2.0 - + diff --git a/build/build-publish-solvers/macros.xml b/build/build-publish-solvers/macros.xml index f7145604d8..d698480928 100644 --- a/build/build-publish-solvers/macros.xml +++ b/build/build-publish-solvers/macros.xml @@ -12,7 +12,8 @@ SPDX-License-Identifier: Apache-2.0 + xmlns:ivy="antlib:org.apache.ivy.ant" + xmlns:e="http://ant.apache.org/ivy/extra"> @@ -38,12 +39,12 @@ SPDX-License-Identifier: Apache-2.0 You now want to run - svn add repository/${ivy.organisation}/${ivy.module}/*-@{solverVersion}* + svn add repository/${ivy.organisation}/${ivy.module}/*-@{solverVersion}* repository/${ivy.organisation}/${ivy.module}/*/*-@{solverVersion}* svn ci repository/${ivy.organisation}/${ivy.module} -m"publish version @{solverVersion} of @{solverName} Solver" to make the new version publicly available. diff --git a/build/build-publish-solvers/solver-z3.xml b/build/build-publish-solvers/solver-z3.xml index 240043e645..a9153b36d8 100644 --- a/build/build-publish-solvers/solver-z3.xml +++ b/build/build-publish-solvers/solver-z3.xml @@ -34,7 +34,7 @@ SPDX-License-Identifier: Apache-2.0 - executing `python scripts/mk_make.py --java` to generate all Java related files. Executing `make` is not required. - Please specify the path to Z3 (ARM64 version) with the flag -Dz3.pathArm64=/path/to/z3-arm64 (e.g. `bin` directory). + Please specify the path to Z3 (ARM64 version) with the flag -Dz3.pathArm64=/path/to/z3 (e.g. `bin` directory). The path has to point to the root Z3 folder (i.e., the path is ending with '/bin') and can be relative or absolute. Note that shell substitutions do not work. Please provide all releases (Linux, MacOS, and Windows for ARM64 architecture) together in the same root directory, @@ -52,21 +52,24 @@ SPDX-License-Identifier: Apache-2.0 libz3.so has missing SONAME property. Please run 'patchelf --set-soname libz3.so ${z3.path}/libz3.so'. - - - - - - - - - - + + + + + + + + + + + + + - - - - + + + + @@ -76,7 +79,7 @@ SPDX-License-Identifier: Apache-2.0 Please specify the path to Z3 with the flag -Dz3.path=/path/to/z3 (e.g. `bin` directory). The path has to point to the root Z3 folder and can be relative or absolute. Note that shell substitutions do not work. - Please provide all releases (Linux64, MacOS, and Windows64) together in the same root directory, + Please provide all releases (Linux, MacOS, and Windows) together in the same root directory, e.g., copy the releases (especially the content of their `bin` directories) together into one directory. The only overlap between those releases is the JAR file, which should be equal anyway. Additionally, make the Java sources available in this directory. @@ -92,7 +95,7 @@ SPDX-License-Identifier: Apache-2.0 - + diff --git a/build/ivysettings.xml b/build/ivysettings.xml index be96cf00b5..39a5864f2e 100644 --- a/build/ivysettings.xml +++ b/build/ivysettings.xml @@ -22,14 +22,17 @@ SPDX-License-Identifier: Apache-2.0 - + - + - + diff --git a/lib/native/x86_64-linux/libz3.so b/lib/native/x86_64-linux/libz3.so index fb25e3fd75..29c5b70571 120000 --- a/lib/native/x86_64-linux/libz3.so +++ b/lib/native/x86_64-linux/libz3.so @@ -1 +1 @@ -../../java/runtime-z3/libz3.so \ No newline at end of file +../../java/runtime-z3/x64/libz3.so \ No newline at end of file diff --git a/lib/native/x86_64-linux/libz3java.so b/lib/native/x86_64-linux/libz3java.so index b6422c8714..c287c055d4 120000 --- a/lib/native/x86_64-linux/libz3java.so +++ b/lib/native/x86_64-linux/libz3java.so @@ -1 +1 @@ -../../java/runtime-z3/libz3java.so \ No newline at end of file +../../java/runtime-z3/x64/libz3java.so \ No newline at end of file diff --git a/solvers_ivy_conf/ivy_z3.xml b/solvers_ivy_conf/ivy_z3.xml index 268d0af4f5..35f36b0231 100644 --- a/solvers_ivy_conf/ivy_z3.xml +++ b/solvers_ivy_conf/ivy_z3.xml @@ -23,31 +23,44 @@ SPDX-License-Identifier: Apache-2.0 - - - - - + + + + + + + + + + + + + + + - - - - + + + + + - - - - + + + + + - - - - + + + + +