1 |
https://bugs.gentoo.org/show_bug.cgi?id=34964 |
2 |
|
3 |
I think this patches could be candidate for the new 2.0.54 branch. |
4 |
|
5 |
BUILD_PKGS is a new configuration variable which allows choosing |
6 |
what packages should be built as .tbz2 binaries. |
7 |
|
8 |
It is a space delimited list of rules, which can be of different |
9 |
kinds: |
10 |
- "*" matches any package |
11 |
- "system" matches any package explicitly required by the profile |
12 |
(or providing a required virtual) |
13 |
- category names can be used to match all packages from a given |
14 |
category (for instance "sys-apps") |
15 |
- shell-like patterns on category names are also allowed (for |
16 |
instance "sys-*") |
17 |
- full package names can be used to match a given package (for |
18 |
instance "app-office/openoffice") |
19 |
- shell-like patterns on full packages names are also allowed (for |
20 |
instance "*/mozilla*") |
21 |
|
22 |
Note that depend atoms with versions are NOT valid rules (i |
23 |
thought it would just make things too complicated, for little |
24 |
benefit). |
25 |
|
26 |
Rules can be negated with an exclamation mark: "!rule". Negative |
27 |
rules are actually exceptions against positive rules, and only have |
28 |
an effect when they are more specific than the most specific rule |
29 |
matching the package. The less specific rule is "*", then it's |
30 |
"system", then it's patterns on categories, etc., and the most |
31 |
specific is the exact full package name. |
32 |
|
33 |
The point for not using "-" as a negation mark is that BUILD_PKGS |
34 |
is an incremental variable: removing a rule ("-rule") is different |
35 |
than adding a negative rule ("!rule"). |
36 |
|
37 |
Some example of valid BUILD_PKGS values: |
38 |
- Keep tbz2 for system packages and packages from "sys-something" |
39 |
categories, but the kernel sources, and also for a few ones known |
40 |
for the time they take to compile: |
41 |
BUILD_PKGS="system sys-* !sys-kernel kde-* x11-libs/qt" |
42 |
- Keep tbz2 for everything but kernel sources and -bin packages: |
43 |
BUILD_PKGS="* !sys-kernel !*/*-bin" |
44 |
|
45 |
Note that this patches deprecate the "buildpkg" and "buildsyspkg" |
46 |
FEATURES flags. This flags will still work, but with a warning, and |
47 |
their implementation will actually be a simple append to the |
48 |
BUILD_PKGS configuration variable. |
49 |
|
50 |
Oh, and if the name "BUILD_PKGS" sucks, feel free to sed the |
51 |
patches for something better. |
52 |
|
53 |
|
54 |
Thanks, |
55 |
|
56 |
-- |
57 |
TGL. |
58 |
-- |
59 |
gentoo-portage-dev@g.o mailing list |