Commit graph

696 commits

Author SHA1 Message Date
Miro Hrončok
aaa289ec8e Declarative %generate_buildrequires: Keep the BRs stable
Make the rpm-macros implementation add new BuildRequires, but not removing some.
This makes the individual rounds of %generate_buildrequires behave more predictably.

Nothing says the previous approach is wrong, but is might blow up unexpectedly.
2025-12-12 22:48:14 +01:00
Neal Gompa
fef4fab786 macros: Enable support for RPM 4.20+ declarative buildsystem feature
The new cmake-srpm-macros package definition is required for supporting
Koji and COPR's two-stage build process where the SRPM isn't made
in the full build environment.
2025-12-11 17:08:07 -05:00
Neal Gompa
3445533b75 macros: Add section comment explaining cmakeX macros 2025-12-11 17:04:46 -05:00
Adam Williamson
063d6e7fc9 cmake-testsuite-sanity: fix for RPM 4.19.90 build dir change
See https://github.com/rpm-software-management/rpm/issues/3147
for the background. RPM 4.19.90 changed RPM's build directory
behavior; the tl;dr is that everything's one level deeper now.
This code was expecting something like:

/tmp/tmp.dheZFHDA0M/BUILD/cmake-3.31.10

but now we actually get something like:

/tmp/tmp.dheZFHDA0M/BUILD/cmake-3.31.10-build/cmake-3.31.10

this uses the trick from
https://github.com/rpm-software-management/rpm/issues/3147#issuecomment-2154192419
to figure out the base build directory and then go from there,
which *should* make this work on both older and newer RPM.

Without this fix, the tests are failing like this:

:: [ 21:03:33 ] :: [  BEGIN   ] :: Running 'CMakeDir='
:: [ 21:03:33 ] :: [   PASS   ] :: Command 'CMakeDir=' (Expected 0, got 0)
:: [ 21:03:33 ] :: [  BEGIN   ] :: Running 'cd /tmp/tmp.dheZFHDA0M/BUILD/'
:: [ 21:03:33 ] :: [   PASS   ] :: Command 'cd /tmp/tmp.dheZFHDA0M/BUILD/' (Expected 0, got 0)
:: [ 21:03:33 ] :: [  BEGIN   ] :: Running 'su -c './bootstrap &>/tmp/tmp.dheZFHDA0M/bootstrap.log' cmkbld'
:: [ 21:03:33 ] :: [   FAIL   ] :: Command 'su -c './bootstrap &>/tmp/tmp.dheZFHDA0M/bootstrap.log' cmkbld' (Expected 0, got 127)

you can see it doesn't get the directory right - it's trying
to run `./bootstrap` in `/tmp/tmp.dheZFHDA0M/BUILD/`, because
the attempt to discover `CMakeDir` failed and returned an
empty string. That's never going to work. See:
https://artifacts.dev.testing-farm.io/974c2a93-5d4c-4896-a48a-b2a54d2dd01d/

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-12-11 12:19:12 -08:00
Yaakov Selkowitz
e615fbe997 Update to 3.31.10 2025-12-02 16:38:10 -05:00
Fedora Release Engineering
864529c3fb Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 18:26:49 +00:00
Python Maint
851a4c373d Rebuilt for Python 3.14 2025-06-03 11:00:58 +02:00
Yaakov Selkowitz
b3bf0e8abc Revert to 3.31.6
Rebuild (jsoncpp)
Fix build with latest curl

https://pagure.io/fesco/issue/3377
2025-03-18 18:41:41 -04:00
Björn Esser
4a9c46f936
Exclude RunCMake.ParseImplicitLinkInfo from tests 2025-03-12 18:55:02 +01:00
Björn Esser
696e959fd5
cmake-4.0.0-rc4 2025-03-12 11:14:26 +01:00
Björn Esser
ff50d850d5
macros: Set CMAKE_POLICY_VERSION_MINIMUM as environment variable 2025-03-12 11:07:02 +01:00
Yaakov Selkowitz
8d9eeb10df Set CMAKE_POLICY_VERSION_MINIMUM as environment variable
While passing this as a cmake argument works for top-level projects, it
does not carry over automatically to subprojects.  Setting this in the
environment works for both.
2025-03-11 08:26:52 -04:00
Yaakov Selkowitz
66fb93f976 Define CMAKE_POLICY_VERSION_MINIMUM in %cmake
cmake 4.0 drops compatibility with CMake < 3.5, meaning that any packages
with an earlier CMAKE_MINIMUM_REQUIRED will fail.  In many cases though,
no further modification is required to build with newer versions, includes 4.0.
As such, overriding this by policy will avoid the need for patching a lot
of packages to fix their builds.

