1 |
On Sun, 2 Sep 2012 13:54:13 -0400 |
2 |
Mike Gilbert <floppym@g.o> wrote: |
3 |
|
4 |
> On Sun, Sep 2, 2012 at 1:34 PM, Michał Górny <mgorny@g.o> |
5 |
> wrote: |
6 |
> > On Sun, 2 Sep 2012 13:16:38 -0400 |
7 |
> > Mike Gilbert <floppym@g.o> wrote: |
8 |
> > |
9 |
> >> On Sun, Sep 2, 2012 at 8:21 AM, Thomas Sachau <tommy@g.o> |
10 |
> >> wrote: |
11 |
> >> > Mike Gilbert schrieb: |
12 |
> >> >> On Mon, Aug 13, 2012 at 3:38 PM, Dirkjan Ochtman |
13 |
> >> >> <djc@g.o> wrote: |
14 |
> >> >>> On Mon, Aug 13, 2012 at 9:07 PM, Richard Yao <ryao@g.o> |
15 |
> >> >>> wrote: |
16 |
> >> >>>>> Does this seem like a viable option? Is anyone going to |
17 |
> >> >>>>> volunteer to take it from here? |
18 |
> >> >>>> |
19 |
> >> >>>> I can try to make time to make these changes this weekend if |
20 |
> >> >>>> everyone is fine with that. |
21 |
> >> >>> |
22 |
> >> >>> I think we should inform gentoo-dev first. |
23 |
> >> >>> |
24 |
> >> >> |
25 |
> >> >> Just in case someone is waiting for me to take some further |
26 |
> >> >> actions on this, please don't wait on me. I really don't have |
27 |
> >> >> the motivation to carry this plan any further. |
28 |
> >> >> |
29 |
> >> >> If someone else wants to carry the torch, I am happy to assist. |
30 |
> >> >> |
31 |
> >> >> |
32 |
> >> > |
33 |
> >> > Just to get the right summary: |
34 |
> >> > |
35 |
> >> > The plan is now to replace all dependencies in ebuilds, which |
36 |
> >> > have either "dev-lang/python" or something like |
37 |
> >> > ">=dev-lang/python-X.Y" to use "virtual/python" instead? |
38 |
> >> > |
39 |
> >> |
40 |
> >> That's right. |
41 |
> >> |
42 |
> >> > What about versioned dependencies exluding python versions still |
43 |
> >> > in the main tree like ">=dev-lang/python-2.7"? |
44 |
> >> > |
45 |
> >> |
46 |
> >> In this case the virtual would not work. Instead, it could be |
47 |
> >> replaced with this: |
48 |
> >> |
49 |
> >> || ( =dev-lang/python-2.7* =dev-lang/python-3* ) |
50 |
> >> |
51 |
> >> Similarly, >=dev-lang/python-2.6 could be replaced with this: |
52 |
> >> |
53 |
> >> || ( =dev-lang/python-2.7* =dev-lang/python-2.6* |
54 |
> >> =dev-lang/python-3* ) |
55 |
> > |
56 |
> > You could go with virtual/python-2.7, -2.6, -2.5 being an |
57 |
> > appropriate minimal version. |
58 |
> > |
59 |
> |
60 |
> I gave that idea some thought, but I think it would be a somewhat |
61 |
> confusing (it makes my head hurt). |
62 |
> |
63 |
> There are actually a few ways I could see a versioned virtual being |
64 |
> implemented; can you articulate exactly what each virtual version |
65 |
> would have in RDEPEND and how it would be used in other ebuilds? |
66 |
|
67 |
Well, one not-so-crazy idea is that we have: |
68 |
|
69 |
virtual -2.5, SLOT="2.5+": || ( =python-2* =python-3* ) |
70 |
virtual -2.6, SLOT="2.6+": || ( python:2.7 python:2.6 =python-3* ) |
71 |
virtual -2.7, SLOT="2.7+": || ( python:2.7 =python-3* ) |
72 |
|
73 |
# optioanlly, I think it may be nicer than =python-3* in ebuilds |
74 |
virtual -3.1, SLOT="3.1+": =python-3* |
75 |
|
76 |
It's a bit hacky but with it, you can then do: |
77 |
|
78 |
RDEPEND="virtual/python:2.6+" |
79 |
|
80 |
which is quite self-explanatory. |
81 |
|
82 |
Alternatively, we could use some recurrency :D. |
83 |
|
84 |
virtual -3.1, SLOT="3.1+": =python-3* |
85 |
virtual -2.7, SLOT="2.7+": || ( python:2.7 virtual/python:3.1+ ) |
86 |
virtual -2.6, SLOT="2.6+": || ( virtual/python:2.7+ python:2.6 ) |
87 |
virtual -2.5, SLOT="2.5+": || ( virtual/python:2.6+ python:2.5 ) |
88 |
|
89 |
-- |
90 |
Best regards, |
91 |
Michał Górny |