Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev-announce@l.g.o
Cc: gentoo-dev@l.g.o
Subject: [gentoo-dev] Introducing python-exec:2 (and the migration plan)
Date: Tue, 17 Sep 2013 16:07:25
Message-Id: 20130917180720.0d16fc26@gentoo.org
1 Hello, all.
2
3 I have committed today the eclass support code for python-exec:2,
4 and first package.mask-ed version of it. The benefits of the new
5 solution were explained in the earlier RFC mail [1]. Now for
6 the migration plan.
7
8 The eclasses cleanly support either version of the wrapper. They use :=
9 dep and a has_version check to use the latest slot installed. That is,
10 you won't get the new behavior until you install python-exec:2.
11 Afterwards, the packages should cleanly switch on next rebuild.
12
13 We're planning on keeping python-exec:2 in package.mask for a while
14 for testing, then unleash it to the ~arch population. When tested well
15 enough, we will stabilize it and start deprecating the old wrapper. For
16 most of our users, this process should be seamless and pain-free.
17
18 However, we know of some ebuilds that are going to be broken with
19 the new wrapper since they rely too much on wrapping mechanism [2].
20 Since many of those can't really be fixed much better, those ebuilds
21 will be 'locked' at a single version of the wrapper.
22
23 If you know that a package does not work with python-exec:2,
24 the following snippet needs to be added to it:
25
26 DEPEND="dev-python/python-exec:0"
27 _PYTHON_WANT_PYTHON_EXEC2=0
28
29 This will ensure keeping the old wrapper around and override
30 the has_version check to force using the old wrapper.
31
32 If you know that your package works only with python-exec:2,
33 use the following snippet instead:
34
35 DEPEND="dev-python/python-exec:2"
36
37 No override is necessary here, since install of new wrapper will cause
38 the eclass to automatically switch to it. But please note that your
39 package's visibility/keywords will need to follow python-exec:2.
40
41 All testing will be appreciated. Enjoy.
42
43 [1]:http://thread.gmane.org/gmane.linux.gentoo.devel/88095
44 [2]:https://bugs.gentoo.org/show_bug.cgi?id=484398
45
46 --
47 Best regards,
48 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature