From e79190d27e6ba9455d7775aa2e40d68c73507709 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Tue, 4 Jan 2022 08:32:20 +0000 Subject: system/cmake: bump { 3.16.4 --> 3.22.1 }. fix gentoo-ism (enable parallel build). disable part of one test. fixes #417. --- system/cmake/APKBUILD | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'system/cmake') diff --git a/system/cmake/APKBUILD b/system/cmake/APKBUILD index f8570efd9..596ed68bd 100644 --- a/system/cmake/APKBUILD +++ b/system/cmake/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Valery Kartel # Maintainer: A. Wilcox pkgname=cmake -pkgver=3.16.4 +pkgver=3.22.1 pkgrel=0 pkgdesc="Cross-platform build system" url="https://cmake.org" @@ -22,12 +22,12 @@ source="https://cmake.org/files/$_v/cmake-${pkgver}.tar.gz" _parallel_opt() { local i n - for i in $MAKEOPTS; do + for i in $MAKEFLAGS; do case "$i" in -j*) n=${i#-j};; esac; done - [ -n "$n" ] && echo "--parallel $n" + [ -n "$n" ] && echo "--parallel=$n" } build() { @@ -45,12 +45,21 @@ build() { } check() { + # disable only one part of this test (see #417) + sed -i Tests/RunCMake/ctest_submit/RunCMakeTest.cmake \ + -e '/^run_ctest_submit_FailDrop(https)/d' \ + ; + # skip CTestTestUpload: tries to upload something during check... - CTEST_OUTPUT_ON_FAILURE=TRUE bin/ctest -E CTestTestUpload + #CTEST_PARALLEL_LEVEL=${JOBS} \ + CTEST_OUTPUT_ON_FAILURE=TRUE \ + bin/ctest \ + -E CTestTestUpload \ + ; } package() { make DESTDIR="$pkgdir" install } -sha512sums="4aa36608bac3b9e29ea765003cdc684733c025d7b18fbae057f3be1f726a159d4b0231b8b1be269206aa7dbd7177fe0110d5bac8d72fb0f6ad392bb284b1fce3 cmake-3.16.4.tar.gz" +sha512sums="b1e900fe573cd1cc76d26386f2298d7722737c9ff67930ee108994972b4561ef69caeb537177c9b95b7f17b755e20e034825d3807ea0d2dd4c391310b03adc11 cmake-3.22.1.tar.gz" -- cgit v1.2.3-70-g09d2