Hide Forgot
Description of problem: Related to bug 1858941, there are macros in Fedora to allow optional out-of-source builds [0], as well as generic %cmake_build, %cmake_install, and %ctest macros. Neal has demonstrated adding these in the CentOS dist-git [1]. Applying this to RHEL 8 would allow for consistency between Fedora, EPEL8, and EPEL7 to make packagers lives easier. Additional info: [0] https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds [1] https://git.centos.org/rpms/cmake/pull-request/1
Created attachment 1701829 [details] Sync Fedora macros for optional support for out-of-source builds This patch can be applied to RHEL's dist-git with `git am -p2`.
Created attachment 1728193 [details] Revised patch to sync Fedora macros for optional support for out-of-source builds So I've tried out cmake-3.18.2-7.el8 in CentOS Stream since it landed couple of months ago[1]. It seems to work quite well. Can we see some movement here to merge my change into the cmake package for RHEL/CentOS 8.4? I've revised my patch to incorporate a minor fix from Fedora for the %ctest macro and attached it here. Like the original, this patch can be applied to RHEL's dist-git with `git am -p2`. [1]: https://src.fedoraproject.org/rpms/cmake/c/8674426d570668993696a7e9f2a4d31711bc47ee
@Tom, can you please take a look at this and merge it in? It's becoming a serious issue that it hasn't been incorporated into the CMake package in CentOS Stream yet...
+1, can we get the macros in for 8.4 please? There's zero risk (AFAICS) and the sooner they're in the less issues people will face.
Tested against cmake-3.18.2-9.el8.
Verified against cmake-3.18.2-9.el8.