The script is failing on Fedora 44, which ships with a newer version of
CMake that dropped removed compatibility with CMake < 3.5
+ install_tini
+ echo 'Install tini version v0.19.0'
Install tini version v0.19.0
+ git clone https://github.com/krallin/tini.git /go/tini
Cloning into '/go/tini'...
+ cd /go/tini
+ git checkout -q v0.19.0
+ cmake .
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -10,7 +10,13 @@ install_tini() {
|
| 10 | 10 |
git clone https://github.com/krallin/tini.git "$GOPATH/tini" |
| 11 | 11 |
cd "$GOPATH/tini" |
| 12 | 12 |
git checkout -q "$TINI_VERSION" |
| 13 |
- cmake . |
|
| 13 |
+ |
|
| 14 |
+ # CMake 4.x removed compatibility with CMake < 3.5, which breaks building |
|
| 15 |
+ # tini, as it declares support for old policy versions. |
|
| 16 |
+ # |
|
| 17 |
+ # can be removed once https://github.com/krallin/tini/pull/233 is in a release. |
|
| 18 |
+ cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 . |
|
| 19 |
+ |
|
| 14 | 20 |
make tini-static |
| 15 | 21 |
mkdir -p "${PREFIX}"
|
| 16 | 22 |
cp tini-static "${PREFIX}/docker-init"
|