Bug 13955 - a missing choice b/c polkit-agent should NOT be noarch
Summary: a missing choice b/c polkit-agent should NOT be noarch
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: Mageia 5
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 20:17 CEST by AL13N
Modified: 2014-08-30 09:09 CEST (History)
3 users (show)

See Also:
Source RPM: polkit-agent-none
CVE:
Status comment:


Attachments

Description AL13N 2014-08-20 20:17:35 CEST
very odd, because when polkit-agent is required, urpmi lists all possibles, then when the vendor.list preferral gets done, one of the choices is missing (polkit-agent-none).

maybe due to it being noarch?

@tv: do you have an idea?


Reproducible: 

Steps to Reproduce:
AL13N 2014-08-20 20:18:22 CEST

CC: (none) => alien, pterjan, thierry.vignaud

Comment 1 Thierry Vignaud 2014-08-20 20:41:29 CEST
indeed noarch pkgs have lower score fot urpmi

Source RPM: urpmi => polkit-agent-none

Comment 2 AL13N 2014-08-21 07:56:38 CEST
well, lower score is fine, but it's not even listed?

was this by design? (due to hiding i586 choices for x86_64 OSes)?

would it be possible to change this, or do you think i should double this package into 32bit and 64bit?
Comment 3 Thierry Vignaud 2014-08-21 10:34:29 CEST
Yes this is per design.
See _find_required_package__sort():
http://gitweb.mageia.org/software/rpm/perl-URPM/tree/URPM/Resolve.pm?id=4371f8dce15761c2c4d92d572d1adbd45fb37df6#n333

We first sort the packages according to their "arch score" (as returned by pkg->arch_compat()) & their status score (eg: preferring already installed packages).

Then we eliminate packages for which arch & status scores differ from the best found package.

So you should make it not noarch (and explain why in the spec file)
Comment 4 AL13N 2014-08-21 12:15:04 CEST
that's what i thought...

but we should really change it so that noarch has the same score as the same arch. (and keep i586 lower).

IMHO that's the better fix.
AL13N 2014-08-23 12:11:04 CEST

Summary: a missing choice with polkit-agent provides => noarch doesn't have the same score as the current arch when selecting for provides
Source RPM: polkit-agent-none => perl-URPM

AL13N 2014-08-23 12:11:41 CEST

Assignee: bugsquad => thierry.vignaud
Target Milestone: --- => Mageia 5

Comment 5 Thierry Vignaud 2014-08-24 22:37:23 CEST
No this is per design

Assignee: thierry.vignaud => bugsquad
Summary: noarch doesn't have the same score as the current arch when selecting for provides => a missing choice b/c polkit-agent should NOT be noarch
Source RPM: perl-URPM => polkit-agent-none

Comment 6 AL13N 2014-08-30 09:09:29 CEST
fine...

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


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