Test RunCMake.CPack_RPM.SUGGESTS Failing
CMake v3.20.5
RPM version 4.11.3
RHEL 7
562: CMake Error at /home/asweet/CMake/Tests/RunCMake/RunCMake.cmake:201 (message):
562: RPM/SUGGESTS-MONOLITHIC-type - FAILED:
562:
562: Result is [1], not [0].
562:
562: stderr does not match that expected.
562:
562: Command was:
562:
562: command> "/home/asweet/cmakebuild/bin/cmake3" "-DRunCMake_TEST=SUGGESTS-MONOLITHIC-type" "-DRunCMake_TEST_FILE_PREFIX=SUGGESTS" "-DRunCMake_SUBTEST_SUFFIX=" "-DGENERATOR_TYPE=RPM" "-DPACKAGING_TYPE=MONOLITHIC" "-Dsrc_dir=/home/asweet/CMake/Tests/RunCMake/CPack" "-Dbin_dir=/home/asweet/cmakebuild/Tests/RunCMake/RPM.SUGGESTS/CPack/SUGGESTS-build" "-Dconfig_file=/home/asweet/cmakebuild/Tests/RunCMake/CPack/conf/RPM.SUGGESTS_config.cmake" "-P" "/home/asweet/CMake/Tests/RunCMake/CPack/VerifyResult.cmake"
562:
562: Actual stdout:
562:
562: actual-out>
562:
562: Expected stderr to match:
562:
562: expect-err> ^(.*CPackRPM:Warning: SUGGESTS not supported in provided rpmbuild.*)?CPackRPM: Will use GENERATED spec file: (/[^/]*)*/Tests/RunCMake/RPM\.SUGGESTS/CPack/[^-]*-build/_CPack_Packages/.*/RPM/SPECS/[^\.]*\.spec$
562:
562: Actual stderr:
562:
562: actual-err> CMake Error at /home/asweet/CMake/Tests/RunCMake/CPack/VerifyResult.cmake:88 (message):
...
562: actual-err>
562: actual-err> CPackRPM:Debug: *** error: line 24: Unknown tag: Suggests: libsuggested
562: actual-err>
It looks like the tag definitions were backported to 4.11.3 but the functionality was not.
https://bugzilla.redhat.com/show_bug.cgi?id=1658333
Tests/RunCMake/CPack/tests/SUGGESTS/VerifyResult.cmake
uses --querytags to determine supported tags. The backported tag defs in this particular version of rpm break that method, causing the test to think the SUGGESTS tag is fully supported when it isn't.