Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777129 (multiple-KEYWORDS) - [Tracker] Packages with multiple KEYWORDS lines defined
Summary: [Tracker] Packages with multiple KEYWORDS lines defined
Status: CONFIRMED
Alias: multiple-KEYWORDS
Product: Quality Assurance
Classification: Unclassified
Component: Trackers (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Quality Assurance Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 777132 777135 777138 777141 790785
Blocks:
  Show dependency tree
 
Reported: 2021-03-19 04:06 UTC by Sam James
Modified: 2021-07-21 00:39 UTC (History)
0 users

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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-19 04:06:40 UTC
KEYWORDS must be defined on exactly one line due to ekeyword (and other tools) which use naive line-based parsing.

This has been a QA policy for some time: https://projects.gentoo.org/qa/policy-guide/ebuild-format.html#pg0105.

I removed most trivial cases in the tree a month ago: https://github.com/gentoo/gentoo/pull/19467.

We still have some left. Fortunately, pkgcheck can now detect this (`pkgcheck scan -k MultipleKeywordsLines`): https://github.com/pkgcore/pkgcheck/issues/303.

If your package has multiple defined, please drop them and define only one (the operational/effective version). Note that PMS says it is safe to not define KEYWORDS in e.g. live ebuilds: https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-620007.3 as it defaults to none.
Comment 1 Paul Zander 2021-03-21 20:28:42 UTC
I'd assume (re-)defining the KEYWORD in an eclass is an extension of this. See bug #562464