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 2054043 - [RFE] No package provides /usr/bin/mkpasswd
Summary: [RFE] No package provides /usr/bin/mkpasswd
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2022-05-16
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: whois
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Petr Menšík
QA Contact: Petr Sklenar
Šárka Jana
URL:
Whiteboard:
Depends On:
Blocks: 2058423
TreeView+ depends on / blocked
 
Reported: 2022-02-14 05:27 UTC by Mattias Ellert
Modified: 2022-11-15 11:15 UTC (History)
5 users (show)

Fixed In Version: whois-5.5.9-4.el9
Doc Type: Enhancement
Doc Text:
.The password encryption function is now available in `whois` The `whois` package now provides the `/usr/bin/mkpasswd` binary, which you can use to encrypt a password with the `crypt` C library interface.
Clone Of:
Environment:
Last Closed: 2022-11-15 10:18:23 UTC
Type: Feature Request
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/rpms whois merge_requests 4 0 None None None 2022-04-22 12:12:04 UTC
Red Hat Issue Tracker ENGCMP-2259 0 None None None 2022-05-06 11:24:42 UTC
Red Hat Issue Tracker RHELPLAN-112098 0 None None None 2022-02-14 05:30:15 UTC
Red Hat Product Errata RHEA-2022:8079 0 None None None 2022-11-15 10:18:24 UTC

Description Mattias Ellert 2022-02-14 05:27:44 UTC
Description of problem:

/usr/bin/mkpasswd exists in two versions - one provided by expect and one provided by whois. These two SRPMS in RHEL 9 both assume that /usr/bin/mkpasswd is provided by the other, resulting in that the binary is provided by none of them.

https://git.centos.org/rpms/expect/blob/c9-beta/f/SPECS/expect.spec#_134

# rename mkpasswd, as it collides with more powerful variant from whois package (bug 1649456)
mv "$RPM_BUILD_ROOT"%{_bindir}/mkpasswd "$RPM_BUILD_ROOT"%{_bindir}/mkpasswd-expect
mv "$RPM_BUILD_ROOT"%{_mandir}/man1/mkpasswd.1 "$RPM_BUILD_ROOT"%{_mandir}/man1/mkpasswd-expect.1
sed -i 's/mkpasswd/mkpasswd-expect/g;s/MKPASSWD/MKPASSWD-EXPECT/g' "$RPM_BUILD_ROOT"%{_mandir}/man1/mkpasswd-expect.1
sed -i 's/mkpasswd/mkpasswd-expect/g' "$RPM_BUILD_ROOT"%{_bindir}/mkpasswd-expect

https://git.centos.org/rpms/whois/blob/c9-beta/f/SPECS/whois.spec#_1

# Package mkpasswd tool
	
%if 0%{?rhel}
%{bcond_with whois_enables_mkpasswd}
%else
%{bcond_without whois_enables_mkpasswd}
%endif

Please fix this so thet /usr/bin/mkpasswd is provided by one of them (preferably by whois).

Version-Release number of selected component (if applicable):

whois-5.5.9-3.el9
(expect-5.45.4-15.el9)

How reproducible:

Always

Steps to Reproduce:
1. dnf install /usr/bin/mkpasswd
2. (or try to install a package with Requires: /usr/bin/mkpasswd)

Actual results:

Failure

Expected results:

Success

Comment 1 Petr Menšík 2022-02-25 17:44:06 UTC
Oh, indeed. mkpasswd were provided by expect in RHEL8, but it has renamed to mkpasswd-expect in later packages.

However mkpasswd in whois is disabled on RHEL 8 and 9. It seems not required, because it only depends on libxcrypt library available also on RHEL9. It seems nothing blocks us from building also mkpasswd.

Comment 6 Petr Menšík 2022-04-12 06:22:45 UTC
Enabling it is just matter of enabling bcond whois_enables_mkpasswd for RHEL 9+. Then release engineering has to ensure it would end in correct repository. I would say AppStream is optimal target repository.

Comment 16 errata-xmlrpc 2022-11-15 10:18:23 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 (whois 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-2022:8079


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