RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1960791 - /usr/bin/cmake3 has gone away
Summary: /usr/bin/cmake3 has gone away
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cmake
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: serge_sans_paille
QA Contact: Michal Kolar
Eva-Lotte Gebhardt
URL:
Whiteboard:
Depends On:
Blocks: 1965142
TreeView+ depends on / blocked
 
Reported: 2021-05-14 22:14 UTC by Troy Dawson
Modified: 2021-11-10 00:38 UTC (History)
10 users (show)

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.
Clone Of:
: 1965142 (view as bug list)
Environment:
Last Closed: 2021-11-09 18:40:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:4246 0 None None None 2021-11-09 18:41:00 UTC

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


Note You need to log in before you can comment on or make changes to this bug.