|
1 | 1 | --- |
2 | 2 | ############################################################################ |
3 | | -# cmake - required by OpenJ9 and OpenJFX builds - requires C++11 compiler # |
| 3 | +# cmake - required by OpenJ9, OpenJFX and Wazuh - requires C++11 compiler # |
4 | 4 | ############################################################################ |
5 | 5 |
|
| 6 | +# 3.15.0 is required to be able to build the ccache version from the jdk25u devkit |
| 7 | +# The newer 4.1.0 would be more consistent with the version OpenJ9 uses on macos |
| 8 | +# But 3.15.0 will mean it can use the system on on Ubuntu 20+ without rebuilding here |
6 | 9 | - name: Set cmake version |
7 | | - set_fact: cmakeVersion=3.11.4 |
| 10 | + set_fact: cmakeVersion=3.15.0 |
8 | 11 | tags: cmake |
9 | 12 |
|
10 | 13 | - name: Test if cmake is installed on path |
|
25 | 28 |
|
26 | 29 | - name: Download cmake |
27 | 30 | get_url: |
28 | | - url: https://github.com/Kitware/CMake/releases/download/v3.11.4/cmake-{{ cmakeVersion }}.tar.gz |
| 31 | + url: https://github.com/Kitware/CMake/releases/download/v{{ cmakeVersion }}/cmake-{{ cmakeVersion }}.tar.gz |
29 | 32 | dest: /tmp/cmake-{{ cmakeVersion }}.tar.gz |
30 | 33 | mode: 0440 |
31 | 34 | force: no |
32 | 35 | validate_certs: no |
33 | | - checksum: sha256:8f864e9f78917de3e1483e256270daabc4a321741592c5b36af028e72bff87f5 |
| 36 | + checksum: sha256:0678d74a45832cacaea053d85a5685f3ed8352475e6ddf9fcb742ffca00199b5 |
34 | 37 | when: |
35 | 38 | - (cmake_installed.rc != 0 ) or (cmake_installed.rc == 0 and cmake_version.stdout is version_compare(cmakeVersion, operator='lt')) |
36 | 39 | - ansible_architecture != "armv7l" |
|
39 | 42 |
|
40 | 43 | # The checksum file of the download is checked, not the binary itself. The checksum in the download step is equal to the one in the file |
41 | 44 | - name: GPG Signature verification |
42 | | - script: ../Supporting_Scripts/package_signature_verification.sh -fl "https://github.com/Kitware/CMake/releases/download/v3.11.4/cmake-3.11.4-SHA-256.txt" -sl "https://github.com/Kitware/CMake/releases/download/v3.11.4/cmake-3.11.4-SHA-256.txt.asc" -k {{ key.cmake }} |
| 45 | + script: ../Supporting_Scripts/package_signature_verification.sh -fl "https://github.com/Kitware/CMake/releases/download/v{{ cmake_version }}/cmake-{{ cmake_version }}-SHA-256.txt" -sl "https://github.com/Kitware/CMake/releases/download/v{{ cmake_version }}/cmake-{{ cmake_version }}-SHA-256.txt.asc" -k {{ key.cmake }} |
43 | 46 | when: |
44 | 47 | - (cmake_installed.rc != 0 ) or (cmake_installed.rc == 0 and cmake_version.stdout is version_compare(cmakeVersion, operator='lt')) |
45 | 48 | - ansible_architecture != "armv7l" |
|
0 commit comments