Bug 33054

Summary: on a 64bit system, installing 32bit llvm libraries fails because of conflicting llvm-plugins-17.0.6 packages.
Product: Mageia Reporter: Aurelian R <arusanu>
Component: RPM PackagesAssignee: Jani Välimaa <jani.valimaa>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: llvm-17.0.6--6.mga10.src.rpm CVE:
Status comment:
Attachments: patch for llvm spec file

Description Aurelian R 2024-04-03 21:28:10 CEST
Created attachment 14493 [details]
patch for llvm spec file

Description of problem:
Trying to install some mesa/graphics 32 bit, I run into conflicting llvm-plugins-17.0 packages, i.e. 32bit/64bit packages with the same name.
It looks like a typo in the spec file. I think that this %{_isa} tag shouldn't be present here:
Requires:	llvm-plugins%{?_isa} >= %{version}-%{release}

Steps to Reproduce:
1. 64bit system with lib64llvm17.0-17.0.6 installed 

$rpm -qa --last | grep lib64llvm | cut -d' ' -f1
lib64llvm17.0-17.0.6-6.mga10.x86_64

2. try to install libllvm17.0

$sudo urpmi libllvm17.0 --test
A requested package cannot be installed:
libllvm17.0-17.0.6-6.mga10.i586 (due to unsatisfied llvm-plugins-17.0.6-6.mga10.i586)
Continue installation anyway? (Y/n) n

How reproducible: always
Attached is a patch of the spec file for easier reading.

Regards.
Comment 1 Lewis Smith 2024-04-03 21:40:33 CEST
Thank you for the report and your correction.
Assigning to wally who is the main committer for LLVM.

Assignee: bugsquad => jani.valimaa

Comment 2 Aurelian R 2024-04-04 13:24:10 CEST
(In reply to Aurelian R from comment #0)
> It looks like a typo in the spec file. I think that this %{_isa} tag
> shouldn't be present here:
> Requires:	llvm-plugins%{?_isa} >= %{version}-%{release}

One other option is to keep the %{?_isa} tag but use "Recommends:" instead of a hard "Requires:" which also allows "libllvm17.0" to be installed along a 64-bit "llvm-plugins" package.
Anyhow, I finally managed to locally rebuild llvm for each option and both options seem to work fine for me, but I'm not sure which one is the sensible choice.
Comment 3 Aurelian R 2024-04-10 22:32:06 CEST
Great, fixed by version llvm-17.0.6-7.mga10

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