Bug 1907335 - installing vim no longer works, due to package conflicts with vim-minimal
Summary: installing vim no longer works, due to package conflicts with vim-minimal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-14 09:31 UTC by Garrett LeSage
Modified: 2020-12-27 01:16 UTC (History)
5 users (show)

Fixed In Version: vim-8.2.2146-2.fc33 vim-8.2.2146-2.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-22 01:29:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Garrett LeSage 2020-12-14 09:31:59 UTC
Description of problem:

It's no longer possible to install vim on Fedora 33. When installing "vim", it pulls down vim-enhanced, which now conflicts with vim-minimal (which is installed by default, at least on Silverblue and the F33 toolbox container).


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

8.2.2115-1.fc33.x86_64


How reproducible:

Every time.

Steps to Reproduce:
1. podman run -it --rm registry.fedoraproject.org/f33/fedora-toolbox:33 dnf install -y vim


Actual results:

$ podman run -it --rm registry.fedoraproject.org/f33/fedora-toolbox:33 dnf install -y vim vim-minimal
Fedora 33 openh264 (From Cisco) - x86_64                       418  B/s | 2.5 kB     00:06    
Fedora Modular 33 - x86_64                                     1.5 MB/s | 3.3 MB     00:02    
Fedora Modular 33 - x86_64 - Updates                           1.3 MB/s | 2.9 MB     00:02    
Fedora 33 - x86_64 - Updates                                   8.5 MB/s |  17 MB     00:02    
Fedora 33 - x86_64                                              13 MB/s |  72 MB     00:05    
Package vim-minimal-2:8.2.1885-1.fc33.x86_64 is already installed.
Dependencies resolved.
===============================================================================================
 Package                  Architecture     Version                     Repository         Size
===============================================================================================
Installing:
 vim-enhanced             x86_64           2:8.2.2115-1.fc33           updates           1.8 M
Installing dependencies:
 gpm-libs                 x86_64           1.20.7-24.fc33              fedora             20 k
 vim-common               x86_64           2:8.2.2115-1.fc33           updates           6.7 M
 vim-filesystem           noarch           2:8.2.2115-1.fc33           updates            22 k

Transaction Summary
===============================================================================================
Install  4 Packages

Total download size: 8.5 M
Installed size: 34 M
Downloading Packages:
(1/4): vim-filesystem-8.2.2115-1.fc33.noarch.rpm                93 kB/s |  22 kB     00:00    
(2/4): gpm-libs-1.20.7-24.fc33.x86_64.rpm                      256 kB/s |  20 kB     00:00    
(3/4): vim-common-8.2.2115-1.fc33.x86_64.rpm                    12 MB/s | 6.7 MB     00:00    
(4/4): vim-enhanced-8.2.2115-1.fc33.x86_64.rpm                 2.6 MB/s | 1.8 MB     00:00    
-----------------------------------------------------------------------------------------------
Total                                                          4.5 MB/s | 8.5 MB     00:01     
Running transaction check
Transaction check succeeded.
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 /etc/profile.d/vim.sh from install of vim-enhanced-2:8.2.2115-1.fc33.x86_64 conflicts with file from package vim-minimal-2:8.2.1885-1.fc33.x86_64



Expected results:

It should be possible to install "vim". It should pull in vim-enhanced and it should either remove vim-minimal if it conflicts, or they should be able to sit side-by-side otherwise.

This worked properly for years, up until now. I believe something changed over the weekend?

I'm assuming it's related to https://bugzilla.redhat.com/show_bug.cgi?id=1902772 and https://bodhi.fedoraproject.org/updates/FEDORA-2020-c89da7b273 (or possibly https://bugzilla.redhat.com/show_bug.cgi?id=1905402)

Comment 1 Martin Pitt 2020-12-14 09:34:00 UTC
Looks like the file moved from vim-minimal to vim-enhanced between the old 1885 and the current 2115 version, and the package is missing a `Conflicts: vim-minimal < VERSION_THAT_MOVED_THE_FILE` ?

Comment 2 Zdenek Dohnal 2020-12-14 10:07:23 UTC
Hi guys,

thanks for reporting the issue!

Background: vim.sh is now shared with vim-minimal and vim-enhanced to provide aliases.

