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