]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
zuul: pin the quiche build to use an older cmake-rs
authorDaniel Stenberg <daniel@haxx.se>
Wed, 3 Nov 2021 13:25:49 +0000 (14:25 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Nov 2021 22:22:39 +0000 (23:22 +0100)
The latest cmake-rs assumes cmake's --parallel works. That was added in
cmake 3.12, but a lot of our CI builds run on Ubuntu Bionic which only
has cmake 3.10.

Fixes #7927
Closes #7952

scripts/zuul/before_script.sh

index 79bdb04b5606318f8bd97d13fd45145ada5bb67e..82b91260378fb7a04ee3dd04a4fef5fc6505571f 100755 (executable)
@@ -120,6 +120,11 @@ if [ "$TRAVIS_OS_NAME" = linux -a "$QUICHE" ]; then
   curl https://sh.rustup.rs -sSf | sh -s -- -y
   source $HOME/.cargo/env
   cd $HOME/quiche
+
+  #### Work-around https://github.com/curl/curl/issues/7927 #######
+  #### See https://github.com/alexcrichton/cmake-rs/issues/131 ####
+  sed -i -e 's/cmake = "0.1"/cmake = "=0.1.45"/' Cargo.toml
+
   cargo build -v --release --features ffi,pkg-config-meta,qlog
   mkdir -v deps/boringssl/src/lib
   ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) deps/boringssl/src/lib/