Bug 1960791

Summary: /usr/bin/cmake3 has gone away
Product: Red Hat Enterprise Linux 8 Reporter: Troy Dawson <tdawson>
Component: cmakeAssignee: serge_sans_paille <sguelton>
Status: CLOSED ERRATA QA Contact: Michal Kolar <mkolar>
Severity: unspecified Docs Contact: Eva-Lotte Gebhardt <egebhard>
Priority: unspecified    
Version: 8.5CC: carl, egebhard, logans, mattias.ellert, mhroncok, sguelton, smooge, terje.rosten, tschelle, yselkowi
Target Milestone: betaKeywords: Bugfix, Regression, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cmake-3.20.2-2.el8 Doc Type: Rebase: Bug Fixes Only
Doc Text:
.CMake missing versioned symlinks to CMake binaries restored Unlike previous CMake versions, CMake 3.18.2 did not provide versioned symlinks to CMake binaries. As a consequence, builds that require `cmake3` failed. With this update, the symlink to the `cmake3` binaries are restored and, as a result, all affected builds function again.
Story Points: ---
Clone Of:
: 1965142 (view as bug list) Environment:
Last Closed: 2021-11-09 18:40:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1965142    

Description Troy Dawson 2021-05-14 22:14:52 UTC
Description of problem:
With the latest cmake that looks like it will be released in RHEL 8.4, there is no /usr/bin/cmake3, ccmake3, cpack3, ctest3

Version-Release number of selected component (if applicable):
cmake-3.18.2-9.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. dnf install cmake
2. ls /usr/bin/cmake3
3.

Actual results:
ls: cannot access '/usr/bin/cmake3': No such file or directory

Expected results:
/usr/bin/cmake3

Additional info:
If I was just starting off on RHEL8, this wouldn't be a problem.  But it is a problem for my scripts that need cmake3, and need to run on both RHEL7 and RHEL8.

Comment 1 Mattias Ellert 2021-05-21 21:48:00 UTC
Also, the new package does not Provide: cmake3 = %{version}-%{release}

This is a regression w.r.t. the last version and source packages with BuildRequires: cmake3 no longer build:

DEBUG util.py:444:  No matching package to install: 'cmake3 >= 3.1'
DEBUG util.py:446:  Package gcc-c++-8.4.1-1.el8.x86_64 is already installed.
DEBUG util.py:446:  Package make-1:4.2.1-10.el8.x86_64 is already installed.
DEBUG util.py:444:  Not all dependencies satisfied
DEBUG util.py:444:  Error: Some packages could not be found.
DEBUG util.py:598:  Child return code was: 1

Comment 2 Stephen John Smoogen 2021-05-21 21:53:34 UTC
Looking through the previous packages in RHEL-8.3 we shipped
```
$ rpm -qp ./non_modular/cmake-3.11.4-7.el8.x86_64.rpm --provides
bundled(kwsys)
bundled(md5-deutsch)
cmake = 3.11.4-7.el8
cmake(x86-64) = 3.11.4-7.el8
cmake3 = 3.11.4-7.el8
```

and in Fedora packages we also ship cmake3 provides in all of the trees
```
rpm -qp 34/Everything/x86_64/os/Packages/c/cmake-3.19.7-1.fc34.i686.rpm --provides
warning: 34/Everything/x86_64/os/Packages/c/cmake-3.19.7-1.fc34.i686.rpm: Header V4 RSA/SHA256 Signature, key ID 45719a39: NOKEY
bundled(kwsys)
bundled(md5-deutsch)
cmake = 3.19.7-1.fc34
cmake(x86-32) = 3.19.7-1.fc34
cmake3 = 3.19.7-1.fc34

```

The patch https://git.centos.org/rpms/cmake/c/09b85a86fd26251b569658b4ecb5db9ace298606?branch=c8s seems to be where this change got introduced.

Comment 15 Terje Røsten 2021-06-03 06:45:01 UTC
hi!

I am also missing this, could we get quick fix as the change is trivial?

Comment 16 Scott K Logan 2021-06-04 17:13:48 UTC
Just to confirm, it looks like this will not be fixed in 8.4? Is there a particular reason this regression can't be resolved in 8.4?

Comment 17 Yaakov Selkowitz 2021-06-04 17:44:19 UTC
It should be, see bug 1965142.

Comment 18 Carl George 🤠 2021-06-04 18:41:37 UTC
Yaakov, Scott can't see bug 1965142, it's private.  Can we make that bug public for folks to track the progress?

Comment 21 Eva-Lotte Gebhardt 2021-06-14 12:17:01 UTC
Hi Serge!

This is the first draft for this bugfix RN. I'm looking forward to your feedback!
Thank you very much, Eva-Lotte

.CMake missing versionned symlink to cmake binaries

Previously, CMake did not provide the `cmake3` binaries. As a consequence, builds needing `cmake3` failed. With this update, the symlink to the `cmake3` binaries is added and, as a result, all affected builds function again.

Comment 22 Troy Dawson 2021-06-14 13:35:50 UTC
That description makes it sound like we added something.  But this was a regression, meaning that it was a feature that was accidentally removed and this errata brings that feature back.

.CMake missing versioned symlinks to cmake binaries

Previously CMake provided versioned symlinks to cmake binaries, CMake 3.18.2 did not provide the symlinks. As a consequence, builds needing `cmake3` failed. With this update, the symlink to the `cmake3` binaries are restored and, as a result, all affected builds function again.

Comment 23 Eva-Lotte Gebhardt 2021-06-14 14:18:40 UTC
Thank you very much for your input, indeed the RN shouldn't sound like that.
Here is the updated draft:

.CMake missing versioned symlinks to cmake binaries restored

Unlike previous CMake versions, CMake 3.18.2 did not provide versioned symlinks to cmake binaries. As a consequence, builds needing `cmake3` failed. With this update, the symlink to the `cmake3` binaries are restored and, as a result, all affected builds function again.

Comment 24 Michal Kolar 2021-06-16 10:32:30 UTC
Verified with cmake-3.20.2-2.el8.

Comment 25 serge_sans_paille 2021-06-18 18:29:03 UTC
Hi @Eval-Lotte,
I second Troy opinion and <3 your latest version

Comment 28 errata-xmlrpc 2021-11-09 18:40:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (cmake bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:4246