Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/policy-guide:master commit in: /
Date: Fri, 21 Feb 2020 11:07:57
Message-Id: 1582283260.0834171b83aead95ae39e51272a9f89bb785e28b.mgorny@gentoo
1 commit: 0834171b83aead95ae39e51272a9f89bb785e28b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 18 17:05:52 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 21 11:07:40 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/policy-guide.git/commit/?id=0834171b
7
8 ebuild-format: Require KEYWORDS to be on one line
9
10 Bug: https://bugs.gentoo.org/639724
11 Closes: https://github.com/gentoo/policy-guide/pull/13
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 ebuild-format.rst | 18 +++++++++++++++++-
15 1 file changed, 17 insertions(+), 1 deletion(-)
16
17 diff --git a/ebuild-format.rst b/ebuild-format.rst
18 index d2c8dc5..ed9bde0 100644
19 --- a/ebuild-format.rst
20 +++ b/ebuild-format.rst
21 @@ -68,7 +68,6 @@ preprocessing, breaking URI support in terminals and editors, as well
22 as reducing the usefulness of plain tools such as grep.
23
24
25 -
26 .. index::
27 pair: src uri; homepage
28
29 @@ -87,3 +86,20 @@ incidentally depend on multi-valued variable having a single value
30 goes against the principle of least surprise. Furthermore, it makes
31 it hard to copy-paste part of the URI e.g. to investigate the directory
32 index.
33 +
34 +
35 +.. index:: keywords; one line
36 +
37 +KEYWORDS must be defined on a single line
38 +-----------------------------------------
39 +:Source: QA
40 +:Reported: no
41 +
42 +The ``KEYWORDS`` variable must be defined at most once in an ebuild,
43 +on a single line, with literal content (no variable references, line
44 +wrapping, appending, etc.).
45 +
46 +*Rationale*: it is common for arch teams to use the ``ekeyword`` tool
47 +when working with large number of ebuilds. The tool has only limited
48 +ability to process and modify ebuilds, and therefore developers must
49 +make sure that it works correctly on their ebuilds.