1 |
On Thu, 2 Mar 2006 21:29:30 +0100 Grobian <grobian@g.o> wrote: |
2 |
| On 02-03-2006 20:19:19 +0000, Ciaran McCreesh wrote: |
3 |
| > On Thu, 2 Mar 2006 21:10:02 +0100 Paul de Vrieze <pauldv@g.o> |
4 |
| > wrote: |
5 |
| > | I'm also convinced that deliberate circumvention is easy to |
6 |
| > | detect. |
7 |
| > |
8 |
| > In that case, please provide a list of cases where !arch? flags are |
9 |
| > being used to circumvent repoman warnings, where the correct |
10 |
| > solution |
11 |
| |
12 |
| Circumvent? Can you elaborate on that? repoman does have a problem |
13 |
| with this, while portage does not. |
14 |
|
15 |
Okay. This is a rather hypothetical example, since alsa is masked on |
16 |
relevant profiles, but it's a nice, easy to understand case that's on a |
17 |
worryingly common theme. |
18 |
|
19 |
Say you create a new package, which we'll call mysoundthing. You add |
20 |
mysoundthing 1.1 to the tree, and it picks up a ~sparc keyword. Along |
21 |
comes mysoundthing 1.2, complete with optional ALSA support. You add in |
22 |
a dep of alsa? ( whatever the alsa libraries are these days ), and try |
23 |
to commit it. Repoman complains that the alsa libraries are unkeyworded |
24 |
on sparc. |
25 |
|
26 |
Now, you've heard that dropping keywords is bad. But you have a clever |
27 |
idea, and make the dep alsa? ( !sparc? ( alsa libraries ) ). This gets |
28 |
past repoman just fine. |
29 |
|
30 |
Along comes 2006 (or late 2005), and some sparc profiles get working |
31 |
ALSA support. So, the ALSA libraries are keyworded / profile masked as |
32 |
appropriate. Along comes joeuser, who installs mysoundthing. He wants |
33 |
ALSA support, so he turns on the alsa USE flag. Sure enough, emerge -pv |
34 |
indicates that ALSA will be enabled. |
35 |
|
36 |
However... Because of the nasty !arch? hack, he won't get alsa support |
37 |
until the arch team goes through and fixes this ebuild (and probably |
38 |
several others too...). |
39 |
|
40 |
The correct solution is to get the alsa USE flag use.masked on various |
41 |
profiles (as, in the alsa case, it is). However, there are a whooole |
42 |
load of ebuilds in the tree that don't do this properly. |
43 |
|
44 |
Scary sidenote: a similar hack has lead to some forums users suggesting |
45 |
that the way to avoid getting mozilla as part of gnome was to use |
46 |
USE="mips". |
47 |
|
48 |
This issue has been a major pain in the ass for some of the arch teams, |
49 |
and it will very likely be another major pain in the ass in the future, |
50 |
again and again. |
51 |
|
52 |
-- |
53 |
Ciaran McCreesh : Gentoo Developer (Wearer of the shiny hat) |
54 |
Mail : ciaranm at gentoo.org |
55 |
Web : http://dev.gentoo.org/~ciaranm |