Bug 2291122 - python3-swiftclient-4.4.0-3.fc40 adds `/usr/bin/swift` which conflicts with main swift-lang package
Summary: python3-swiftclient-4.4.0-3.fc40 adds `/usr/bin/swift` which conflicts with m...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: swift-lang
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ron Olson
QA Contact: Fedora Extras Quality Assurance
URL: https://packages.fedoraproject.org/pk...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-10 05:30 UTC by Russell Bicknell
Modified: 2024-12-02 07:27 UTC (History)
5 users (show)

Fixed In Version: swift-lang-6.0.2-1.fc42 swift-lang-6.0.2-1.fc40 swift-lang-6.0.2-1.fc41 swift-lang-6.0.2-1.el9
Clone Of:
Environment:
Last Closed: 2024-11-24 00:41:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Russell Bicknell 2024-06-10 05:30:26 UTC
I had the swift-lang package installed and just recently tried upgrading my machine and got this error:

```
Error: Transaction test error:
  file /usr/bin/swift from install of python3-swiftclient-4.4.0-3.fc40.noarch conflicts with file from package swift-lang-5.8.1-2.fc40.x86_64
  file /usr/share/man/man1/swift.1.gz from install of python3-swiftclient-4.4.0-3.fc40.noarch conflicts with file from package swift-lang-5.8.1-2.fc40.x86_64
```

python3-swiftclient was being installed for the first time on my machine in that transaction - I think due to duplicity being upgraded. It seems like an unrelated package that expects/installs a binary in the same location:

https://packages.fedoraproject.org/pkgs/python-swiftclient/python3-swiftclient/fedora-40.html

https://github.com/openstack/python-swiftclient

https://docs.openstack.org/python-swiftclient/latest/cli/index.html#swift-usage

FWIW:

```
$ dnf repoquery --whatrequires python3-swiftclient
Last metadata expiration check: 0:31:41 ago on Sun 09 Jun 2024 09:39:10 PM PDT.
duplicity-0:3.0.0-2.fc40.x86_64
python3-heatclient-0:3.3.0-3.fc40.noarch
python3-swiftclient+keystone-0:4.4.0-3.fc40.noarch
python3-troveclient-0:8.2.1-3.fc40.noarch
```

Reproducible: Always

Comment 1 Ron Olson 2024-06-10 14:06:23 UTC
Huh, that's a tricky problem. So you've had duplicity and swiftlang installed simultaneously until duplicity had this update?

Comment 2 Elliott Sales de Andrade 2024-06-11 03:56:17 UTC
This is fine on F39 because the other package doesn't get pulled in:

$ dnf repoquery --whatrequires python3-swiftclient
python3-heatclient-0:3.2.0-3.fc39.noarch
python3-troveclient-0:8.1.0-2.fc39.noarch

But via the deja-dup -> duplicity chain, we get it in F40; this causes a conflict if trying to run a dnf system-upgrade to F40.

Comment 3 Elliott Sales de Andrade 2024-11-04 01:29:18 UTC
I don't know why this is NEEDINFO on the reporter; it is easily reproduced:

$ podman run  --rm -it fedora:40
# dnf install -y swift-lang python3-swiftclient
...
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/bin/swift conflicts between attempted installs of swift-lang-6.0.1-1.fc40.x86_64 and python3-swiftclient-4.4.0-3.fc40.noarch

cc'ing the python-swiftclient maintainers as well, as both of you must at-the-least add Conflicts but preferably avoid the conflict altogether (perhaps splitting python3-swiftclient into a library and binary package, will at least help the default case, but it's not perfect).

Comment 4 Fedora Update System 2024-11-24 00:36:58 UTC
FEDORA-2024-0ce53e51ac (swift-lang-6.0.2-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0ce53e51ac

Comment 5 Fedora Update System 2024-11-24 00:41:30 UTC
FEDORA-2024-0ce53e51ac (swift-lang-6.0.2-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-11-24 22:31:51 UTC
FEDORA-2024-24096895a4 (swift-lang-6.0.2-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-24096895a4

Comment 7 Fedora Update System 2024-11-24 22:32:20 UTC
FEDORA-2024-4ef3e23eb6 (swift-lang-6.0.2-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4ef3e23eb6

Comment 8 Fedora Update System 2024-11-24 22:34:53 UTC
FEDORA-EPEL-2024-72ca3236a7 (swift-lang-6.0.2-1.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-72ca3236a7

Comment 9 Fedora Update System 2024-11-25 03:32:23 UTC
FEDORA-2024-4ef3e23eb6 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-4ef3e23eb6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4ef3e23eb6

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

Comment 10 Fedora Update System 2024-11-25 03:43:38 UTC
FEDORA-2024-24096895a4 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-24096895a4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-24096895a4

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

Comment 11 Fedora Update System 2024-11-25 04:03:47 UTC
FEDORA-EPEL-2024-72ca3236a7 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-72ca3236a7

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

Comment 12 Fedora Update System 2024-12-02 07:02:54 UTC
FEDORA-2024-4ef3e23eb6 (swift-lang-6.0.2-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2024-12-02 07:06:57 UTC
FEDORA-2024-24096895a4 (swift-lang-6.0.2-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-12-02 07:27:51 UTC
FEDORA-EPEL-2024-72ca3236a7 (swift-lang-6.0.2-1.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.


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