The cmake rpms
Find a file
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
.fmf init FMF CI gating 2021-08-17 16:37:07 +00:00
plans Fix outdated CI configuration 2023-09-01 13:18:35 +02:00
tests/cmake-testsuite-sanity cmake-testsuite-sanity: fix for RPM 4.19.90 build dir change 2025-12-11 12:19:12 -08:00
.gitignore 3.14.0 2019-03-15 14:26:04 +01:00
cmake-findruby.patch Revert to 3.31.6 2025-03-18 18:41:41 -04:00
cmake-init.el Add the cmake-init.el file 2013-10-10 16:37:30 -06:00
cmake.attr Fix cmake.attr and cmake.req to work properly 2017-08-02 23:13:46 +02:00
cmake.prov Use python3 for rpm generators 2020-02-26 20:59:26 -07:00
cmake.req Use python3 for rpm generators 2020-02-26 20:59:26 -07:00
cmake.spec Update to 3.31.10 2025-12-02 16:38:10 -05:00
gating.yaml drop unwanted scratch build rule for gating 2021-08-17 16:37:07 +00:00
macros.cmake.in Revert to 3.31.6 2025-03-18 18:41:41 -04:00
sources Update to 3.31.10 2025-12-02 16:38:10 -05:00