Bug 1994196

Summary: Remove /usr/bin/packer symbolic link
Product: [Fedora] Fedora Reporter: Weston Schmidt <weston_schmidt>
Component: cracklibAssignee: Paul Wouters <paul.wouters>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: crypto-team, dbelyavs, nalin, paul.wouters, tm
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cracklib-2.9.6-27.fc36 cracklib-2.9.6-27.fc34 cracklib-2.9.6-27.fc33 cracklib-2.9.6-27.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 21:05:15 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:

Description Weston Schmidt 2021-08-17 02:54:16 UTC
Description of problem:
The symbolic link `/usr/bin/packer` conflicts with the popular Hashicorp product of the same name.  The executable is already available via `/usr/sbin/cracklib-packer`.  By removing this symbolic link the community makes using the other product much easier.

Simply removing these two lines will do the trick:
https://src.fedoraproject.org/rpms/cracklib/blob/rawhide/f/cracklib.spec#_122
https://src.fedoraproject.org/rpms/cracklib/blob/rawhide/f/cracklib.spec#_176

How reproducible:
100%

Steps to Reproduce:
1. Install Fedora with Gnome Desktop
2. Install Hashicorp Packer:
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
sudo dnf -y install packer

3. Run `packer` without qualifications.  The cracklib-packer is executed because it is located in /usr/sbin/packer vs the /usr/bin/packer you just installed.

Additional info:

A few details make this something to consider changing.

1. You can't remove the offending `cracklib` package because GNOME depends on it.
2. This is a symbolic link to a more descriptively named `cracklib-packer`
3. Upstream does not require this, it is only a Fedora packaging convention.

There are workarounds, but they are also annoying and brittle.

Comment 1 Paul Wouters 2021-08-18 02:51:03 UTC
It is unfortunate. And I don't like making a change that breaks backwards compatibility. But in this case I think it is better to break it now than later when/if this package gets info fedora.

It also seems that cracklib as dependency mostly comes in for libpwquality, and that library surely does not call the packer binary


paul@bofh:~$ grep packer /usr/lib64/libpwquality.so.1
paul@bofh:~$ grep packer /usr/bin/pwmake /usr/bin/pwscore 
paul@bofh:~$ grep packer /etc/security/pwquality.conf

If no one objects in the next few days, I'll make the change.

Comment 2 Fedora Update System 2021-08-30 21:02:56 UTC
FEDORA-2021-66e64152af has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-66e64152af

Comment 3 Fedora Update System 2021-08-30 21:05:15 UTC
FEDORA-2021-66e64152af has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2021-08-30 21:36:55 UTC
FEDORA-2021-f579afbe46 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f579afbe46

Comment 5 Fedora Update System 2021-08-30 21:49:10 UTC
FEDORA-2021-48813025be has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-48813025be

Comment 6 Fedora Update System 2021-08-31 07:35:41 UTC
FEDORA-2021-dac2bec579 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-dac2bec579

Comment 7 Fedora Update System 2021-08-31 17:57:08 UTC
FEDORA-2021-f579afbe46 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-f579afbe46`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-f579afbe46

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-08-31 22:04:36 UTC
FEDORA-2021-dac2bec579 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-dac2bec579`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-dac2bec579

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-08-31 22:53:05 UTC
FEDORA-2021-48813025be has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-48813025be`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-48813025be

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-09-08 15:06:06 UTC
FEDORA-2021-48813025be has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-09-15 18:19:44 UTC
FEDORA-2021-dac2bec579 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2021-09-24 20:11:51 UTC
FEDORA-2021-f579afbe46 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.