1 |
commit: baa6f758e2f4f21b44b5db92bdba78d8c4b48021 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 12 22:57:47 2018 +0000 |
4 |
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 13 16:43:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=baa6f758 |
7 |
|
8 |
general-concepts/virtuals: Explain how keywording works on virtuals |
9 |
|
10 |
general-concepts/virtuals/text.xml | 28 ++++++++++++++++++++++++++++ |
11 |
1 file changed, 28 insertions(+) |
12 |
|
13 |
diff --git a/general-concepts/virtuals/text.xml b/general-concepts/virtuals/text.xml |
14 |
index 5ba9ea5..4809394 100644 |
15 |
--- a/general-concepts/virtuals/text.xml |
16 |
+++ b/general-concepts/virtuals/text.xml |
17 |
@@ -42,5 +42,33 @@ from the Gentoo repository. |
18 |
</note> |
19 |
</body> |
20 |
|
21 |
+<section> |
22 |
+<title>KEYWORDS in virtual packages</title> |
23 |
+ |
24 |
+<body> |
25 |
+<p> |
26 |
+Since virtual packages do not install any files, they do not follow the regular |
27 |
+arch testing procedure. Instead, the developer can immediately set |
28 |
+the <c>KEYWORDS</c> of a virtual to the union of <c>KEYWORDS</c> of its |
29 |
+providers. In particular, if a new virtual is created for a stable package, |
30 |
+the virtual is committed straight to stable. |
31 |
+</p> |
32 |
+ |
33 |
+<p> |
34 |
+For example, if you have two packages: <c>dev-libs/liblinux</c> with |
35 |
+<c>KEYWORDS="amd64 ~x86"</c> and <c>dev-libs/libbsd</c> with |
36 |
+<c>KEYWORDS="~amd64-fbsd ~x86-fbsd"</c>, the resulting virtual will |
37 |
+have: |
38 |
+</p> |
39 |
+ |
40 |
+<codesample lang="ebuild"> |
41 |
+KEYWORDS="amd64 ~x86 ~amd64-fbsd ~x86-fbsd" |
42 |
+ |
43 |
+RDEPEND="|| ( dev-libs/liblinux dev-libs/libbsd )" |
44 |
+</codesample> |
45 |
+</body> |
46 |
+ |
47 |
+</section> |
48 |
+ |
49 |
</chapter> |
50 |
</guide> |