Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666667 - repoman-2.3.10 mistakenly reports "ebuild contains unsorted keywords"
Summary: repoman-2.3.10 mistakenly reports "ebuild contains unsorted keywords"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-21 01:42 UTC by François Bissey
Modified: 2018-09-21 08:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2018-09-21 01:42:37 UTC
When running repoman 2.3.10 the following examples of "KEYWORDS" lines are flagged as unsorted
KEYWORDS="~amd64 ~amd64-linux ~ppc-macos ~x64-macos ~x86-linux ~x86-macos"

KEYWORDS="~alpha ~amd64 ~amd64-fbsd ~amd64-linux ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x64-macos ~x64-solaris ~x86 ~x86-fbsd ~x86-linux ~x86-macos"

I cannot work out why I get this report in those instances. repoman is set to use python 2.7.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2018-09-21 03:58:21 UTC
Those examples really have unsorted keywords.

1-element keywords (without hyphen) should be before 2-elements keywords (with hyphen).

2-elements keywords should be firstly sorted by second element.
E.g. *-linux keywords before *-macos keywords.

You can use 'ekeyword' tool (from app-portage/gentoolkit) for handling of keywords with proper sorting.
Comment 2 François Bissey 2018-09-21 08:13:50 UTC
Thanks. It is totally unclear from the message that 2 elements keywords are to be after all the one with a single elements. If there is a page for sorting rules, could it be added to the message or something?

Point 2 is especially backwards when all you expect is lexical ordering.