* [gentoo-dev-announce] Introducing python-exec:2 (and the migration plan)
@ 2013-09-17 16:07 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2013-09-17 16:07 UTC (permalink / raw
To: gentoo-dev-announce; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1903 bytes --]
Hello, all.
I have committed today the eclass support code for python-exec:2,
and first package.mask-ed version of it. The benefits of the new
solution were explained in the earlier RFC mail [1]. Now for
the migration plan.
The eclasses cleanly support either version of the wrapper. They use :=
dep and a has_version check to use the latest slot installed. That is,
you won't get the new behavior until you install python-exec:2.
Afterwards, the packages should cleanly switch on next rebuild.
We're planning on keeping python-exec:2 in package.mask for a while
for testing, then unleash it to the ~arch population. When tested well
enough, we will stabilize it and start deprecating the old wrapper. For
most of our users, this process should be seamless and pain-free.
However, we know of some ebuilds that are going to be broken with
the new wrapper since they rely too much on wrapping mechanism [2].
Since many of those can't really be fixed much better, those ebuilds
will be 'locked' at a single version of the wrapper.
If you know that a package does not work with python-exec:2,
the following snippet needs to be added to it:
DEPEND="dev-python/python-exec:0"
_PYTHON_WANT_PYTHON_EXEC2=0
This will ensure keeping the old wrapper around and override
the has_version check to force using the old wrapper.
If you know that your package works only with python-exec:2,
use the following snippet instead:
DEPEND="dev-python/python-exec:2"
No override is necessary here, since install of new wrapper will cause
the eclass to automatically switch to it. But please note that your
package's visibility/keywords will need to follow python-exec:2.
All testing will be appreciated. Enjoy.
[1]:http://thread.gmane.org/gmane.linux.gentoo.devel/88095
[2]:https://bugs.gentoo.org/show_bug.cgi?id=484398
--
Best regards,
Michał Górny
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-17 16:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 16:07 [gentoo-dev-announce] Introducing python-exec:2 (and the migration plan) Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox