Bug 25476 - Upgrading from Mageia 6: adding media before selecting packages fails, conflict about /usr/lib64/rpm-plugins/syslog.so
Summary: Upgrading from Mageia 6: adding media before selecting packages fails, confli...
Status: ASSIGNED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: release_blocker major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: mga6-64-ok
Keywords:
Depends on:
Blocks: 25528
  Show dependency treegraph
 
Reported: 2019-09-26 19:09 CEST by papoteur
Modified: 2019-10-21 14:32 CEST (History)
5 users (show)

See Also:
Source RPM: rpm-4.13.1-3.2.mga6
CVE:
Status comment:


Attachments
Installer log reproducing this bug (20.36 KB, text/plain)
2019-09-28 16:45 CEST, Martin Whitaker
Details

Description papoteur 2019-09-26 19:09:51 CEST
Description of problem:
Installing from DVD iso, 
1 transactions ont échoué
L'installation des paquetages a échoué :
file /usr/lib64/rpm-plugins/syslog.so from install of rpm-plugins-syslog-1:4.14.2.1-12.mga7.x86_64 conflicts with file from package rpm-1:4.13.1-3.2.mga6.x86_64
file /usr/lib64/rpm-plugins/systemd_inhibit.so from install of rpm-plugin-systemd-inhibit-1:4.14.2.1-12.mga7.x86_64 conflicts with file from package rpm-1:4.13.1-3.2.mga6.x86_64

Référence: https://www.mageialinux-online.org/forum/topic-26643-1+impossible-d-ouvrir-base-de-donnees-rpm.php#m258059
papoteur 2019-09-26 19:10:15 CEST

Summary: Upgrading from Mageia 6: adding media before selecting packages fails, confict about /usr/lib64/rpm-plugins/syslog.so => Upgrading from Mageia 6: adding media before selecting packages fails, conflict about /usr/lib64/rpm-plugins/syslog.so

Comment 1 Martin Whitaker 2019-09-28 16:45:21 CEST
Created attachment 11292 [details]
Installer log reproducing this bug

CC: (none) => mageia

Comment 2 Martin Whitaker 2019-09-28 17:08:22 CEST
This is a rpm packaging bug. On mga7:

% urpmq -l rpm-plugin-syslog
...
/usr/lib64/rpm-plugins/syslog.so

% urpmq -l rpm-plugin-systemd-inhibit
...
/usr/lib64/rpm-plugins/systemd_inhibit.so
...

% urpmq --conflicts rpm-plugin-syslog
rpm[< 1:4.13.0.1-9]
% urpmq --conflicts rpm-plugin-systemd-inhibit
rpm[< 1:4.13.0.1-9]

But the rpm-4.13.1-3.2.mga6 package still includes /usr/lib64/rpm-plugins/syslog.so and /usr/lib64/rpm-plugins/systemd_inhibit.so.

Setting version to Mageia 6, because we can't fix it on the ISOs.

Source RPM: (none) => rpm-4.13.1-3.2.mga6
Component: Installer => RPM Packages
Version: 7 => 6
CC: (none) => thierry.vignaud
Assignee: isobuild => rpmstack

Rémi Verschelde 2019-10-05 14:35:48 CEST

Priority: Normal => release_blocker

Rémi Verschelde 2019-10-05 14:47:51 CEST

Depends on: (none) => 25072

Rémi Verschelde 2019-10-05 14:47:54 CEST

Depends on: (none) => 24767

Rémi Verschelde 2019-10-05 14:47:58 CEST

Depends on: (none) => 24438

Rémi Verschelde 2019-10-05 14:48:52 CEST

Blocks: (none) => 25528

Rémi Verschelde 2019-10-05 14:48:57 CEST

Depends on: 24438 => (none)

Rémi Verschelde 2019-10-05 14:49:00 CEST

Depends on: 25072 => (none)

Rémi Verschelde 2019-10-05 14:49:02 CEST

Depends on: 24767 => (none)

Morgan Leijström 2019-10-05 23:16:27 CEST

CC: (none) => fri

claire robinson 2019-10-06 01:53:49 CEST

CC: (none) => eeeemail

Comment 3 David GEIGER 2019-10-15 11:18:12 CEST
Some rpm modules were splitted out to their own sub-pkg during mga7 development and the appropriate Conflicts were added with "rpm > 1:4.13.0.1-9" but meanwhile a rpm update has been done on mga6 with now version "1:4.13.1-3.2", this is why this upgrade issue.

So I just submit a new updated rpm on mga7 who fix this conflicts version-release number.

I change all conflicts from:

Conflicts: rpm < 1:4.13.0.1-9

to:

Conflicts: rpm < 1:4.13.1-4

CC: (none) => geiger.david68210

Comment 4 Martin Whitaker 2019-10-15 20:12:53 CEST
Sorry David, that won't help. As I commented earlier, we can't change what's on the ISOs, so this can only be fixed in the mga6 packages.

Doing the same split into sub-packages in mga6 should fix the problem, no?
Comment 5 papoteur 2019-10-19 18:10:22 CEST
I saw the rpm update for Mageia 6 of today.
Previously, I got this bug in VB.
Then I done a full update. Enabled updates_testing and install rpm.
Rebooted on the DVD image, choosing upgrading Mageia 6, choosing to add HTTP repo. No crash, the configuration of the network is now possible! Upgrade is running.

Great Martin :)
Comment 6 Martin Whitaker 2019-10-19 18:24:46 CEST
Suggested Advisory
==================

This update fixes some file conflicts when using the Mageia 7 Classical Installer ISO to upgrade a system and choosing to enable additional on-line media. It is just a packaging fix, with no functional differences from the previous version.

