diff options
author | Alex Sweet <asweet@ss8.com> | 2021-06-29 14:13:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-29 15:14:54 (GMT) |
commit | 9b53eca317e52dffa1ba8972981af7b40392e323 (patch) | |
tree | 0a04b9e5d3462fa3e89fe17f2800beb6ce8bbc01 /Help | |
parent | fb02657b6a4f66cfb1b1673c170136f07945eda2 (diff) | |
download | CMake-9b53eca317e52dffa1ba8972981af7b40392e323.zip CMake-9b53eca317e52dffa1ba8972981af7b40392e323.tar.gz CMake-9b53eca317e52dffa1ba8972981af7b40392e323.tar.bz2 |
CPack/RPM: Fix weak dep support
RPM 4.11.3 for el7 contains backported support for the RPM weak dep tags.
It only supports querying those tags, but rpmbuild can not make use of them.
Since CPack relies on rpmbuild --querytags to check for support, this
commit switches to rpm --suggests to check for support of weak
dependencies.
Fixes: #22350
Diffstat (limited to 'Help')
-rw-r--r-- | Help/cpack_gen/rpm.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/cpack_gen/rpm.rst b/Help/cpack_gen/rpm.rst index 5260a1d..322ab68 100644 --- a/Help/cpack_gen/rpm.rst +++ b/Help/cpack_gen/rpm.rst @@ -394,8 +394,10 @@ List of CPack RPM generator specific variables: * Mandatory : NO * Default : - - May be used to set weak RPM dependencies (suggests). Note that you must - enclose the complete requires string between quotes. + May be used to set weak RPM dependencies (suggests). If ``rpmbuild`` doesn't + support the ``Suggests`` tag, CPack will emit a warning and ignore this + variable. Note that you must enclose the complete requires string between + quotes. .. variable:: CPACK_RPM_PACKAGE_PROVIDES CPACK_RPM_<component>_PACKAGE_PROVIDES |