Bug 27657 - urpmi on Mageia 7 gets confused when installing dependencies of a Mageia 8 src.rpm
Summary: urpmi on Mageia 7 gets confused when installing dependencies of a Mageia 8 sr...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-11-23 20:45 CET by Pascal Terjan
Modified: 2020-11-27 21:16 CET (History)
5 users (show)

See Also:
Source RPM: perl-URPM
CVE:
Status comment:


Attachments

Description Pascal Terjan 2020-11-23 20:45:29 CET
With rpm 4.16, src.rpm packages get provides for all generated rpms. This causes urpmi to not install those packages when running on a src.rpm, and fail in bizarre ways.

This was fixed in http://gitweb.mageia.org/software/rpm/perl-URPM/commit/?id=c3c6ac847a9cd3a4b87cfc645570b998daf64fb2 which is included in perl-URPM 5.23.1.2.mga7 in core/updates_testing.

I'll write the advisory.
Comment 1 Pascal Terjan 2020-11-23 21:04:37 CET
Tested on aarch64 and advisory added.

Without the update adwaita-icon-theme doesn't get installed despite being needed by gtk, with the update it does:

# urpmi /distrib/cauldron/SRPMS/core/release/adwaita-icon-theme-3.38.0-1.mga8.src.rpm 
please use --buildrequires or --install-src, defaulting to --buildrequires
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release")
  gtk+3.0                        3.24.8       1.mga7        aarch64 
  lib64gtk+3.0-devel             3.24.8       1.mga7        aarch64 
  lib64gtk+3_0                   3.24.8       1.mga7        aarch64 
  lib64gtk-gir3.0                3.24.8       1.mga7        aarch64 
  xdg-user-dirs-gtk              0.10         6.mga7        aarch64 (recommended)
89MB of additional disk space will be used.
27MB of packages will be retrieved.
Proceed with the installation of the 5 packages? (Y/n) n

# rpm -Uvh perl-URPM-5.23-1.2.mga7.aarch64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:perl-URPM-5.23-1.2.mga7          ################################# [ 50%]
Cleaning up / removing...
   2:perl-URPM-5.21-1.mga7            ################################# [100%]

# urpmi adwaita-icon-theme-3.38.0-1.mga8.src.rpm 
please use --buildrequires or --install-src, defaulting to --buildrequires
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release")
  adwaita-icon-theme             3.32.0       1.mga7        noarch  
  gtk+3.0                        3.24.8       1.mga7        aarch64 
  lib64gtk+3.0-devel             3.24.8       1.mga7        aarch64 
  lib64gtk+3_0                   3.24.8       1.mga7        aarch64 
  lib64gtk-gir3.0                3.24.8       1.mga7        aarch64 
  xdg-user-dirs-gtk              0.10         6.mga7        aarch64 (recommended)
99MB of additional disk space will be used.
38MB of packages will be retrieved.
Proceed with the installation of the 6 packages? (Y/n) n
Comment 2 Pascal Terjan 2020-11-23 21:07:03 CET
I don't have i586 or x86_64 to validate there :/
Pascal Terjan 2020-11-23 21:08:11 CET

Assignee: bugsquad => qa-bugs

Comment 3 Thierry Vignaud 2020-11-23 23:40:41 CET
For info, this bug was fixed both in Cauldron and in infra_7 for the Build System.
However it also affects running iurt on mga7 with pkgs from mga8 or https://pkgsubmit.mageia.org/autobuild/

Advisory:
==========
This update of perl-URPM fixes ione issues when handling Source RPMs (SRPMs) generated with rpm-4.16 such as on Mageia Cauldron/8.
Due to rpm-4.16 emiting provides for src.rpm, this confuses urpmi when installing a SRPM dependencies when one matches the SRPM itself.
This update fixes running the cauldron autobuilder or running iurt with SRPMs from Mageia Cauldron/8.

CC: (none) => thierry.vignaud

Comment 4 Herman Viaene 2020-11-25 16:08:48 CET
Sorry, I get "perl-URPM-5.23-1.2.mga7.aarch64.rpm not found in the remote repository"

CC: (none) => herman.viaene

Comment 5 Thomas Andrews 2020-11-26 22:16:19 CET
Herman, try one of these:

perl-URPM-5.23-1.2.mga7.x86_64.rpm

perl-URPM-5.23-1.2.mga7.i586.rpm

"aarch64" is yet another arch.

CC: (none) => andrewsfarm

Comment 6 Thomas Andrews 2020-11-27 01:32:41 CET
Used QARepo to obtain the perl-URPM-5.23-1.2.mga7.x86_64.rpm package, and install it. No installation issues.

After, used the urpmi command to install some games, all of which installed as expected. After trying them out, I used urpme to remove a couple of them, and that also worked as expected.

Opened drakrpm, and tried several of its functions, with no issues noted.

Assuming Pascal's results where the mga8 packages are concerned can be considered valid for the 64-bit arch as well, I'm going to give this an OK, and validate. Advisory in Comment 3.

Whiteboard: (none) => MGA7-64-OK
CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update

Comment 7 Aurelien Oudelet 2020-11-27 09:55:09 CET
Advisory already in SVN.

CC: (none) => ouaurelien
Keywords: (none) => advisory

Comment 8 Mageia Robot 2020-11-27 21:16:07 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0237.html

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


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