Test Procedure
==============
After updating, check that the new subpackages are installed:

  rpm-plugin-ima
  rpm-plugin-syslog
  rpm-plugin-systemd-inhibit

Check that rpm/urpmi/rpmdrake are still working as before.

To test the bug fix, boot the Mageia 7 CI ISO, choose to upgrade the system, and  when asked, choose to enable additional on-line media before the upgrade starts.

SRPMS
=====
rpm-4.13.1-3.3.mga6.src.rpm

noarch
======
rpm-apidocs-4.13.1-3.3.mga6.noarch.rpm
rpm-cron-4.13.1-3.3.mga6.noarch.rpm

i586
====
lib64rpm7-4.13.1-3.3.mga6.i586.rpm
lib64rpmbuild7-4.13.1-3.3.mga6.i586.rpm
lib64rpm-devel-4.13.1-3.3.mga6.i586.rpm
lib64rpmsign7-4.13.1-3.3.mga6.i586.rpm
python2-rpm-4.13.1-3.3.mga6.i586.rpm
python3-rpm-4.13.1-3.3.mga6.i586.rpm
rpm-4.13.1-3.3.mga6.i586.rpm
rpm-build-4.13.1-3.3.mga6.i586.rpm
rpm-debuginfo-4.13.1-3.3.mga6.i586.rpm
rpm-plugin-ima-4.13.1-3.3.mga6.i586.rpm
rpm-plugin-syslog-4.13.1-3.3.mga6.i586.rpm
rpm-plugin-systemd-inhibit-4.13.1-3.3.mga6.i586.rpm
rpm-sign-4.13.1-3.3.mga6.i586.rpm

x86_64
======
lib64rpm7-4.13.1-3.3.mga6.x86_64.rpm
lib64rpmbuild7-4.13.1-3.3.mga6.x86_64.rpm
lib64rpm-devel-4.13.1-3.3.mga6.x86_64.rpm
lib64rpmsign7-4.13.1-3.3.mga6.x86_64.rpm
python2-rpm-4.13.1-3.3.mga6.x86_64.rpm
python3-rpm-4.13.1-3.3.mga6.x86_64.rpm
rpm-4.13.1-3.3.mga6.x86_64.rpm
rpm-build-4.13.1-3.3.mga6.x86_64.rpm
rpm-debuginfo-4.13.1-3.3.mga6.x86_64.rpm
rpm-plugin-ima-4.13.1-3.3.mga6.x86_64.rpm
rpm-plugin-syslog-4.13.1-3.3.mga6.x86_64.rpm
rpm-plugin-systemd-inhibit-4.13.1-3.3.mga6.x86_64.rpm
rpm-sign-4.13.1-3.3.mga6.x86_64.rpm

Status: NEW => ASSIGNED
Assignee: rpmstack => qa-bugs

Comment 7 claire robinson 2019-10-20 23:12:19 CEST
Can test this tomorrow, along with bug 24438 - time to upgrade!
Comment 8 claire robinson 2019-10-21 14:30:19 CEST
Tested OK mga6 64

Before:

# rpm -qa rpm* lib64rpm* python*rpm | sort
lib64rpm7-4.13.1-3.2.mga6
lib64rpmbuild7-4.13.1-3.2.mga6
lib64rpmconstant0-0.1.4-7.mga6
lib64rpmsign7-4.13.1-3.2.mga6
python2-rpm-4.13.1-3.2.mga6
python3-rpm-4.13.1-3.2.mga6
rpm-4.13.1-3.2.mga6
rpmconf-1.0.16-1.mga6
rpmconf-base-1.0.16-1.mga6
rpmdrake-6.27.1-1.mga6
rpm-helper-0.24.17-4.mga6
rpm-mageia-setup-2.20.1-1.mga6

After:

Updated with MageiaUpdate. rpm packages offered as priority updates except lib64rpmbuild7 and lib64rpmsign7, which were picked up when it rescanned for updates and offered as priority then.

Nothing unusual to report resulting from the changes and urpmf confirms the affected file is now provided by the rpm-plugin-syslog package

# rpm -qa rpm* lib64rpm* python*rpm | sort
lib64rpm7-4.13.1-3.3.mga6
lib64rpmbuild7-4.13.1-3.3.mga6
lib64rpmconstant0-0.1.4-7.mga6
lib64rpmsign7-4.13.1-3.3.mga6
python2-rpm-4.13.1-3.3.mga6
python3-rpm-4.13.1-3.3.mga6
rpm-4.13.1-3.3.mga6
rpmconf-1.0.16-1.mga6
rpmconf-base-1.0.16-1.mga6
rpmdrake-6.27.1-1.mga6
rpm-helper-0.24.17-4.mga6
rpm-mageia-setup-2.20.1-1.mga6
rpm-plugin-ima-4.13.1-3.3.mga6               <---
rpm-plugin-syslog-4.13.1-3.3.mga6            <---
rpm-plugin-systemd-inhibit-4.13.1-3.3.mga6   <---

# urpmf /usr/lib64/rpm-plugins/syslog.so --media Testing                                   
rpm-plugin-syslog:/usr/lib64/rpm-plugins/syslog.so
rpm-debuginfo:/usr/lib/debug/usr/lib64/rpm-plugins/syslog.so.debug

Whiteboard: (none) => mga6-64-ok

Comment 9 claire robinson 2019-10-21 14:32:47 CEST
Also, for good measure:

# urpmf /usr/lib64/rpm-plugins/systemd_inhibit.so --media Testing
rpm-plugin-systemd-inhibit:/usr/lib64/rpm-plugins/systemd_inhibit.so
rpm-debuginfo:/usr/lib/debug/usr/lib64/rpm-plugins/systemd_inhibit.so.debug

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