1 |
On Wed, 3 Jul 2013 22:00:19 -0400 |
2 |
"Walter Dnes" <waltdnes@××××××××.org> wrote: |
3 |
|
4 |
> Here's my user, not-a-developer, perspective. I think that there |
5 |
> should be a mechanism to enable one patch at a time. Here's the |
6 |
> rationale... |
7 |
|
8 |
Haven't tried this myself but I believe UNIPATCH_EXCLUDE using |
9 |
the /etc/portage/package.env mechanism should accomplish this. |
10 |
|
11 |
> Assume that there are 50 different patches available. I may |
12 |
> want/need features provided by 1 of those patches. I probably do |
13 |
> *NOT* want to enable the other 49 patches. This is similar in |
14 |
> concept to enabling one ~amd64 ebuild, versus globally enabling |
15 |
> ~amd64. |
16 |
|
17 |
We don't plan to add this amount of patches, we wouldn't be able to |
18 |
maintain that number of patches; just the active / most common / ... |
19 |
|
20 |
> Even if I can come up with the list of the 49 patches to exclude, |
21 |
> what happens when the next developer comes along with patch #51? |
22 |
> Does it get applied next time I build a kernel (ouch)? |
23 |
|
24 |
Yes, but why would this bother you? None of its code will be included |
25 |
in the build unless you explicitly enable it in the menu config. |
26 |
|
27 |
> IANAD (I Am Not A Developer), but if I did want to apply custom |
28 |
> patches, I think the right approach would be to somewhere manually |
29 |
> modify UNIPATCH_LIST. If that approach won't work, maybe a USE_EXPAND |
30 |
> flag make.conf might be the way to go. E.g. CUSTOM_PATCH="foo bar" |
31 |
> would resolve to USE="custom_patch_foo custom_patch_bar" |
32 |
|
33 |
Not sure how you would use UNIPATCH_LIST, can you give an example? |
34 |
|
35 |
As for USE_EXPAND, we want to avoid that; it adds an extra layer of |
36 |
configuration for the user as well as maintenance for the maintainer for |
37 |
no good reason, this whole idea works because patches are made optional |
38 |
and only affect the build if you enable them in the menu config. |
39 |
|
40 |
Applying the experimental genpatches tarball through the experimental |
41 |
USE flag is opt-in, enabling CONFIG_GENTOO_EXPERIMENTAL is opt-in and |
42 |
applying individual options in the menu config is opt-in. |
43 |
|
44 |
I don't see a reason to make individual patches opt-in; if the user |
45 |
experience problems with one of them, UNIPATCH_EXCLUDE should suffice. |
46 |
We can document the existence of this mechanism by documenting about it |
47 |
in the experimental USE flag. |
48 |
|
49 |
-- |
50 |
With kind regards, |
51 |
|
52 |
Tom Wijsman (TomWij) |
53 |
Gentoo Developer |
54 |
|
55 |
E-mail address : TomWij@g.o |
56 |
GPG Public Key : 6D34E57D |
57 |
GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D |