Heh, actually I added 'Conflicts' into vim.spec for the version which moved the files, but that version was never built and 8.2.1885-1 was built instead - so conflicts never worked :( 

I'm able to reproduce and I'll fix it today (by updating conflicts).

Comment 3 Zdenek Dohnal 2020-12-14 10:36:10 UTC
Fix looks like this:

# now vim-minimal ships vim.sh, vim.csh and vim.fish too, so we need to conflict
Conflicts: vim-minimal < 2:8.2.1885-2

Test (if vim-minimal-8.2.1885-1 is installed, the newest rpms are sent to machine):

# dnf -y install vim-enhanced-8.2.2115-2.fc33.x86_64.rpm vim-common-8.2.2115-2.fc33.x86_64.rpm vim-filesystem-8.2.2115-2.fc33.noarch.rpm 
Last metadata expiration check: 2:10:19 ago on Mon 14 Dec 2020 03:22:35 AM EST.
Dependencies resolved.
==============================================================================================================================================================================================
 Package                                        Architecture                           Version                                             Repository                                    Size
==============================================================================================================================================================================================
Installing:
 vim-common                                     x86_64                                 2:8.2.2115-2.fc33                                   @commandline                                 6.7 M
 vim-enhanced                                   x86_64                                 2:8.2.2115-2.fc33                                   @commandline                                 1.8 M
 vim-filesystem                                 noarch                                 2:8.2.2115-2.fc33                                   @commandline                                  22 k
Upgrading:
 vim-minimal                                    x86_64                                 2:8.2.2115-1.fc33                                   updates                                      683 k
Installing dependencies:
 gpm-libs                                       x86_64                                 1.20.7-24.fc33                                      fedora                                        20 k

Transaction Summary
==============================================================================================================================================================================================
Install  4 Packages
Upgrade  1 Package

Total size: 9.1 M
Total download size: 683 k
Downloading Packages:
[SKIPPED] gpm-libs-1.20.7-24.fc33.x86_64.rpm: Already downloaded                                                                                                                             
(2/2): vim-minimal-8.2.2115-1.fc33.x86_64.rpm                                                                                                                 3.3 MB/s | 683 kB     00:00    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         1.4 MB/s | 683 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                      1/1 
  Installing       : vim-filesystem-2:8.2.2115-2.fc33.noarch                                                                                                                              1/6 
  Installing       : vim-common-2:8.2.2115-2.fc33.x86_64                                                                                                                                  2/6 
  Installing       : gpm-libs-1.20.7-24.fc33.x86_64                                                                                                                                       3/6 
  Installing       : vim-enhanced-2:8.2.2115-2.fc33.x86_64                                                                                                                                4/6 
  Upgrading        : vim-minimal-2:8.2.2115-1.fc33.x86_64                                                                                                                                 5/6 
  Cleanup          : vim-minimal-2:8.2.1885-1.fc33.x86_64                                                                                                                                 6/6 
  Running scriptlet: vim-minimal-2:8.2.1885-1.fc33.x86_64                                                                                                                                 6/6 
  Verifying        : gpm-libs-1.20.7-24.fc33.x86_64                                                                                                                                       1/6 
  Verifying        : vim-enhanced-2:8.2.2115-2.fc33.x86_64                                                                                                                                2/6 
  Verifying        : vim-common-2:8.2.2115-2.fc33.x86_64                                                                                                                                  3/6 
  Verifying        : vim-filesystem-2:8.2.2115-2.fc33.noarch                                                                                                                              4/6 
  Verifying        : vim-minimal-2:8.2.2115-1.fc33.x86_64                                                                                                                                 5/6 
  Verifying        : vim-minimal-2:8.2.1885-1.fc33.x86_64                                                                                                                                 6/6 

Upgraded:
  vim-minimal-2:8.2.2115-1.fc33.x86_64                                                                                                                                                        

Installed:
  gpm-libs-1.20.7-24.fc33.x86_64            vim-common-2:8.2.2115-2.fc33.x86_64            vim-enhanced-2:8.2.2115-2.fc33.x86_64            vim-filesystem-2:8.2.2115-2.fc33.noarch           

Complete!


Looks okay

Comment 4 Fedora Update System 2020-12-14 12:01:37 UTC
FEDORA-2020-5880a3a0be has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-5880a3a0be

Comment 5 Fedora Update System 2020-12-14 12:02:06 UTC
FEDORA-2020-28b64b2f68 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-28b64b2f68

Comment 6 Martin Pitt 2020-12-14 12:50:03 UTC
Thanks Zdenek for the fast fix! 👍

Comment 7 Fedora Update System 2020-12-15 01:44:36 UTC
FEDORA-2020-5880a3a0be 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-2020-5880a3a0be`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-5880a3a0be

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

Comment 8 Fedora Update System 2020-12-15 02:12:39 UTC
FEDORA-2020-28b64b2f68 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-28b64b2f68`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-28b64b2f68

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

Comment 9 Fedora Update System 2020-12-16 01:42:51 UTC
FEDORA-2020-5880a3a0be has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2020-12-16 16:20:44 UTC
FEDORA-2020-eb6fb0541e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-eb6fb0541e

Comment 11 Fedora Update System 2020-12-16 16:21:17 UTC
FEDORA-2020-c24b468d7f has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c24b468d7f

Comment 12 Fedora Update System 2020-12-17 01:15:13 UTC
FEDORA-2020-eb6fb0541e has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-eb6fb0541e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-eb6fb0541e

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

Comment 13 Fedora Update System 2020-12-17 02:06:42 UTC
FEDORA-2020-c24b468d7f 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-2020-c24b468d7f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c24b468d7f

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

Comment 14 Fedora Update System 2020-12-18 08:37:03 UTC
FEDORA-2020-08ff42d667 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-08ff42d667

Comment 15 Fedora Update System 2020-12-18 09:01:21 UTC
FEDORA-2020-971fd35017 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-971fd35017

Comment 16 Fedora Update System 2020-12-19 01:15:43 UTC
FEDORA-2020-08ff42d667 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-2020-08ff42d667`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-08ff42d667

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

Comment 17 Fedora Update System 2020-12-19 01:20:01 UTC
FEDORA-2020-971fd35017 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-971fd35017`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-971fd35017

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

Comment 18 Fedora Update System 2020-12-22 01:29:38 UTC
FEDORA-2020-08ff42d667 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2020-12-27 01:16:04 UTC
FEDORA-2020-971fd35017 has been pushed to the Fedora 32 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.