Bug 28679 - Upgrade from 7 to 8 (DNF/CLI) fails on package M8 CairoSVG conflict with M7 cairosvg
Summary: Upgrade from 7 to 8 (DNF/CLI) fails on package M8 CairoSVG conflict with M7 c...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: High major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: IN_ERRATA8, advisory, validated_update
Depends on:
Blocks: 28393
  Show dependency treegraph
 
Reported: 2021-03-30 17:04 CEST by Jurkka Näsänen
Modified: 2021-04-04 17:37 CEST (History)
4 users (show)

See Also:
Source RPM: python-cairosvg-2.2.1-1.1.mga7.src.rpm, python-cairosvg-2.5.1-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Jurkka Näsänen 2021-03-30 17:04:59 CEST
When upgrading via DNF/CLI using instructions from release notes the update fails on transaction test due package cairosvg having package conflict on file /usr/bin/cairosvg. This seems to about difference in package filenames as case sensitivity. Should I solve this by erasing the old package having the issue. How to do that?

Component:
CairoSVG-2.5.1-1.mga8.noarch conflicts with file from package cairosvg-2.2.1-1.1.mga7.noarch

How reproducible:
has been there since 20 march 2021

Steps to Reproduce:
Follow the instructions on release notes for DNF upgrade.

<SNIP>
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 check error:
  file /usr/bin/cairosvg from install of CairoSVG-2.5.1-1.mga8.noarch conflicts with file from package cairosvg-2.2.1-1.1.mga7.noarch
<SNIP>
Comment 1 Lewis Smith 2021-03-30 21:06:50 CEST
Thank you for the report. I suspect that removing the M7 package before the upgrade will take out more than you want. If you can live with that (re-install them after the upgrade), you can remove 'cairosvg' with Add/Remove software by UNticking it, then action the operation. But be very careful about what else it wants to remove, and only do it if you are happy with what is proposed, and re-installing them post-upgrade. You get a summary list of packages to be removed to confirm - or abort - before the operation is done, so you can back out easily.

This SRPM is committed by different packagers, so assigning this globally.
CC'in Aurélien for the upgrade umbrella bug.

Assignee: bugsquad => pkg-bugs
CC: (none) => ouaurelien
Source RPM: python-cairosvg-2.2.1-1.1.mga7.src.rpm => python-cairosvg-2.2.1-1.1.mga7.src.rpm, python-cairosvg-2.5.1-1.mga8.src.rpm
Severity: normal => major
Summary: DNF/CLI Upgrade from 7 to 8 fails with package CairoSVG => Upgrade from 7 to 8 (DNF/CLI) fails on package M8 CairoSVG conflict with M7 cairosvg

Aurelien Oudelet 2021-03-30 21:13:46 CEST

Priority: Normal => High
Blocks: (none) => 28393

Morgan Leijström 2021-03-31 11:33:50 CEST

Keywords: (none) => IN_ERRATA8
CC: (none) => fri

Comment 2 Jurkka Näsänen 2021-03-31 12:46:41 CEST
Continuing with the remove the problem idea and after some reading of the DNF manuals I came up with command line:

dnf remove --noautoremove cairosvg

My knowledge about DNF is limited so I have not tried this. Would this do what is needed? The idea would be to limit number of removed packages. At present I have a useable M7 installation so breaking it is not wanted.

Then I would need a line to restart the installation from cached packages.
Comment 3 David GEIGER 2021-03-31 12:55:06 CEST
Should be fixed with python-cairosvg-2.5.1-1.1.mga8 in Core/Updates_testing repo!

CC: (none) => geiger.david68210

David GEIGER 2021-03-31 12:58:01 CEST

Assignee: pkg-bugs => qa-bugs

Comment 4 David GEIGER 2021-04-01 06:08:21 CEST
Advisory:
========================

This update fixes a packaging issue which prevents to upgrade properly from mga7 to mga8 due to some conflicting files.

========================

Packages in 8/core/updates_testing:
========================
cairosvg-2.5.1-1.1.mga8.noarch.rpm
python3-cairosvg-2.5.1-1.1.mga8.noarch.rpm

Source RPM: 
========================
python-cairosvg-2.5.1-1.1.mga8.src.rpm
Comment 5 Aurelien Oudelet 2021-04-03 22:11:51 CEST
(In reply to David GEIGER from comment #3)
> Should be fixed with python-cairosvg-2.5.1-1.1.mga8 in Core/Updates_testing
> repo!

Agreed. Tested in Virtualbox M7 to M8 path using CLI method with
cairosvg-2.2.1-1.1.mga7.noarch.rpm and 
python3-cairosvg-2.2.1-1.1.mga7.noarch.rpm installed in M7. No issue.

cairosvg-2.5.1-1.1.mga8.noarch.rpm
python3-cairosvg-2.5.1-1.1.mga8.noarch.rpm 
correctly installed.

Validating.

Whiteboard: (none) => MGA8-64-OK
Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs

Comment 6 Mageia Robot 2021-04-04 16:30:09 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0065.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 7 Morgan Leijström 2021-04-04 17:37:55 CEST
Noted in errata.

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