Bug 1375477

Summary: Useless error message for mixed arch dependency chain
Product: [Fedora] Fedora Reporter: Michael Mráka <mmraka>
Component: libsolvAssignee: rpm-software-management
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: mluscon, pnemade, vmukhame
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-21 09:10:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael Mráka 2016-09-13 08:59:28 UTC
Description of problem:
When solving dependency chain of packages with different architectures (e.g. x86_64 and noarch) error message does not explain the root cause of failure.
When all packages are of the same arch, solver reports missing package as a root cause of failure. In mixed arch chain solver reports useless 'none of the providers can be installed' for an intermediate lib.

Version-Release number of selected component (if applicable):
libsolv-0.6.23-4.fc24.x86_64

How reproducible:
always

Steps to Reproduce:
1. cat >dep-chain-samearch.t <<EOF
repo system 0 empty
repo test 0 testtags <inline>
#>=Pkg: gimp 2:2.8.18 1.fc24 x86_64
#>=Req: libgs.so.9()(64bit)
#>=Pkg: ghostscript-core 9.16 4.fc24 x86_64
#>=Prv: libgs.so.9()(64bit)
#>=Req: urw-fonts >= 1.1
#>=Pkg: urw-fonts 3:2.4 22.fc24 x86_64
#>=Req: xorg-x11-font-utils
system x86_64 rpm system
job install name gimp
result transaction,problems
EOF
2. sed '/urw-fonts/ s/x86_64/noarch/;' <dep-chain-samearch.t >dep-chain-mixedarch.t
3. testsolv dep-chain-samearch.t
4. testsolv dep-chain-mixedarch.t

Actual results:
# testsolv dep-chain-samearch.t
Found 1 problems:
Problem 1:
nothing provides xorg-x11-font-utils needed by urw-fonts-3:2.4-22.fc24.x86_64

# testsolv dep-chain-mixedarch.t 
Found 1 problems:
Problem 1:
package gimp-2:2.8.18-1.fc24.x86_64 requires libgs.so.9()(64bit), but none of the providers can be installed


Expected results:
Missing package reported even for mixed arch chain.

Additional info:

Comment 1 Igor Gnatenko 2016-09-13 09:42:13 UTC
https://github.com/openSUSE/libsolv/issues/156

Tracking in upstream.

Comment 3 Igor Gnatenko 2016-09-13 12:23:10 UTC
I'm not going to backport this small fix, so with next upstream release it will come.