https://cmake.org/cmake/help/latest/variable/CMAKE_POLICY_VERSION_MINIMUM.html
https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#policy-version
2025-03-07 15:24:54 -05:00
Cristian Le
ae4f1fd869 Drop non-standard *_INSTALL options
Signed-off-by: Cristian Le <git@lecris.dev>
2025-03-07 12:09:41 +01:00
Björn Esser
d8fe77bab9
cmake-4.0.0-rc3 2025-03-06 10:18:06 +01:00
Björn Esser
90810d6226
Provide cmake3 for legacy 2025-02-27 10:53:35 +01:00
Björn Esser
a3a0079a12
Disable bootstrap build 2025-02-27 09:33:03 +01:00
Björn Esser
1f2cca05f1
Rebuild (jsoncpp) 2025-02-27 09:19:57 +01:00
Björn Esser
c45037a52e
macros.cmake: Restore compatibility with cmake3 macros 2025-02-27 08:58:41 +01:00
Björn Esser
3604f33f87
tests/cmake-testsuite-sanity: Adapt for new builddir layout 2025-02-26 23:36:55 +01:00
Björn Esser
f304eb1c7d
cmake-4.0.0-rc2 2025-02-26 21:16:42 +01:00
Björn Esser
c52839340c
cmake-3.31.6
Fixes rhbz#2347346
2025-02-24 19:48:32 +01:00
Björn Esser
7029572a9d
cmake-3.31.5
Fixes rhbz#2341786
2025-01-24 10:11:22 +01:00
Orion Poplawski
5041867958 Define CMAKE_INSTALL_FULL_SBINDIR/CMAKE_INSTALL_SBINDIR to help with sbin merge 2025-01-23 08:13:25 -07:00
Fedora Release Engineering
4318f10b1f Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 14:01:48 +00:00
Björn Esser
461007aa96
cmake-3.31.4
Fixes rhbz#2336980
2025-01-12 13:33:04 +01:00
Björn Esser
7cc36b3cf1
cmake-3.31.3
Fixes rhbz#2333376
2024-12-22 22:25:21 +01:00
Björn Esser
f7c27888e0
cmake-3.31.2
Fixes rhbz#2330603
2024-12-05 23:09:43 +01:00
Björn Esser
580359116c
macros: Fix missing asterisk in ctest macro 2024-12-02 17:21:05 +01:00
Björn Esser
dfb5aebef3
macros: Simplify lua code for ctest argument processing 2024-12-02 17:15:53 +01:00
Björn Esser
91e5143359
Skip some test that fail for Fedora 41 2024-12-01 15:16:16 +01:00
Björn Esser
9e821b9697
Fix macro-in-%changelog 2024-12-01 15:12:57 +01:00
Björn Esser
bc73177678
cmake-3.31.1
Fixes rhbz#2324190
2024-12-01 12:21:32 +01:00
Björn Esser
6eb0082a1d
macros: Fix handling of double-dash without argument for ctest. 2024-12-01 12:18:07 +01:00
Björn Esser
ae4cdafd95 cmake-3.31.0
Fixes rhbz#2324190
2024-11-08 19:43:47 +01:00
Björn Esser
a02c626742 cmake-findruby.patch: Update for alignment 2024-11-04 11:18:25 +01:00
Björn Esser
49317eb0f2 cmake-3.30.5
Fixes rhbz#2262837
2024-11-03 21:06:14 +01:00
Miro Hrončok
7f9289bf4c FindPython: Add Python 3.14 to the list of hardcoded Python versions 2024-10-23 20:16:56 +02:00
Yaakov Selkowitz
a0dcf332ee Assure that network-dependent tests are not run
mock builds do not have network access, and any automatic detection in the
test environment is not consistently reliable.
2024-09-19 23:19:19 -04:00
Fedora Release Engineering
8c9971820e Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 19:33:43 +00:00
Python Maint
7cf9b37a2e Rebuilt for Python 3.13 2024-06-07 14:08:19 +02:00
Sandro
7fdd987674
Add python3-cmake sub package
The sub package provides metadata only for Python packages depending on
CMake facilitating automatic dependency resolution.
2024-05-16 13:56:56 +02:00
Orion Poplawski
103d8d98cf Build with gui again 2024-04-22 21:51:27 -06:00
Orion Poplawski
fd9f6505a2 Build without gui to avoid circular dep on self 2024-04-22 20:49:02 -06:00
Orion Poplawski
b6af92ee63 Rebuild for rhash 1.4.4 soname bump 2024-04-22 20:39:07 -06:00
David Abdurachmanov
335568208d Disable another timeout test on riscv64
We are timing out on Qt6Autogen.MocIncludeSymlink.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-06 10:58:09 +00:00
Orion Poplawski
809dad0080 Update to 3.28.3 (should fix bz#2261013) 2024-02-27 17:35:22 -07:00
Richard W.M. Jones
8d718fa234 Add %ctest timeout on riscv64
Since our riscv64 builders are slow at the moment some tests fail with
timeouts, eg:
https://src.fedoraproject.org/rpms/kokkos/pull-request/11

Adding the --timeout flag on riscv64 only increases the timeout and
makes the tests pass.  Adding this centrally makes it easier to remove
it later once faster hardware becomes widely available.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2024-02-20 17:16:38 +00:00
František Zatloukal
815f5fcb16 cmake-3.28.2 2024-02-01 16:39:55 +01:00
Fedora Release Engineering
ceb582021b Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 07:33:16 +00:00