public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/hardened-dev:musl commit in: dev-lang/python/, dev-lang/python/files/
Date: Sat, 18 Jan 2014 14:32:01 +0000 (UTC)	[thread overview]
Message-ID: <1390055514.c06dbce6b20a745283590a9ace2c3ba180dd6ae3.blueness@gentoo> (raw)

commit:     c06dbce6b20a745283590a9ace2c3ba180dd6ae3
Author:     layman <layman <AT> localhost>
AuthorDate: Wed Jan 15 15:41:55 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Jan 18 14:31:54 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=c06dbce6

dev-lang/python: fix posix_close name clash

---
 dev-lang/python/ChangeLog-2011                     | 2583 ++++++++++++++++++++
 dev-lang/python/files/CVE-2013-4238_py27.patch     |  247 ++
 dev-lang/python/files/CVE-2013-4238_py33.patch     |  241 ++
 dev-lang/python/files/pydoc.conf                   |    7 +
 dev-lang/python/files/pydoc.init                   |   29 +
 dev-lang/python/files/python-2.7-issue16248.patch  |   19 +
 dev-lang/python/files/python-2.7-issue18851.patch  |  287 +++
 .../python/files/python-2.7.5-library-path.patch   |   25 +
 .../files/python-2.7.5-nonfatal-compileall.patch   |   18 +
 .../files/python-2.7.5-re_unsigned_ptrdiff.patch   |   23 +
 .../python/files/python-3.2-CVE-2013-2099.patch    |   51 +
 dev-lang/python/files/python-3.2-issue16248.patch  |   19 +
 .../python/files/python-3.3-CVE-2013-2099.patch    |   51 +
 .../files/python-3.3-fix-posix-close-clash.patch   |   21 +
 .../files/python-fix-posix-close-clash.patch       |   20 +
 dev-lang/python/metadata.xml                       |   10 +
 dev-lang/python/python-2.7.5-r99.ebuild            |  358 +++
 dev-lang/python/python-3.2.5-r99.ebuild            |  379 +++
 dev-lang/python/python-3.3.2-r99.ebuild            |  325 +++
 19 files changed, 4713 insertions(+)

diff --git a/dev-lang/python/ChangeLog-2011 b/dev-lang/python/ChangeLog-2011
new file mode 100644
index 0000000..7e2ecbc
--- /dev/null
+++ b/dev-lang/python/ChangeLog-2011
@@ -0,0 +1,2583 @@
+# ChangeLog for dev-lang/python
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog-2011,v 1.1 2012/01/01 20:25:25 dilfridge Exp $
+
+  14 Dec 2011; Mike Gilbert <floppym@gentoo.org> python-2.5.4-r4.ebuild:
+  Apply linux3 platform workaround. Fixes bug 394143.
+
+  13 Dec 2011; Dirkjan Ochtman <djc@gentoo.org> files/linux2.patch:
+  Prune back linux2.patch to prevent race conditions (bug 394547).
+
+  09 Dec 2011; Mike Frysinger <vapier@gentoo.org> python-3.2.2.ebuild:
+  Replace hardcoded /lib64 searching with /<abi_libdir> paths.
+
+  01 Dec 2011; Dirkjan Ochtman <djc@gentoo.org> python-2.7.2-r3.ebuild,
+  python-3.1.4-r3.ebuild, python-3.2.2.ebuild:
+  Fix autogen problems (bug 355733).
+
+  01 Dec 2011; Dirkjan Ochtman <djc@gentoo.org> -python-2.7.2-r2.ebuild,
+  -python-3.1.4-r2.ebuild, -python-3.2-r2.ebuild:
+  Remove old versions from the tree.
+
+  26 Nov 2011; Mike Gilbert <floppym@gentoo.org> python-2.6.7-r2.ebuild,
+  python-2.7.2-r2.ebuild, python-2.7.2-r3.ebuild, python-3.1.4-r2.ebuild,
+  python-3.1.4-r3.ebuild:
+  Remove reference to snapshots in python overlay.
+
+  31 Oct 2011; Mike Frysinger <vapier@gentoo.org> python-2.6.7-r2.ebuild,
+  python-2.7.2-r2.ebuild, python-2.7.2-r3.ebuild, python-3.1.4-r2.ebuild,
+  python-3.1.4-r3.ebuild, python-3.2-r2.ebuild, python-3.2.2.ebuild:
+  Drop unnecessary USE=kernel_linux check in plat-linux3 setup.
+
+  30 Oct 2011; Raúl Porcel <armin76@gentoo.org> python-2.7.2-r3.ebuild:
+  alpha/ia64/s390/sh/sparc stable wrt #387849
+
+  27 Oct 2011; Tony Vroon <chainsaw@gentoo.org> python-2.7.2-r3.ebuild,
+  python-3.1.4-r3.ebuild:
+  Marked stable on AMD64; objections in arch testing by Ian "idella4" Delaney &
+  Agostino "ago" Sarubbo in bug #387849 were overridden by request of Dirkjan
+  Ochtman.
+
+  27 Oct 2011; Jesus Rivero <neurogeek@gentoo.org> python-2.4.6.ebuild,
+  python-2.5.4-r4.ebuild, python-2.6.6-r2.ebuild, python-2.7.1-r1.ebuild,
+  python-3.1.3-r1.ebuild, python-3.2-r2.ebuild, python-3.2.2.ebuild,
+  files/pydoc.conf, files/pydoc.init:
+  Changes to pydoc conf.d and init.d files wrt bug #361867. Patch by
+  Arfrever
+
+  26 Oct 2011; Jeroen Roovers <jer@gentoo.org> python-3.1.4-r3.ebuild:
+  Stable for HPPA (bug #387849).
+
+  26 Oct 2011; Jeroen Roovers <jer@gentoo.org> python-2.7.2-r3.ebuild:
+  Stable for HPPA (bug #387849).
+
+  24 Oct 2011; Markus Meier <maekke@gentoo.org> python-2.7.2-r3.ebuild:
+  arm stable, bug #387849
+
+  23 Oct 2011; Markus Meier <maekke@gentoo.org> python-3.1.4-r3.ebuild:
+  x86 stable, bug #387849
+
+  23 Oct 2011; Markus Meier <maekke@gentoo.org> python-2.7.2-r3.ebuild:
+  x86 stable, bug #387849
+
+*python-3.2.2 (16 Sep 2011)
+
+  16 Sep 2011; Dirkjan Ochtman <djc@gentoo.org> +python-3.2.2.ebuild:
+  Version bump to 3.2.2 (fixes bug 375051).
+
+*python-3.1.4-r3 (16 Sep 2011)
+*python-2.7.2-r3 (16 Sep 2011)
+
+  16 Sep 2011; Dirkjan Ochtman <djc@gentoo.org> +files/linux2.patch,
+  +python-2.7.2-r3.ebuild, +python-3.1.4-r3.ebuild:
+  Set sys.platform to linux2 even on linux3 (bug 375257).
+
+  16 Sep 2011; Dirkjan Ochtman <djc@gentoo.org> -python-2.6.5-r3.ebuild,
+  -python-2.7.1-r2.ebuild:
+  Remove old versions.
+
+  27 Aug 2011; Jesus Rivero <neurogeek@gentoo.org> python-2.7.2-r2.ebuild,
+  python-3.1.3-r1.ebuild, python-3.1.4-r2.ebuild:
+  Change to generic license
+
+  23 Aug 2011; Jesus Rivero <neurogeek@gentoo.org> python-3.2-r2.ebuild,
+  +files/python-3.2-soname_typo.patch:
+  Applied patch from upstream, wrt bug #376303. Fixed License
+
+  07 Aug 2011; Naohiro Aota <naota@gentoo.org> python-2.6.7-r2.ebuild,
+  python-2.7.2-r2.ebuild, python-3.1.4-r2.ebuild, python-3.2-r2.ebuild:
+  Move more linux3 compat hack into kernel_linux check. Bug #374579
+
+  05 Aug 2011; Naohiro Aota <naota@gentoo.org> python-2.6.7-r2.ebuild,
+  python-2.7.2-r2.ebuild, python-3.1.4-r2.ebuild, python-3.2-r2.ebuild:
+  Move linux3 compat hack into kernel_linux check. Bug #374579
+
+*python-3.2-r2 (24 Jul 2011)
+*python-3.1.4-r2 (24 Jul 2011)
+*python-2.7.2-r2 (24 Jul 2011)
+*python-2.6.7-r2 (24 Jul 2011)
+
+  24 Jul 2011; Jesus Rivero <neurogeek@gentoo.org> -python-2.6.7-r1.ebuild,
+  +python-2.6.7-r2.ebuild, -python-2.7.2-r1.ebuild, +python-2.7.2-r2.ebuild,
+  -python-3.1.4-r1.ebuild, +python-3.1.4-r2.ebuild, -python-3.2-r1.ebuild,
+  +python-3.2-r2.ebuild:
+  Revbump N. 2 for all testing versions of Python wrt bug #374579 and linux-3
+
+*python-3.2-r1 (22 Jul 2011)
+*python-3.1.4-r1 (22 Jul 2011)
+*python-2.7.2-r1 (22 Jul 2011)
+*python-2.6.7-r1 (22 Jul 2011)
+
+  22 Jul 2011; Jesus Rivero <neurogeek@gentoo.org> -python-2.6.7.ebuild,
+  +python-2.6.7-r1.ebuild, -python-2.7.2.ebuild, +python-2.7.2-r1.ebuild,
+  -python-3.1.4.ebuild, +python-3.1.4-r1.ebuild, -python-3.2.ebuild,
+  +python-3.2-r1.ebuild:
+  Revbump for all testing versions of Python wrt bug #374579 and linux-3
+
+  27 Jun 2011; Dirkjan Ochtman <djc@gentoo.org> python-2.7.2.ebuild,
+  python-3.2.ebuild:
+  Bump required autoconf version to 2.65 (bug 372461).
+
+*python-3.1.4 (27 Jun 2011)
+*python-2.7.2 (27 Jun 2011)
+*python-2.6.7 (27 Jun 2011)
+
+  27 Jun 2011; Dirkjan Ochtman <djc@gentoo.org> +python-2.6.7.ebuild,
+  +python-2.7.2.ebuild, +python-3.1.4.ebuild:
+  Version bumps. Ebuilds and patchsets by Arfrever.
+
+*python-2.7.1-r2 (17 May 2011)
+
+  17 May 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.7.1-r2.ebuild:
+  Use PyXML only after calling xml.use_pyxml().
+
+  17 May 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r4.ebuild, python-2.6.5-r3.ebuild,
+  python-2.6.6-r2.ebuild, python-2.7.1-r1.ebuild, python-3.1.3-r1.ebuild,
+  python-3.2.ebuild, files/pydoc.init:
+  Use target pydoc script in pydoc init.d script (bug #361867).
+
+  22 Apr 2011; Raúl Porcel <armin76@gentoo.org> python-2.7.1-r1.ebuild:
+  alpha/ia64/m68k/s390/sh stable wrt #358717
+
+  18 Apr 2011; Thomas Kahle <tomka@gentoo.org> python-2.7.1-r1.ebuild:
+  x86 stable per bug 358717
+
+  05 Apr 2011; Ulrich Mueller <ulm@gentoo.org> python-2.4.6.ebuild,
+  python-2.5.4-r4.ebuild, python-2.6.5-r3.ebuild, python-2.6.6-r1.ebuild,
+  python-2.6.6-r2.ebuild, python-2.7.1-r1.ebuild, python-3.1.2-r4.ebuild,
+  python-3.1.3-r1.ebuild, python-3.2.ebuild:
+  Don't PROVIDE virtual/python, bug 358849.
+
+  04 Apr 2011; Jeroen Roovers <jer@gentoo.org> python-2.7.1-r1.ebuild:
+  Stable for HPPA (bug #358717).
+
+  04 Apr 2011; Michael Weber <xmw@gentoo.org> python-2.7.1-r1.ebuild:
+  arm/sparc stable (bug 358717)
+
+  25 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org> python-2.7.1-r1.ebuild:
+  ppc64 stable wrt #358717
+
+  24 Mar 2011; Christoph Mende <angelos@gentoo.org> python-2.7.1-r1.ebuild:
+  Stable on amd64 wrt bug #358717
+
+  22 Mar 2011; Brent Baude <ranger@gentoo.org> python-2.7.1-r1.ebuild:
+  Marking python-2.7.1-r1 ppc for bug 358717
+
+  18 Mar 2011; Mike Frysinger <vapier@gentoo.org> python-2.4.6.ebuild,
+  python-2.5.4-r4.ebuild, python-2.6.5-r3.ebuild, python-2.6.6-r1.ebuild,
+  python-2.6.6-r2.ebuild, python-2.7.1-r1.ebuild, python-3.1.2-r4.ebuild,
+  python-3.1.3-r1.ebuild, python-3.2.ebuild:
+  Drop useless calls to prep_ml_includes #357727.
+
+  26 Feb 2011; Raúl Porcel <armin76@gentoo.org> python-2.6.6-r2.ebuild:
+  alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #355927
+
+  26 Feb 2011; Markos Chandras <hwoarang@gentoo.org> python-2.6.6-r2.ebuild,
+  python-3.1.3-r1.ebuild:
+  Stable on amd64 wrt bug #355927
+
+  24 Feb 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+  python-2.6.6-r2.ebuild, python-3.1.3-r1.ebuild:
+  x86 stable wrt security bug #355927
+
+  23 Feb 2011; Kacper Kowalik <xarthisius@gentoo.org>
+  python-2.6.6-r2.ebuild, python-3.1.3-r1.ebuild:
+  ppc/ppc64 stable wrt #355927
+
+  23 Feb 2011; Jeroen Roovers <jer@gentoo.org> python-2.6.6-r2.ebuild,
+  python-3.1.3-r1.ebuild:
+  Stable for HPPA (bug #355927).
+
+*python-3.2 (21 Feb 2011)
+
+  21 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.2.ebuild:
+  Version bump.
+
+*python-3.1.3-r1 (21 Feb 2011)
+
+  21 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  -python-3.1.3.ebuild, +python-3.1.3-r1.ebuild:
+  Fix regression in unicodedata.normalize() (Python issue #10254). Fix
+  NameError in logging.handlers.TimedRotatingFileHandler.__init__() (Gentoo bug
+  #350400, Python issue #10810). Don't skip test_ctypes tests on hardened/PAX
+  (Gentoo bug #348745).
+
+*python-2.7.1-r1 (21 Feb 2011)
+
+  21 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  -python-2.7.ebuild, -python-2.7.1.ebuild, +python-2.7.1-r1.ebuild:
+  Fix incompatible API change in xmlrpclib.Transport.parse_response() (Gentoo
+  bug #347465, Python issue #8194). Fix regression in unicodedata.normalize()
+  (Python issue #10254). Don't skip test_ctypes tests on hardened/PAX (Gentoo
+  bug #348745).
+
+*python-2.6.6-r2 (21 Feb 2011)
+
+  21 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.6-r2.ebuild:
+  Fix DoS vulnerability in smtpd (Python issue #9129). Fix regression in
+  unicodedata.normalize() (Python issue #10254). Don't skip test_ctypes tests
+  on hardened/PAX (Gentoo bug #348745).
+
+  20 Feb 2011; Raúl Porcel <armin76@gentoo.org> python-2.6.6-r1.ebuild:
+  ia64/m68k/s390/sh/sparc stable wrt #342927
+
+  06 Jan 2011; Brent Baude <ranger@gentoo.org> python-2.6.6-r1.ebuild:
+  Marking python-2.6.6-r1 ppc for bug 342927
+
+  01 Jan 2011; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+  python-2.6.6-r1.ebuild:
+  Non-maintainer commit.
+  Reverting commit that broke stage generation for python-2.6.6-r1 as it wasn't
+  reverted before - bug 347867.
+  This commit was accepted by Arfrever.
+
+  29 Dec 2010; Markos Chandras <hwoarang@gentoo.org> python-2.6.6-r1.ebuild:
+  Stable on amd64 wrt bug #342927
+
+  27 Dec 2010; Brent Baude <ranger@gentoo.org> python-2.6.6-r1.ebuild:
+  Marking python-2.6.6-r1 ppc64 for bug 342927
+
+  27 Dec 2010; Brent Baude <ranger@gentoo.org> python-3.1.2-r4.ebuild:
+  Marking python-3.1.2-r4 ppc64 for bug 325593
+
+  22 Dec 2010; Tobias Klausmann <klausman@gentoo.org> python-2.6.6-r1.ebuild:
+  Stable on alpha, bug #342927
+
+  21 Dec 2010; Markus Meier <maekke@gentoo.org> python-2.6.6-r1.ebuild:
+  arm stable, bug #342927
+
+  16 Dec 2010; Jesus Rivero <neurogeek@gentoo.org> python-2.4.6.ebuild,
+  python-2.5.4-r4.ebuild, python-2.7.ebuild, python-2.7.1.ebuild,
+  python-3.1.3.ebuild:
+  Reverting commit that broke stage generation - bug 347867.
+
+  14 Dec 2010; Jeroen Roovers <jer@gentoo.org> python-2.6.6-r1.ebuild:
+  Stable for HPPA (bug #342927).
+
+  07 Dec 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+  python-2.6.6-r1.ebuild:
+  x86 stable wrt bug #342927
+
+  06 Dec 2010; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+  python-2.6.5-r3.ebuild, python-3.1.2-r4.ebuild:
+  Non-maintainer commit.
+  Reverting commit that broke stage generation - bug 347867.
+
+  01 Dec 2010; <sping@gentoo.org> python-2.4.6.ebuild, python-2.5.4-r4.ebuild,
+  python-2.6.5-r3.ebuild, python-2.6.6-r1.ebuild, python-2.7.ebuild,
+  python-2.7.1.ebuild, python-3.1.2-r4.ebuild, python-3.1.3.ebuild:
+  Save/restore active Python version across calls to pkg_postrm() of the ebuild
+  about to be replaced. Ensure /usr/bin/python symlink.
+
+  29 Nov 2010; <sping@gentoo.org> python-2.7.1.ebuild, python-3.1.3.ebuild:
+  Remove eselect_python_update() from 2.7.1 and 3.1.3
+
+*python-3.1.3 (28 Nov 2010)
+*python-2.7.1 (28 Nov 2010)
+
+  28 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.7.1.ebuild, +python-3.1.3.ebuild:
+  Version bumps. 2.7: Enable loadable sqlite extensions (bug #335505).
+
+  27 Nov 2010; Sebastian Pipping <sping@gentoo.org> python-2.4.6.ebuild,
+  python-2.5.4-r4.ebuild, python-2.6.5-r3.ebuild, python-2.6.6-r1.ebuild,
+  python-2.7.ebuild, python-3.1.2-r4.ebuild:
+  Disable auto-bumping of active Python version by removing
+  eselect_python_update() and its invocation as explained and announced on
+  gentoo-dev
+
+  27 Oct 2010; Dirkjan Ochtman <djc@gentoo.org> -python-2.6.4-r1.ebuild,
+  -python-2.6.5-r2.ebuild, -python-3.1.2-r3.ebuild:
+  Remove old versions.
+
+  27 Oct 2010; Dirkjan Ochtman <djc@gentoo.org> python-2.6.6-r1.ebuild:
+  Disable test___all__ to fix bug 321075.
+
+  13 Oct 2010; Dirkjan Ochtman <djc@gentoo.org> python-2.6.6-r1.ebuild:
+  Use mirrors for the patch set.
+
+*python-2.6.6-r1 (12 Oct 2010)
+
+  12 Oct 2010; Dirkjan Ochtman <djc@gentoo.org> -python-2.6.6.ebuild,
+  +python-2.6.6-r1.ebuild:
+  2.6.6-r1 actually has the rwx-mmap patch and the portage blocker.
+
+  11 Oct 2010; Dirkjan Ochtman <djc@gentoo.org> python-2.6.6.ebuild:
+  Block 2.6.6 on portage-2.1.9 (earlier portage suffers from bug 330937).
+
+*python-2.6.6 (08 Oct 2010)
+
+  08 Oct 2010; Dirkjan Ochtman <djc@gentoo.org> +python-2.6.6.ebuild:
+  Version bump to 2.6.6 (bug 334425).
+
+  15 Aug 2010; Jeroen Roovers <jer@gentoo.org> python-3.1.2-r4.ebuild:
+  Stable for HPPA (bug #325593).
+
+  11 Aug 2010; Joseph Jezak <josejx@gentoo.org> python-2.6.5-r3.ebuild,
+  python-3.1.2-r4.ebuild:
+  Marked ppc/ppc64 stable for bug #325593.
+
+  08 Aug 2010; Raúl Porcel <armin76@gentoo.org> python-2.6.5-r3.ebuild:
+  alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #325593
+
+  06 Aug 2010; Markos Chandras <hwoarang@gentoo.org> python-2.6.5-r3.ebuild,
+  python-3.1.2-r4.ebuild:
+  Stable on amd64 wrt bug #325593
+
+  06 Aug 2010; Jeroen Roovers <jer@gentoo.org> python-2.6.5-r3.ebuild:
+  Stable for HPPA (bug #325593).
+
+  06 Aug 2010; Christian Faulhammer <fauli@gentoo.org>
+  python-3.1.2-r4.ebuild:
+  stable x86, security bug 325593
+
+  06 Aug 2010; Christian Faulhammer <fauli@gentoo.org>
+  python-2.6.5-r3.ebuild:
+  stable x86, security bug 325593
+
+  02 Aug 2010; Brian Harring <ferringb@gentoo.org>
+  -python-2.6.5_p20100801.ebuild, -python-2.7_p20100801.ebuild,
+  -python-3.1.2_p20100801.ebuild:
+  Remove untested versions, one of which flat out breaks emerge (bug 330937).
+  These should not be re-added without going through devrel/qa.
+
+*python-3.1.2_p20100801 (02 Aug 2010)
+*python-2.7_p20100801 (02 Aug 2010)
+*python-2.6.5_p20100801 (02 Aug 2010)
+
+  02 Aug 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.5_p20100801.ebuild, +python-2.7_p20100801.ebuild,
+  +python-3.1.2_p20100801.ebuild:
+  Improve usage of mmap in _ctypes module (bug #329499). Fix handling of
+  environmental variables (bug #329705). Backport some fixes from release
+  branches.
+
+  31 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.4-r1.ebuild, python-2.6.5-r2.ebuild, python-2.6.5-r3.ebuild,
+  python-2.7.ebuild, python-3.1.2-r3.ebuild, python-3.1.2-r4.ebuild:
+  Revert wrong change in _ctypes module (bug #329499).
+
+  30 Jul 2010; Jeroen Roovers <jer@gentoo.org> python-3.1.2-r3.ebuild:
+  Stable for HPPA (bug #320043).
+
+  25 Jul 2010; <solar@gentoo.org> python-2.6.4-r1.ebuild,
+  python-2.6.5-r2.ebuild, python-2.6.5-r3.ebuild, python-2.7.ebuild,
+  python-3.1.2-r3.ebuild, python-3.1.2-r4.ebuild:
+  - The Modules/_ctypes/malloc_closure.c misuses a mmap() call trying to set
+  a mem segment to rwx when it does not need it. Bug 329499
+
+  22 Jul 2010; Markus Meier <maekke@gentoo.org> python-2.6.5-r2.ebuild:
+  arm stable, bug #319723
+
+  18 Jul 2010; <nixnut@gentoo.org> python-3.1.2-r3.ebuild:
+  ppc stable #320043
+
+  17 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.2-r4.ebuild:
+  Fix parallel installation (bug #328009).
+
+  15 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.2-r4.ebuild:
+  Fix building with some locales (bug #328047).
+
+*python-3.1.2-r4 (12 Jul 2010)
+
+  12 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.1.2-r4.ebuild:
+  Fix segmentation fault with non-module encodings directory on PYTHONPATH (bug #314883).
+  Fix building with Linux <2.6.9 headers (bug #317937). Fix httplib.HTTPResponse.read()
+  (bug #321545). Fix vulnerabilities in audioop module (bug #325593). Backport some
+  fixes from 3.1 branch.
+
+*python-2.6.5-r3 (12 Jul 2010)
+
+  12 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.5-r3.ebuild:
+  Fix building with Linux <2.6.9 headers (bug #317937). Fix httplib.HTTPResponse.read()
+  (bug #321545). Fix vulnerabilities in audioop module (bug #325593). Backport some
+  fixes from 2.6 branch.
+
+*python-2.7 (04 Jul 2010)
+
+  04 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.7.ebuild:
+  Version bump.
+
+  22 Jun 2010; Christian Faulhammer <fauli@gentoo.org>
+  python-2.6.5-r2.ebuild:
+  stable x86, bug 319723
+
+  04 Jun 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+  python-3.1.2-r3.ebuild:
+  x86 stable wrt bug #320043
+
+  04 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.2-r3.ebuild:
+  Disable tests with USE="-threads" (bug #322755).
+
+  26 May 2010; Markos Chandras <hwoarang@gentoo.org> python-3.1.2-r3.ebuild:
+  Stable on amd64 wrt bug #320043
+
+  25 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r4.ebuild, python-2.6.4-r1.ebuild,
+  python-2.6.5-r2.ebuild, python-3.1.2-r3.ebuild:
+  Work around bug #321145.
+
+  24 May 2010; <nixnut@gentoo.org> python-2.6.5-r2.ebuild:
+  ppc stable #319723
+
+  23 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r4.ebuild, python-2.6.5-r2.ebuild,
+  python-3.1.2-r3.ebuild:
+  Support FEATURES="test-fail-continue". Don't install byte-compiled Python
+  modules (bug #301915).
+
+  21 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.5-r2.ebuild:
+  amd64 stable (tested by rullzer) (bug #319723).
+
+  14 May 2010; Jeroen Roovers <jer@gentoo.org> python-2.6.5-r2.ebuild:
+  Stable for HPPA (bug #319723).
+
+  02 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.2-r3.ebuild:
+  Don't use ebeep() (bug #318091).
+
+*python-3.1.2-r3 (01 May 2010)
+
+  01 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.1.2-r3.ebuild:
+  Don't add GENTOO_PYTHON_WRAPPER_SCRIPT_PATH to os.environ (bug #315919).
+  Backport some fixes from 3.1 branch. Use EAPI="3".
+
+*python-2.6.5-r2 (01 May 2010)
+
+  01 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.5-r2.ebuild:
+  Don't add GENTOO_PYTHON_WRAPPER_SCRIPT_PATH to os.environ (bug #315919).
+  Fix failure of test_zlib with zlib 1.2.4 (Python issue #8193). Backport
+  some fixes from 2.6 branch.
+
+*python-3.1.2-r2 (11 Apr 2010)
+
+  11 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.1.2-r2.ebuild:
+  Use correct types of pointers. Fix failure of test_zlib with zlib 1.2.4
+  (Python issue #8193).
+
+*python-3.1.2-r1 (25 Mar 2010)
+
+  25 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.1.2-r1.ebuild:
+  Allow str subclasses to override __str__ method (Python issue #1583863).
+  Fix argument validation in sys.setfilesystemencoding() (Python issue #8226).
+
+*python-2.6.5-r1 (25 Mar 2010)
+
+  25 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.5-r1.ebuild:
+  Allow unicode subclasses to override __unicode__ method (Python issue #1583863).
+  Fix thread creation in low memory condition (Python issue #7544).
+  Fix unicodedata.normalize (Python issue #1054943). Set sys.executable to
+  empty string when program name is invalid (Python issue #7774).
+
+  25 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.5.ebuild, python-3.1.2.ebuild:
+  Unset variables after using them to avoid affecting child processes.
+
+*python-3.1.2 (22 Mar 2010)
+
+  22 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.1.2.ebuild:
+  Version bump. Fixed bugs: #189283, #279234, #300961, #301848, #302519.
+  Respect GENTOO_PYTHON_PROCESS_NAME, GENTOO_PYTHON_WRAPPER_SCRIPT_PATH and
+  GENTOO_PYTHON_TARGET_SCRIPT_PATH environmental variables.
+
+*python-2.6.5 (21 Mar 2010)
+
+  21 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.5.ebuild:
+  Version bump. Fixed bugs: #189283, #279234, #282859, #300961, #301848.
+  Respect GENTOO_PYTHON_PROCESS_NAME, GENTOO_PYTHON_WRAPPER_SCRIPT_PATH and
+  GENTOO_PYTHON_TARGET_SCRIPT_PATH environmental variables.
+
+  20 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r4.ebuild, python-2.6.4-r1.ebuild,
+  python-3.1.1-r1.ebuild:
+  Use -fwrapv (bug #297276). Install email module with USE="build".
+
+  10 Mar 2010; Joseph Jezak <josejx@gentoo.org> python-2.6.4-r1.ebuild:
+  Marked ppc/ppc64 stable for bug #306793.
+
+  07 Mar 2010; Samuli Suominen <ssuominen@gentoo.org>
+  python-2.6.4-r1.ebuild:
+  amd64 stable wrt #306793
+
+  07 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r4.ebuild, python-2.6.4.ebuild,
+  python-2.6.4-r1.ebuild:
+  Delete no longer needed recommendation (bug #307887).
+
+  04 Mar 2010; Raúl Porcel <armin76@gentoo.org> python-2.6.4-r1.ebuild:
+  alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #306793
+
+  04 Mar 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.1-r1.ebuild:
+  Depend on >=app-admin/python-updater-0.8, which supports packages
+  installable for multiple versions of Python.
+
+  26 Feb 2010; Jeroen Roovers <jer@gentoo.org> python-2.6.4-r1.ebuild:
+  Stable for HPPA (bug #306793).
+
+  25 Feb 2010; Christian Faulhammer <fauli@gentoo.org>
+  python-2.6.4-r1.ebuild:
+  stable x86, bug 306793
+
+  21 Feb 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r4.ebuild, python-2.6.4-r1.ebuild,
+  python-3.1.1-r1.ebuild:
+  Don't install idle${SLOT} and idlelib module with USE="-tk" (bug #237788).
+  Enable "ssl" USE flag by default via IUSE (bug #304891).
+
+  13 Feb 2010; Raúl Porcel <armin76@gentoo.org> python-2.5.4-r4.ebuild:
+  alpha/ia64/m68k/s390/sh/sparc stable wrt #303005
+
+  10 Feb 2010; Jeroen Roovers <jer@gentoo.org> python-2.5.4-r4.ebuild:
+  Stable for HPPA (bug #303005).
+
+  10 Feb 2010; Joseph Jezak <josejx@gentoo.org> python-2.5.4-r4.ebuild:
+  Marked ppc stable for bug #303005.
+
+  07 Feb 2010; Markus Meier <maekke@gentoo.org> python-2.5.4-r4.ebuild:
+  arm/x86 stable, bug #303005
+
+  04 Feb 2010; Brent Baude <ranger@gentoo.org> python-2.5.4-r4.ebuild:
+  Marking python-2.5.4-r4 ppc64 for bug 303005
+
+  01 Feb 2010; Markos Chandras <hwoarang@gentoo.org> python-2.5.4-r4.ebuild:
+  Stable on amd64 wrt bug #303005
+
+*python-2.6.4-r1 (26 Jan 2010)
+
+  26 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.4-r1.ebuild:
+  Respect PYTHONDONTWRITEBYTECODE / sys.dont_write_bytecode in distutils.
+  Check availability of nis headers before building of nis module (bug #288110).
+  Use pkg-config found by AC_PATH_TOOL() to avoid problem during crosscompilation
+  (bug #299044). Don't ignore __cmp__() of metaclasses.
+
+  12 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.5.4-r4.ebuild,
+  python-2.6.4.ebuild, python-3.1.1-r1.ebuild:
+  Fix building with Portage <2.1.7 (bug #300671).
+
+  01 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.1-r1.ebuild:
+  Respect PYTHONDONTWRITEBYTECODE / sys.dont_write_bytecode in distutils.
+  Check availability of nis headers before building of nis module (bug #288110).
+  Use pkg-config found by AC_PATH_TOOL() to avoid problem during crosscompilation
+  (bug #299044). Depend on >=app-admin/eselect-python-20091230, which allows
+  wrapper scipts generated by python_generate_wrapper_scripts() and requiring
+  Python-2-specific target scripts to work correctly, when Python 3 is set as
+  main active version of Python.
+
+*python-2.5.4-r4 (01 Jan 2010)
+
+  01 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.5.4-r4.ebuild:
+  Use external libffi (bug #209673). Respect PYTHONDONTWRITEBYTECODE in
+  distutils. Check availability of nis headers before building of nis
+  module (bug #288110).
+
+  01 Jan 2010; Brent Baude <ranger@gentoo.org> python-2.6.4.ebuild:
+  Marking python-2.6.4 ppc64 for bug 295066
+
+  20 Dec 2009; Raúl Porcel <armin76@gentoo.org> python-2.6.4.ebuild:
+  alpha/ia64/m68k/s390/sh/sparc stable wrt #295066
+
+  19 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.4.ebuild:
+  Restrict tests from test_httpservers (bug #293201).
+
+  19 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.1-r1.ebuild:
+  Use --with-computed-gotos (bug #296574).
+
+  13 Dec 2009; Raúl Porcel <armin76@gentoo.org> python-2.6.4.ebuild,
+  python-3.1.1-r1.ebuild:
+  Add ~m68k, thanks to kolla for testing
+
+  09 Dec 2009; nixnut <nixnut@gentoo.org> python-2.6.4.ebuild:
+  ppc stable #295066
+
+  06 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r1.ebuild,
+  python-2.6.2-r2.ebuild, python-2.6.3.ebuild, python-2.6.4.ebuild,
+  python-3.1.1-r1.ebuild, metadata.xml:
+  Remove "ucs2" USE flag and add "wide-unicode" USE flag (bug #293135).
+
+  04 Dec 2009; Jeroen Roovers <jer@gentoo.org> python-2.6.4.ebuild:
+  Stable for HPPA (bug #295066).
+
+  03 Dec 2009; Markus Meier <maekke@gentoo.org> python-2.6.4.ebuild:
+  amd64/arm/x86 stable, bug #295066
+
+  29 Nov 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.4.ebuild, python-3.1.1-r1.ebuild:
+  _ctypes module doesn't work with GCC's internal libffi.
+
+  07 Nov 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.1-r1.ebuild:
+  Make logging module ignore absence of multiprocessing module (bug
+  #291109).
+
+*python-2.6.4 (30 Oct 2009)
+
+  30 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.4.ebuild:
+  Version bump.
+
+  24 Oct 2009; Alexey Shvetsov <alexxy@gentoo.org> python-2.6.3.ebuild,
+  python-3.1.1-r1.ebuild:
+  Add ~mips keyword #287383
+
+  19 Oct 2009; Raúl Porcel <armin76@gentoo.org> python-2.6.2-r1.ebuild:
+  s390/sh stable wrt #277645
+
+  17 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.5.4-r3.ebuild, python-2.6.3.ebuild, python-3.1.1-r1.ebuild:
+  Fix paths passed to python_mod_optimize() and python_mod_cleanup() (bug
+  #288354).
+
+  14 Oct 2009; Samuli Suominen <ssuominen@gentoo.org>
+  python-3.1.1-r1.ebuild:
+  Keyword ~sparc-fbsd wrt #287383.
+
+  14 Oct 2009; Alexis Ballier <aballier@gentoo.org> python-2.6.3.ebuild:
+  keyword ~sparc-fbsd
+
+  03 Oct 2009; Fabian Groffen <grobian@gentoo.org> python-2.4.6.ebuild,
+  python-2.5.4-r3.ebuild, python-2.6.2-r2.ebuild, python-2.6.3.ebuild,
+  python-3.1.1-r1.ebuild:
+  Python's _locale module needs libintl, which on non-Linux is in gettext,
+  depend on virtual/libintl for that case
+
+*python-2.6.3 (02 Oct 2009)
+
+  02 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.3.ebuild:
+  Version bump.
+
+  02 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.2-r2.ebuild, python-3.1.1-r1.ebuild:
+  Remove a workaround for missing keywords.
+
+  27 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r2.ebuild,
+  python-3.1.1-r1.ebuild:
+  Enable "ncurses" and "readline" USE flags by default. Don't activate
+  Python 2 when Python 3 is already active. Ensure that Python 2 is
+  installed.
+
+  27 Sep 2009; nixnut <nixnut@gentoo.org> python-2.6.2-r1.ebuild:
+  ppc stable #277645
+
+  25 Sep 2009; Zac Medico <zmedico@gentoo.org> python-3.1.1.ebuild,
+  python-3.1.1-r1.ebuild:
+  For python 3, don't remove the encodings directory with USE=build, in
+  order to avoid 'Fatal Python error: Py_Initialize: can't initialize sys
+  standard streams ImportError: No module named encodings.utf_8'.
+
+  23 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r2.ebuild:
+  Fix handling of USE="-berkdb".
+
+  23 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r2.ebuild,
+  python-3.1.1-r1.ebuild:
+  Add dependency on app-misc/mime-types which is used by mimetypes module.
+  Reported by Dirkjan Ochtman.
+
+*python-3.1.1-r1 (22 Sep 2009)
+*python-2.6.2-r2 (22 Sep 2009)
+
+  22 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.2-r2.ebuild, +python-3.1.1-r1.ebuild:
+  Use external libffi on some architectures (bug #209673).
+
+  22 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r1.ebuild:
+  Restrict sys-libs/db dependencies and add warnings (bug #285553).
+
+  21 Sep 2009; Tom Gall <tgall@gentoo.org> python-2.6.2-r1.ebuild:
+  stable for ppc64, bug #277645
+
+  17 Sep 2009; Jeroen Roovers <jer@gentoo.org> python-2.6.2-r1.ebuild:
+  Stable for HPPA (bug #277645).
+
+  06 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  -files/python-config-2.4, -python-3.1.ebuild:
+  Delete old ebuild and old python-config.
+
+  05 Sep 2009; Raúl Porcel <armin76@gentoo.org> python-2.6.2-r1.ebuild:
+  ia64/sparc stable wrt #277645
+
+  01 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.2-r1.ebuild:
+  Fix building on arm OABI (bug #266703).
+
+  30 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.4.6.ebuild, python-2.5.4-r3.ebuild, python-2.6.2-r1.ebuild,
+  python-3.1.1.ebuild:
+  Reenable test_math.py and test_pow.py on alpha (bug #282786).
+
+  28 Aug 2009; Raúl Porcel <armin76@gentoo.org> python-2.6.2-r1.ebuild:
+  arm/m68k stable wrt #277645
+
+  26 Aug 2009; Tobias Klausmann <klausman@gentoo.org>
+  python-2.6.2-r1.ebuild:
+  Stable on alpha, bug #277645
+
+  26 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.2-r1.ebuild, python-3.1.1.ebuild:
+  Skip test_math.py on alpha (bug #282786).
+
+  25 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.6.2-r1.ebuild, python-3.1.1.ebuild:
+  Fix building of Python 2.6.2-r1 with USE=-threads (bug #282518). Fix
+  building with USE=build or USE=-xml (bug #282259). Small updates.
+
+  21 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.5.4-r3.ebuild, python-2.6.2-r1.ebuild, python-3.1.1.ebuild:
+  Add missing dependency on >=dev-libs/expat-2 and non-zero exit status of
+  setup.py when building of extensions has failed (bug #281968).
+
+*python-3.1.1 (17 Aug 2009)
+
+  17 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.1.1.ebuild:
+  Version bump. Don't install sqlite3 and _sqlite3 modules with USE="-sqlite"
+  (bug #236466).
+
+  16 Aug 2009; Christian Faulhammer <fauli@gentoo.org>
+  python-2.6.2-r1.ebuild:
+  stable x86, bug 277645
+
+  04 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-3.1.ebuild:
+  Fix building with sys-libs/db headers containing non-UTF-8 characters (bug
+  #280001).
+
+  02 Aug 2009; Jeremy Olexa <darkside@gentoo.org> metadata.xml:
+  Be more verbose about the 'threads' USE flag.
+
+*python-3.1 (01 Aug 2009)
+
+  01 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-3.1.ebuild:
+  Version bump (bug #250186).
+
+  01 Aug 2009; Zac Medico <zmedico@gentoo.org> python-2.6.2-r1.ebuild:
+  Bug #248081 - Fix tests not to assume that stdin is a tty.
+
+  31 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  python-2.5.4-r3.ebuild, python-2.6.2-r1.ebuild:
+  Skip test_ctypes on systems with PAX (bug #234498).
+
+  30 Jul 2009; Jeremy Olexa <darkside@gentoo.org> python-2.6.2-r1.ebuild:
+  amd64 stable, bug 277645
+
+  19 Jul 2009; Raúl Porcel <armin76@gentoo.org> python-2.5.4-r3.ebuild:
+  arm/ia64/m68k/s390/sh/sparc stable wrt #275311
+
+  17 Jul 2009; nixnut <nixnut@gentoo.org> python-2.5.4-r3.ebuild:
+  ppc stable #275311
+
+  05 Jul 2009; Markus Meier <maekke@gentoo.org> python-2.5.4-r3.ebuild:
+  amd64 stable, bug #275311
+
+  04 Jul 2009; Brent Baude <ranger@gentoo.org> python-2.5.4-r3.ebuild:
+  stable ppc64, bug 275311
+
+  30 Jun 2009; Christian Faulhammer <fauli@gentoo.org>
+  python-2.5.4-r3.ebuild:
+  stable x86, bug 275311
+
+  28 Jun 2009; Tobias Klausmann <klausman@gentoo.org>
+  python-2.5.4-r3.ebuild:
+  Stable on alpha, bug #275311
+
+  26 Jun 2009; Jeroen Roovers <jer@gentoo.org> python-2.5.4-r3.ebuild:
+  Stable for HPPA (bug #275311).
+
+*python-2.6.2-r1 (28 May 2009)
+
+  28 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.2-r1.ebuild:
+  Install libpython2.6.a in /usr/lib instead of /usr/lib/python2.6/config
+  (bug #252372). Fix building with Subversion 1.7.
+
+  27 May 2009; Raúl Porcel <armin76@gentoo.org> python-2.4.6.ebuild:
+  arm/ia64/m68k/s390/sh/sparc stable wrt #252317
+
+  25 May 2009; Markus Meier <maekke@gentoo.org> python-2.4.6.ebuild:
+  amd64 stable, bug #252317
+
+  25 May 2009; Christian Faulhammer <fauli@gentoo.org> python-2.4.6.ebuild:
+  stable x86, security bug  252317
+
+*python-2.5.4-r3 (25 May 2009)
+
+  25 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.5.4-r3.ebuild:
+  Install libpython2.5.a in /usr/lib instead of /usr/lib/python2.5/config
+  (bug #252372). Fix building with Subversion 1.7. Use `eselect python`
+  instead of alternatives.eclass.
+
+  25 May 2009; Brent Baude <ranger@gentoo.org> python-2.4.6.ebuild:
+  Marking python-2.4.6 ppc64 and ppc for bug 252317
+
+  24 May 2009; Jeroen Roovers <jer@gentoo.org> python-2.4.6.ebuild:
+  Stable for HPPA (bug #252317).
+
+  24 May 2009; Tobias Klausmann <klausman@gentoo.org> python-2.4.6.ebuild:
+  Stable on alpha, bug #252317
+
+  24 May 2009; Tobias Klausmann <klausman@gentoo.org> python-2.4.6.ebuild:
+  Keyworded on alpha, bug #252317
+
+*python-2.4.6 (24 May 2009)
+
+  24 May 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.4.6.ebuild:
+  Version bump (bug #252317).
+
+  24 Apr 2009; Raúl Porcel <armin76@gentoo.org> python-2.5.4-r2.ebuild:
+  arm/ia64/m68k/s390/sh/sparc stable wrt #265790
+
+  22 Apr 2009; Jeroen Roovers <jer@gentoo.org> python-2.5.4-r2:
+  Stable for HPPA (bug #265790).
+
+  19 Apr 2009; Markus Meier <maekke@gentoo.org> python-2.5.4-r2:
+  amd64/x86 stable, bug #265790
+
+  19 Apr 2009; Brent Baude <ranger@gentoo.org> python-2.5.4-r2.ebuild:
+  Marking python-2.5.4-r2 ppc64 and ppc for bug 265790
+
+*python-2.6.2 (18 Apr 2009)
+
+  18 Apr 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  +python-2.6.2.ebuild:
+  Version bump (bug #266596).
+
+  18 Apr 2009; Tobias Klausmann <klausman@gentoo.org>
+  python-2.5.4-r2.ebuild:
+  Stable on alpha, bug #265790
+
+  17 Apr 2009; Joshua Kinard <kumba@gentoo.org> python-2.6-r5.ebuild,
+  python-2.6.1-r1.ebuild:
+  Python 2.6 has a build failure on MIPS for now. Dropping our unstable
+  keywords until it's fixed by upstream or if Upstreams latest patch on
+  their bug is added. Refer to #266471 for Gentoo for the tracker, or
+  http://bugs.python.org/issue4305 for the Python issue.
+
+  12 Apr 2009; Mike Frysinger <vapier@gentoo.org>
+  +files/python-2.6-chflags-cross.patch,
+  +files/python-2.6-cross-patch-tweak.patch, python-2.6.1-r1.ebuild:
+  Fix up cross-compiling with python-2.6.
+
+  26 Mar 2009; Zac Medico <zmedico@gentoo.org> python-2.5.2-r7.ebuild,
+  python-2.5.2-r8.ebuild, python-2.5.4-r2.ebuild, python-2.6-r5.ebuild,
+  python-2.6.1-r1.ebuild:
+  In src_test, redirect stdin from /dev/tty as a workaround for bug #248081.
+
+*python-2.6.1-r1 (21 Mar 2009)
+
+  21 Mar 2009; Jesus Rivero <neurogeek@gentoo.org> -python-2.6.1.ebuild,
+  +python-2.6.1-r1.ebuild:
+  Fixed typo in sqlite3 extension. Removed old version
+
+  26 Feb 2009; Mike Frysinger <vapier@gentoo.org>
+  +files/python-2.5-cross-printf.patch, python-2.5.2-r7.ebuild,
+  python-2.5.2-r8.ebuild, python-2.5.4-r2.ebuild:
+  Fix cross-compilation with %zd printf tests #239110 by xeb and #184308 by
+  Joel Martin.
+
+  26 Feb 2009; Mike Frysinger <vapier@gentoo.org> python-2.4.4-r5.ebuild,
+  python-2.4.4-r6.ebuild, python-2.4.4-r14.ebuild, python-2.4.4-r15.ebuild,
+  python-2.5.2-r7.ebuild, python-2.5.2-r8.ebuild, python-2.5.4-r2.ebuild,
+  python-2.6-r5.ebuild, python-2.6.1.ebuild:
+  Drop host python ver check when cross-compiling since we build up a local
+  hostpython, and pass CBUILD to the hostpython configure so it detects the
+  full name of the compiler.
+
+  10 Feb 2009; <neurogeek@gentoo.org> python-2.6-r5.ebuild,
+  python-2.6.1.ebuild:
+  Python 2.6 series. Added +xml use flag to standarize.
+
+  10 Feb 2009; <neurogeek@gentoo.org> python-2.5.2-r7.ebuild,
+  python-2.5.2-r8.ebuild, python-2.5.4-r2.ebuild:
+  Python 2.5 series. Added +xml use flag to standarize.
+
+  10 Feb 2009; <neurogeek@gentoo.org> python-2.4.4-r5.ebuild,
+  python-2.4.4-r6.ebuild, python-2.4.4-r14.ebuild, python-2.4.4-r15.ebuild:
+  Python 2.4.4 series. Added +xml use flag to standarize.
+
+*python-2.5.4-r2 (24 Jan 2009)
+
+  24 Jan 2009; Jesus Rivero <neurogeek@gentoo.org> -python-2.5.4-r1.ebuild,
+  +python-2.5.4-r2.ebuild:
+  Fixed line breaks errors in ebuild. Removed older version. Closes Bug
+  #255946. Thanks Walter and Steve for helping
+
+*python-2.5.4-r1 (22 Jan 2009)
+
+  22 Jan 2009; Jesus Rivero <neurogeek@gentoo.org>
+  files/python-2.5.2_turkish.patch, files/python-2.6_turkish.patch,
+  -python-2.5.4.ebuild, +python-2.5.4-r1.ebuild:
+  Rev bump. Patch bundle updated to fix turkish locale patch. Updated older
+  patches too and removed previous version.
+
+*python-2.5.4 (21 Jan 2009)
+
+  21 Jan 2009; Jesus Rivero <neurogeek@gentoo.org> +python-2.5.4.ebuild:
+  Version bump. Some of the patches used in previous versions are not
+  needed.
+
+  24 Dec 2008; Jesus Rivero <neurogeek@gentoo.org> python-2.6-r5.ebuild,
+  python-2.6.1.ebuild:
+  Added dev-python/python-docs:2.6
+
+*python-2.6.1 (13 Dec 2008)
+
+  13 Dec 2008; Jesus Rivero <neurogeek@gentoo.org>
+  +files/python-2.6_turkish.patch, +python-2.6.1.ebuild:
+  Version bump
+
+  09 Dec 2008; Mike Frysinger <vapier@gentoo.org> python-2.5.2-r8.ebuild,
+  python-2.6-r5.ebuild:
+  Set expat to default to on.
+
+  08 Dec 2008; Mike Frysinger <vapier@gentoo.org> python-2.5.2-r8.ebuild,
+  python-2.6-r5.ebuild:
+  Make dev-libs/expat optional via USE=expat.
+
+  06 Dec 2008; Jesus Rivero <neurogeek@gentoo.org>
+  +files/python-2.5.2_turkish.patch, python-2.5.2-r8.ebuild:
+  Fixed support for tr_TR locale. Bug #250075. Thanks to Serkan
+
+*python-2.6-r5 (17 Nov 2008)
+
+  17 Nov 2008; <neurogeek@gentoo.org> -python-2.6-r4.ebuild,
+  +python-2.6-r5.ebuild:
+  Revision bump. Fixes Bug #219238. Removed older version
+
+  26 Oct 2008; Ali Polatel <hawking@gentoo.org> python-2.4.4-r5.ebuild,
+  python-2.4.4-r6.ebuild, python-2.4.4-r14.ebuild, python-2.4.4-r15.ebuild,
+  python-2.5.2-r7.ebuild, python-2.5.2-r8.ebuild:
+  Use python_{en,dis}able_pyc.
+
+*python-2.6-r4 (26 Oct 2008)
+
+  26 Oct 2008; Ali Polatel <hawking@gentoo.org> +python-2.6-r4.ebuild:
+  Revbump. Updated patchset to use PYTHONDONTWRITEBYTECODE instead of
+  PYTHON_DONT_COMPILE.
+
+  25 Oct 2008; Ali Polatel <hawking@gentoo.org> python-2.5.2-r7.ebuild,
+  python-2.5.2-r8.ebuild, python-2.6-r3.ebuild:
+  Nuke the useless bootstrap USE flag for >=python-2.5. Thanks to Arfrever.
+
+*python-2.6-r3 (25 Oct 2008)
+
+  25 Oct 2008; Ali Polatel <hawking@gentoo.org> -python-2.6-r2.ebuild,
+  +python-2.6-r3.ebuild:
+  Revbump. Bump eselect-python DEPEND to fix bug 240149. Don't install empty
+  directories.
+
+*python-2.6-r2 (07 Oct 2008)
+
+  07 Oct 2008; Ali Polatel <hawking@gentoo.org> -python-2.6-r1.ebuild,
+  +python-2.6-r2.ebuild:
+  Revbump. Bump to EAPI 2 and some minor fixes. Drop old.
+
+*python-2.6-r1 (06 Oct 2008)
+
+  06 Oct 2008; Ali Polatel <hawking@gentoo.org> -python-2.6.ebuild,
+  +python-2.6-r1.ebuild:
+  Revbump. Use use_with for threads, remove die from econf, use emake
+  instead of make, remove redundant python_mod_{cleanup,optimize}. Drop old.
+
+*python-2.6 (05 Oct 2008)
+
+  05 Oct 2008; Ali Polatel <hawking@gentoo.org>
+  +files/python-2.6-test-cross.patch, -python-2.5.2-r6.ebuild,
+  +python-2.6.ebuild:
+  Version bump. Drop old.
+
+*python-2.5.2-r8 (19 Sep 2008)
+*python-2.4.4-r15 (19 Sep 2008)
+
+  19 Sep 2008; Ali Polatel <hawking@gentoo.org> +python-2.4.4-r15.ebuild,
+  +python-2.5.2-r8.ebuild:
+  Revbumps. Updated patchset to fix bug 238124. Install examples under
+  /usr/share/doc/$PF/examples.
+
+  17 Sep 2008; Brent Baude <ranger@gentoo.org> python-2.5.2-r7.ebuild:
+  stable ppc64, bug 236723
+
+  14 Sep 2008; Sven Wegener <swegener@gentoo.org> python-2.5.2-r6.ebuild,
+  python-2.5.2-r7.ebuild:
+  Use correct sqlite module name, when disabling it.
+
+  12 Sep 2008; Raúl Porcel <armin76@gentoo.org> python-2.5.2-r7.ebuild:
+  alpha/ia64 stable wrt #236723
+
+  12 Sep 2008; Ferris McCormick <fmccor@gentoo.org> python-2.5.2-r7.ebuild:
+  Sparc stable --- Bug #236723 --- tests all good.
+
+  11 Sep 2008; Markus Meier <maekke@gentoo.org> python-2.5.2-r7.ebuild:
+  amd64/x86 stable, bug #236723
+
+  11 Sep 2008; Jeroen Roovers <jer@gentoo.org> python-2.5.2-r7.ebuild:
+  Stable for HPPA (bug #236723).
+
+  10 Sep 2008; Brent Baude <ranger@gentoo.org> python-2.5.2-r7.ebuild:
+  stable ppc, bug 236723
+
+  19 Aug 2008; Ali Polatel <hawking@gentoo.org> -files/python-config-2.2,
+  -files/python-config-2.3, -files/python-2.3.6-disable-failing-tests.patch,
+  metadata.xml, -python-2.3.5-r2.ebuild, -python-2.3.5-r3.ebuild,
+  -python-2.3.6.ebuild, -python-2.3.6-r3.ebuild, -python-2.3.6-r6.ebuild,
+  -python-2.4.4-r13.ebuild, -python-2.5.2-r5.ebuild:
+  Drop python-2.3, drop old 2.4, 2.5 ebuilds. Add local use flag
+  descriptions to metadata.xml.
+
+  31 Jul 2008; Raúl Porcel <armin76@gentoo.org> python-2.5.2-r6.ebuild:
+  sparc stable
+
+*python-2.5.2-r7 (31 Jul 2008)
+
+  31 Jul 2008; Tiziano Müller <dev-zero@gentoo.org>
+  +python-2.5.2-r7.ebuild:
+  Added patches for bug #218378 (thanks to Duane Griffin) and bug #233312
+  (thanks to Arfrever Frehtes Taifersar Arahesis).
+
+*python-2.5.2-r6 (31 Jul 2008)
+*python-2.4.4-r14 (31 Jul 2008)
+
+  31 Jul 2008; Tiziano Müller <dev-zero@gentoo.org>
+  +python-2.4.4-r14.ebuild, +python-2.5.2-r6.ebuild:
+  Revision bump to fix bug #230640 (CVE-2008-2315, CVE-2008-2316) and bug
+  #232137 (CVE-2008-{3142,3143,3144}).
+
+  18 Jul 2008; Olivier Crête <tester@gentoo.org> python-2.5.2-r5.ebuild:
+  Stable on amd64, bug #178800
+
+  18 Jul 2008; Jeroen Roovers <jer@gentoo.org> python-2.5.2-r5.ebuild:
+  Stable for HPPA (bug #178800).
+
+  17 Jul 2008; Tobias Klausmann <klausman@gentoo.org>
+  python-2.5.2-r5.ebuild:
+  Stable on alpha, bug #178800
+
+  17 Jul 2008; Raúl Porcel <armin76@gentoo.org> python-2.5.2-r5.ebuild:
+  ia64/sparc stable wrt #178800
+
+  17 Jul 2008; Christian Faulhammer <opfer@gentoo.org>
+  python-2.5.2-r5.ebuild:
+  stable x86, bug 178800
+
+  16 Jul 2008; nixnut <nixnut@gentoo.org> python-2.5.2-r5.ebuild:
+  Stable on ppc wrt bug 178800
+
+  09 Jul 2008; Markus Rothe <corsair@gentoo.org> python-2.5.2-r5.ebuild:
+  Stable on ppc64; bug #178800
+
+  30 Jun 2008; Ali Polatel <hawking@gentoo.org> files/pydoc.conf,
+  files/pydoc.init:
+  Fixed files/pydoc* headers
+
+*python-2.5.2-r5 (24 Jun 2008)
+
+  24 Jun 2008; Ali Polatel <hawking@gentoo.org> -python-2.3.6-r4.ebuild,
+  -python-2.3.6-r5.ebuild, -python-2.4.4-r9.ebuild,
+  -python-2.4.4-r10.ebuild, -python-2.4.4-r11.ebuild,
+  -python-2.4.4-r12.ebuild, -python-2.5.2-r1.ebuild,
+  -python-2.5.2-r2.ebuild, -python-2.5.2-r3.ebuild, -python-2.5.2-r4.ebuild,
+  +python-2.5.2-r5.ebuild:
+  Revbump. Append -fwrapv to CFLAGS if we're using gcc-4, #228905. Updated
+  patchset to fix memory issues with unicode objects, #222481. Drop old.
+
+  20 Jun 2008; Ali Polatel <hawking@gentoo.org> python-2.5.2-r4.ebuild:
+  Fix bsddb dependency, bug 223133. Cosmetics
+
+  29 May 2008; Ali Polatel <hawking@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.3.5-r3.ebuild, python-2.3.6.ebuild, python-2.3.6-r3.ebuild,
+  python-2.3.6-r4.ebuild, python-2.3.6-r5.ebuild, python-2.3.6-r6.ebuild,
+  python-2.4.4-r5.ebuild, python-2.4.4-r6.ebuild, python-2.4.4-r9.ebuild,
+  python-2.4.4-r10.ebuild, python-2.4.4-r11.ebuild, python-2.4.4-r12.ebuild,
+  python-2.4.4-r13.ebuild, python-2.5.2-r1.ebuild, python-2.5.2-r2.ebuild,
+  python-2.5.2-r3.ebuild, python-2.5.2-r4.ebuild:
+  Fix -x option passed to python_mod_optimize, thanks to Remy Blank,
+  #224137.
+
+  29 May 2008; Ali Polatel <hawking@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.3.5-r3.ebuild, python-2.3.6.ebuild, python-2.3.6-r3.ebuild,
+  python-2.3.6-r4.ebuild, python-2.3.6-r5.ebuild, python-2.3.6-r6.ebuild,
+  python-2.4.4-r5.ebuild, python-2.4.4-r6.ebuild, python-2.4.4-r9.ebuild,
+  python-2.4.4-r10.ebuild, python-2.4.4-r11.ebuild, python-2.4.4-r12.ebuild,
+  python-2.4.4-r13.ebuild, python-2.5.2-r1.ebuild, python-2.5.2-r2.ebuild,
+  python-2.5.2-r3.ebuild, python-2.5.2-r4.ebuild:
+  python_mod_optimize is ROOT aware.
+
+  28 May 2008; Markus Meier <maekke@gentoo.org> python-2.3.6-r6.ebuild,
+  python-2.4.4-r13.ebuild:
+  amd64/x86 stable, security bug #216673
+
+  27 May 2008; Markus Rothe <corsair@gentoo.org> python-2.3.6-r6.ebuild,
+  python-2.4.4-r13.ebuild:
+  Stable on ppc64; bug #216673
+
+  26 May 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+  python-2.3.6-r6.ebuild, python-2.4.4-r13.ebuild:
+  ppc stable, bug #216673
+
+  26 May 2008; Raúl Porcel <armin76@gentoo.org> python-2.3.6-r6.ebuild,
+  python-2.4.4-r13.ebuild:
+  ia64/sparc stable wrt security #216673
+
+  25 May 2008; Tobias Klausmann <klausman@gentoo.org>
+  python-2.3.6-r6.ebuild:
+  Stable on alpha, bug #216673
+
+  25 May 2008; Tobias Klausmann <klausman@gentoo.org>
+  python-2.4.4-r13.ebuild:
+  Stable on alpha, bug #216673
+
+  25 May 2008; Ali Polatel <hawking@gentoo.org>
+  +files/python-2.3.6-disable-failing-tests.patch, python-2.3.6-r6.ebuild,
+  python-2.4.4-r13.ebuild, python-2.5.2-r4.ebuild:
+  Added patch to disable failing test_bsddb test for 2.3. Disable test_pow
+  on alpha until upstream comes up with a fix.
+
+  24 May 2008; Jeroen Roovers <jer@gentoo.org> python-2.3.6-r6.ebuild,
+  python-2.4.4-r13.ebuild:
+  Stable for HPPA (bug #216673).
+
+*python-2.5.2-r4 (21 May 2008)
+*python-2.4.4-r13 (21 May 2008)
+*python-2.3.6-r6 (21 May 2008)
+
+  21 May 2008; Ali Polatel <hawking@gentoo.org> +python-2.3.6-r6.ebuild,
+  +python-2.4.4-r13.ebuild, +python-2.5.2-r4.ebuild:
+  Revision bumps. Don't build the imageop module on 32 bit as well, #216673.
+
+  13 May 2008; Ali Polatel <hawking@gentoo.org> python-2.4.4-r12.ebuild,
+  python-2.5.2-r3.ebuild:
+  Drop dev-python/python-fchksum from PDEPEND. It's not needed anymore.
+
+*python-2.5.2-r3 (13 May 2008)
+*python-2.4.4-r12 (13 May 2008)
+
+  13 May 2008; Ali Polatel <hawking@gentoo.org> +python-2.4.4-r12.ebuild,
+  +python-2.5.2-r3.ebuild:
+  Revbumps. Updated CXXFLAGS patch so packages overriding
+  distutils.CCompiler._compile won't fail to build, #219238. Added patch to
+  fix executable stack for ctypes, thanks to Sandro Bonazzola, #218753.
+  Added patch to build with system expat, thanks to Diego, #178921.
+
+*python-2.5.2-r2 (19 Apr 2008)
+*python-2.4.4-r11 (19 Apr 2008)
+
+  19 Apr 2008; Ali Polatel <hawking@gentoo.org> +python-2.4.4-r11.ebuild,
+  +python-2.5.2-r2.ebuild:
+  Revbumps. Updated patchset to fix compilation of extensions when CXXFLAGS
+  is unset.
+
+*python-2.5.2-r1 (18 Apr 2008)
+
+  18 Apr 2008; Ali Polatel <hawking@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.3.5-r3.ebuild, python-2.3.6.ebuild, -python-2.3.6-r2.ebuild,
+  python-2.3.6-r3.ebuild, -python-2.4.4-r4.ebuild, python-2.4.4-r5.ebuild,
+  -python-2.4.4-r7.ebuild, -python-2.4.4-r8.ebuild, -python-2.5.1-r2.ebuild,
+  -python-2.5.1-r3.ebuild, -python-2.5.1-r4.ebuild, -python-2.5.1-r5.ebuild,
+  -python-2.5.2.ebuild, +python-2.5.2-r1.ebuild:
+  Revbump. Updated patchset. Backported upstream patch to make file objects
+  as thread safe as the underlying libc FILE* implementation. Backported
+  upstream patch fixing a bunch of infinite C recursions. Dropped old.
+  Quoting.
+
+*python-2.5.2 (18 Apr 2008)
+*python-2.4.4-r10 (18 Apr 2008)
+*python-2.3.6-r5 (18 Apr 2008)
+
+  18 Apr 2008; Ali Polatel <hawking@gentoo.org> +python-2.3.6-r5.ebuild,
+  +python-2.4.4-r10.ebuild, +python-2.5.2.ebuild:
+  Version bumps. Updated patchsets to fix buffer overflow in zlib extension
+  (CVE-2008-1721) bug 217221 and unsafe PyString_FromStringAndSize(). Added
+  patch by Mark Peloquin for distutils to respect CXXFLAGS, bug 145206. Add
+  wininst USE flag to conditionally install MS Windows executables, bug
+  198021. Use EAPI=1, rename nothreads and nocxx USE flags to threads and
+  cxx.
+
+  11 Mar 2008; Markus Rothe <corsair@gentoo.org> python-2.4.4-r9.ebuild:
+  Stable on ppc64; bug #211281
+
+  11 Mar 2008; Tiziano Müller <dev-zero@gentoo.org> python-2.4.4-r9.ebuild,
+  python-2.5.1-r5.ebuild:
+  Changed newinitd/newconfd for pydoc to install the init.d/conf.d scripts as
+  pydoc-2.x (aka don't break slotting)
+
+  06 Mar 2008; nixnut <nixnut@gentoo.org> python-2.4.4-r9.ebuild:
+  Stable on ppc wrt bug 211281
+
+  03 Mar 2008; Christoph Mende <angelos@gentoo.org> python-2.4.4-r9.ebuild:
+  Stable on amd64, bug #211281
+
+  03 Mar 2008; Raúl Porcel <armin76@gentoo.org> python-2.4.4-r9.ebuild:
+  alpha/ia64/sparc/x86 stable wrt #211281
+
+  03 Mar 2008; Jeroen Roovers <jer@gentoo.org> python-2.4.4-r9.ebuild:
+  Stable for HPPA (bug #211281).
+
+  01 Mar 2008; Tiziano Müller <dev-zero@gentoo.org> +files/pydoc.conf,
+  +files/pydoc.init, python-2.4.4-r9.ebuild, python-2.5.1-r5.ebuild:
+  Added init.d/conf.d scripts for the integrated pydoc webserver (bug #59903,
+  thanks to compnerd).
+
+*python-2.4.4-r9 (16 Feb 2008)
+
+  16 Feb 2008; Christian Faulhammer <opfer@gentoo.org>
+  +python-2.4.4-r9.ebuild:
+  fix bug 179377, with a dependency adjustment to proper slots of sys-libs/db,
+  provided by Petr Pisar <petr DOT pisar AT atlas DOT cz>
+
+  25 Jan 2008; Markus Rothe <corsair@gentoo.org> python-2.3.6-r4.ebuild:
+  Stable on ppc64; bug #198373
+
+  23 Jan 2008; Peter Weller <welp@gentoo.org> python-2.3.6-r4.ebuild:
+  Stable on amd64; bug 198373
+
+  23 Jan 2008; Raúl Porcel <armin76@gentoo.org> python-2.3.6-r4.ebuild:
+  alpha/ia64/sparc stable wrt security #198373
+
+  23 Jan 2008; Christian Faulhammer <opfer@gentoo.org>
+  python-2.3.6-r4.ebuild:
+  stable x86, security bug 198373
+
+  23 Jan 2008; Jeroen Roovers <jer@gentoo.org> python-2.3.6-r4.ebuild:
+  Stable for HPPA (bug #198373).
+
+  23 Jan 2008; Brent Baude <ranger@gentoo.org> python-2.3.6-r4.ebuild:
+  Marking python-2.3.6-r4 ppc for bug 198373
+
+*python-2.3.6-r4 (22 Jan 2008)
+
+  22 Jan 2008; Ali Polatel <hawking@gentoo.org> +python-2.3.6-r4.ebuild:
+  Revision bump. New patchset for 2.3.6 including fixes for #198373 and #204343.
+  Changed berkdb DEPEND, quoting.
+
+*python-2.5.1-r5 (07 Jan 2008)
+*python-2.4.4-r8 (07 Jan 2008)
+
+  07 Jan 2008; Ali Polatel <hawking@gentoo.org> +python-2.4.4-r8.ebuild,
+  +python-2.5.1-r5.ebuild:
+  Revision bump(s). New patchsets for 2.4.4 and 2.5.1 wrt #204700 and #204343
+
+*python-2.5.1-r4 (18 Nov 2007)
+*python-2.4.4-r7 (18 Nov 2007)
+
+  18 Nov 2007; Ali Polatel <hawking@gentoo.org> +python-2.4.4-r7.ebuild,
+  +python-2.5.1-r4.ebuild:
+  revbump(s). don't install windows executables, bug 198021. updated patchset
+  to fix implicit dependency on openssl, bug 198398. fix quoting.
+
+  27 Oct 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+  python-2.3.6-r3.ebuild, python-2.4.4-r6.ebuild:
+  ppc stable, bug #192876
+
+  26 Oct 2007; Ali Polatel <hawking@gentoo.org> python-2.4.4-r4.ebuild,
+  python-2.4.4-r5.ebuild, python-2.4.4-r6.ebuild:
+  Changed SRC_URI of python-gentoo-patches-2.4* to mirror://gentoo
+
+  25 Oct 2007; Jeroen Roovers <jer@gentoo.org> python-2.4.4-r6.ebuild:
+  Stable for HPPA (bug #192876). Fixed quoting issues.
+
+  25 Oct 2007; Jeroen Roovers <jer@gentoo.org> python-2.3.6-r3.ebuild:
+  Stable for HPPA (bug #192876).
+
+  25 Oct 2007; Raúl Porcel <armin76@gentoo.org> python-2.3.6-r3.ebuild,
+  python-2.4.4-r6.ebuild:
+  alpha/ia64/sparc stable wrt security #192876
+
+  25 Oct 2007; Daniel Gryniewicz <dang@gentoo.org> python-2.3.6-r3.ebuild,
+  python-2.4.4-r6.ebuild:
+  Marked stable on amd64 for bug #192876
+
+  25 Oct 2007; Markus Rothe <corsair@gentoo.org> python-2.3.6-r3.ebuild,
+  python-2.4.4-r6.ebuild:
+  Stable on ppc64; bug #192876
+
+  25 Oct 2007; Christian Faulhammer <opfer@gentoo.org>
+  python-2.3.6-r3.ebuild:
+  stable x86, security bug 192876
+
+  25 Oct 2007; Christian Faulhammer <opfer@gentoo.org>
+  python-2.4.4-r6.ebuild:
+  stable x86, security bug 192876
+
+*python-2.5.1-r3 (24 Oct 2007)
+*python-2.4.4-r6 (24 Oct 2007)
+*python-2.3.6-r3 (24 Oct 2007)
+
+  24 Oct 2007; Ali Polatel <hawking@gentoo.org> +python-2.3.6-r3.ebuild,
+  +python-2.4.4-r6.ebuild, +python-2.5.1-r3.ebuild:
+  revbump(s). fix imageop integer overflows (CVE-2007-4965), bug 192876
+
+  26 Sep 2007; Joshua Kinard <kumba@gentoo.org> python-2.4.4-r5.ebuild:
+  Stable on mips, per #188029.
+
+  24 Sep 2007; Ali Polatel <hawking@gentoo.org> python-2.5.1-r2.ebuild:
+  don't set LINKCC, removed nocxx use flag. don't pass --with-cxx=no to
+  configure. bug 193190
+
+  22 Sep 2007; Jeroen Roovers <jer@gentoo.org> python-2.4.4-r5.ebuild:
+  Stable for HPPA (bug #188029).
+
+  22 Sep 2007; Ferris McCormick <fmccor@gentoo.org> python-2.4.4-r5.ebuild:
+  Sparc stable --- Bug #188029 --- all tests pass and portage still works.
+
+  22 Sep 2007; Brent Baude <ranger@gentoo.org> ChangeLog:
+  MArking python-2.4.4-r5 ppc64 for bug 188029
+
+  22 Sep 2007; nixnut <nixnut@gentoo.org> python-2.4.4-r5.ebuild:
+  Stable on ppc wrt bug 188029
+
+  22 Sep 2007; Tom Gall <tgall@gentoo.org> python-2.4.4-r5.ebuild:
+  stable on ppc64
+
+  21 Sep 2007; Raúl Porcel <armin76@gentoo.org> python-2.4.4-r5.ebuild:
+  alpha/ia64 stable wrt #188029
+
+  21 Sep 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+  python-2.4.4-r5.ebuild:
+  Stable on x86 wrt bug #188029.
+
+  21 Sep 2007; Daniel Gryniewicz <dang@gentoo.org> python-2.4.4-r5.ebuild:
+  Marked stable on amd64 for bug #188029
+
+  10 Sep 2007; Joel Martin <kanaka@gentoo.org>
+  +files/python-2.4.4-test-cross.patch, python-2.4.4-r4.ebuild,
+  python-2.4.4-r5.ebuild, python-2.5.1-r2.ebuild:
+  Fix cross-compile check and add small cross-compile patch to remove unicode
+  in one of the tests when cross-compiling.
+
+  08 Sep 2007; Zac Medico <zmedico@gentoo.org>
+  python-2.4.4-r4.ebuild, python-2.4.4-r5.ebuild:
+  Add build? ( !dev-python/pycrypto ) to RDEPEND in order to enforce
+  correct merge order for a stage building issue similar to bug #88777.
+
+  07 Sep 2007; Ali Polatel <hawking@gentoo.org>
+  -files/python-2.4.3-db4.patch, -files/python-2.4.3-gentoo_obsd.patch,
+  -files/python-2.4.3-gentoo_obsd-r1.patch, -python-2.4.3-r1.ebuild,
+  -python-2.4.3-r4.ebuild, -python-2.4.4.ebuild, -python-2.5-r2.ebuild:
+  Clean out old versions
+
+  03 Sep 2007; Zac Medico <zmedico@gentoo.org> python-2.4.4-r4.ebuild,
+  python-2.4.4-r5.ebuild, python-2.5-r2.ebuild, python-2.5.1-r2.ebuild:
+  Add build? ( !dev-python/python-fchksum ) to RDEPEND in order
+  to enforce correct merge order for bug #88777.
+
+*python-2.4.4-r5 (24 Aug 2007)
+
+  24 Aug 2007; Ali Polatel <hawking@gentoo.org> +files/python-config-2.4-r1,
+  +python-2.4.4-r5.ebuild:
+  Revision bump. Use python-config provided by python-2.5 with small changes
+  instead of our custom python-config-2.4. bug 188029
+
+  20 Aug 2007; Roy Marples <uberlord@gentoo.org> python-2.5.1-r2.ebuild:
+  export LDFLAGS="-L." -> append-ldflags "-L.", #189298
+  thanks to Arfrever Frehtes Taifersar Arahesis.
+
+  02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.3.5-r3.ebuild, python-2.3.6.ebuild, python-2.3.6-r2.ebuild,
+  python-2.4.3-r1.ebuild, python-2.4.3-r4.ebuild, python-2.4.4.ebuild,
+  python-2.4.4-r4.ebuild, python-2.5-r2.ebuild, python-2.5.1-r2.ebuild:
+  (QA) RESTRICT clean up.
+
+  30 Jun 2007; Lars Weiler <pylon@gentoo.org> python-2.3.6-r2.ebuild,
+  python-2.5.1-r2.ebuild:
+  Keyworded ~ppc; bug #177426.
+
+  31 May 2007; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
+  Remove myself as I'm retiring.
+
+  19 May 2007; Peter Weller <welp@gentoo.org> python-2.5.1-r2.ebuild:
+  Keyworded ~amd64 wrt bug 177426
+
+  19 May 2007; Peter Weller <welp@gentoo.org> python-2.3.6-r2.ebuild:
+  Added ~amd64 to python-2.3.6-r2
+
+  17 May 2007; Bryan Østergaard <kloeri@gentoo.org> metadata.xml:
+  Mark myself as maintainer.
+
+  16 May 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+  python-2.4.4-r4.ebuild:
+  ppc stable, bug #177804
+
+  16 May 2007; Daniel Gryniewicz <dang@gentoo.org> python-2.4.4-r4.ebuild:
+  Marked stable on amd64 for bug #177804
+
+  14 May 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+  python-2.3.6-r2.ebuild, python-2.5.1-r2.ebuild:
+  Keyworded ~sparc wrt #177426
+
+  14 May 2007; Bryan Østergaard <kloeri@gentoo.org> python-2.4.4-r4.ebuild:
+  Stable on Alpha and Mips.
+
+  14 May 2007; Daniel Gryniewicz <dang@gentoo.org> python-2.4.4-r4.ebuild:
+  Marked ~amd64 for bug #177804
+
+  14 May 2007; Bryan Østergaard <kloeri@gentoo.org> python-2.4.4-r4.ebuild:
+  Fix 2.4.4-r4 tests always being disabled.
+
+  14 May 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+  python-2.4.4-r4.ebuild:
+  Stable on sparc wrt security #177804
+
+  14 May 2007; Bryan Østergaard <kloeri@gentoo.org> python-2.3.6-r2.ebuild,
+  python-2.4.4-r4.ebuild, -python-2.5.1-r1.ebuild, python-2.5.1-r2.ebuild:
+  Fix small bug preventing tests from running, fix manpage symlinks (bug
+  177471) and filter as-needed in python-2.3.6-r2 (bug 177614).
+
+  14 May 2007; Jeroen Roovers <jer@gentoo.org> python-2.4.4-r4.ebuild:
+  Stable for HPPA (bug #177804).
+
+  13 May 2007; Markus Rothe <corsair@gentoo.org> python-2.4.4-r4.ebuild:
+  Stable on ppc64; bug #177804
+
+  12 May 2007; Roy Marples <uberlord@gentoo.org> python-2.4.4-r4.ebuild:
+  Added ~sparc-fbsd keyword.
+
+  12 May 2007; Raúl Porcel <armin76@gentoo.org> python-2.4.4-r4.ebuild:
+  ia64 + x86 stable wrt security bug #177804
+
+  12 May 2007; Markus Rothe <corsair@gentoo.org> python-2.3.6-r2.ebuild,
+  python-2.4.4-r4.ebuild, python-2.5.1-r2.ebuild:
+  Added ~ppc64; bug #177426
+
+  11 May 2007; Bryan Østergaard <kloeri@gentoo.org> python-2.4.4-r4.ebuild,
+  python-2.5.1-r2.ebuild:
+  Add ~alpha and ~mips keywords.
+
+  11 May 2007; Bryan Østergaard <kloeri@gentoo.org>
+  -python-2.1.3-r1.ebuild, -python-2.2.3-r6.ebuild:
+  More cleanups, this time removing <python-2.3.
+
+  11 May 2007; Bryan Østergaard <kloeri@gentoo.org>
+  -python-2.3.6-r1.ebuild, -python-2.4.4-r2.ebuild, -python-2.4.4-r3.ebuild,
+  -python-2.5-r1.ebuild, -python-2.5.1.ebuild:
+  Clean out some old versions.
+
+*python-2.5.1-r2 (11 May 2007)
+*python-2.4.4-r4 (11 May 2007)
+
+  11 May 2007; Bryan Østergaard <kloeri@gentoo.org>
+  +python-2.4.4-r4.ebuild, +python-2.5.1-r2.ebuild:
+  Only apply crosscompile patch conditionally, drop tests if crosscompiling
+  and fix PyLocale.strxfrm leak from bug 177804. srtxfrm from Debian bug
+  416934
+
+*python-2.5.1-r1 (10 May 2007)
+*python-2.4.4-r3 (10 May 2007)
+*python-2.3.6-r2 (10 May 2007)
+
+  10 May 2007; Bryan Østergaard <kloeri@gentoo.org>
+  +python-2.3.6-r2.ebuild, +python-2.4.4-r3.ebuild, +python-2.5.1-r1.ebuild:
+  Change threads USE flag to nothreads, fix non-linux linker issue and fix
+  man-page symlink.
+
+  08 May 2007; Roy Marples <uberlord@gentoo.org> python-2.5.1.ebuild:
+  Added ~sparc-fbsd keyword, #177426.
+  Added ~x86-fbsd keyword, #177426.
+  export LDFLAGS="-L." so we link modules correctly on FreeBSD and possibly
+  other systems where python2.5 isn't installed yet.
+
+  08 May 2007; Raúl Porcel <armin76@gentoo.org> python-2.3.6-r1.ebuild,
+  python-2.4.4-r2.ebuild, python-2.5.1.ebuild:
+  Add ~ia64 wrt 177426
+
+  08 May 2007; Roy Marples <uberlord@gentoo.org> python-2.4.4-r2.ebuild:
+  Added ~x86-fbsd keyword, #177426.
+
+  08 May 2007; Bryan Østergaard <kloeri@gentoo.org> python-2.3.6-r1.ebuild,
+  python-2.4.4-r2.ebuild, python-2.5.1.ebuild:
+  Change nptl USE flag to threads.
+
+  08 May 2007; Jeroen Roovers <jer@gentoo.org> python-2.5.1.ebuild:
+  Marked ~hppa (bug #177426).
+
+  07 May 2007; Jeroen Roovers <jer@gentoo.org> python-2.4.4-r2.ebuild:
+  Marked ~hppa (bug #177426).
+
+  07 May 2007; Jeroen Roovers <jer@gentoo.org> python-2.3.6-r1.ebuild:
+  Marked ~hppa (bug #177426).
+
+*python-2.4.4-r2 (07 May 2007)
+
+  07 May 2007; Bryan Østergaard <kloeri@gentoo.org>
+  -python-2.4.4-r1.ebuild, +python-2.4.4-r2.ebuild:
+  Fix broken 2.4.4 patch causing wrong linking.
+
+  07 May 2007; Gustavo Zacarias <gustavoz@gentoo.org> python-2.4.4.ebuild:
+  Stable on sparc
+
+  07 May 2007; Bryan Østergaard <kloeri@gentoo.org> python-2.3.6-r1.ebuild,
+  python-2.4.4.ebuild, python-2.4.4-r1.ebuild:
+  Fix 2.3.6-r1 patch (bug 177464) and disable sax test in 2.4.4.
+
+  07 May 2007; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.3.5-r3.ebuild, python-2.3.6.ebuild, python-2.3.6-r1.ebuild,
+  python-2.4.3-r1.ebuild, python-2.4.3-r4.ebuild, python-2.4.4.ebuild,
+  python-2.4.4-r1.ebuild, python-2.5-r1.ebuild, python-2.5-r2.ebuild:
+  Stable on Alpha, IA64 and x86 + fix digest issue reported in bug 177440.
+
+*python-2.5.1 (06 May 2007)
+*python-2.4.4-r1 (06 May 2007)
+*python-2.3.6-r1 (06 May 2007)
+
+  06 May 2007; Bryan Østergaard <kloeri@gentoo.org>
+  +python-2.3.6-r1.ebuild, +python-2.4.4-r1.ebuild, +python-2.5.1.ebuild:
+  Build problems fixed:
+  bug 120099 dev-lang/python-2.4.2 builds against sys-libs/gdbm with USE="-gdbm"
+  bug 135239 crosscompiling python. python-2.4.1-bindir-libdir.patch
+  bug 138647 dev-lang/python-x.x.x distutils installer does not link libraries
+  bug 150595 dev-lang/python-2.5 fails to compile with LC_ALL=de_DE@euro
+  bug 150732 python-2.4.3-r4 does not honor ROOT
+  bug 159967 python doesn't add pthread to LIBS correctly on BSD
+
+  Other problems fixed:
+  bug 148362 File collision between python-2.4* and python-2.5*
+  bug 151695 dev-python/python-docs env.d entry incorrect
+  bug 158383 emerging python-2.4.3-r4 segfaults with -ipv6
+  bug 165268 dev-lang/python-2.4.4 fails to build the dbm module
+
+  Test failures fixed:
+  bug 82469: QA issue: python-2.3.5-maketest failes with propolice
+  bug 124188 dev-lang/python-2.4.2 fails test_cookielib
+  bug 154247 dev-lang/python-2.4.4 tests failed: test_sax failed -- 1 of 42 tests failed: test_xmlgen_attr_escape
+
+  Feature requests:
+  bug 131325 python 2.4.4/2.3.6 enable pthreads inconditionaly
+  bug 135617 dev-lang/python should install Tools/freeze
+  bug 176066 dev-lang/python-2.5.1 bump
+
+  Fixed in current upstream version:
+  bug 90660 python-2.3.5: No module named fcntl
+  bug 144798 dev-lang/python-2.4.3 with TZ=Australia/Melbourne fails test
+  bug 151246 signed integer overflow bug in dev-lang/python-2.4.3
+  bug 159553 dev-lang/python-2.4.3-r4 fails test_openpty
+  bug 162057 dev-lang/python fails tests in test_expanduser
+
+*python-2.5-r2 (31 Mar 2007)
+
+  31 Mar 2007; Marien Zwart <marienz@gentoo.org> +python-2.5-r2.ebuild:
+  Revision bump python 2.5 with distutils and execstack fixes (rebuilding
+  installed extensions is recommended if upgrading from an older python 2.5
+  ebuild). Remove unnecessary pysqlite block. Fix python 2.3 digest problem.
+
+  06 Feb 2007; Marius Mauch <genone@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.3.5-r3.ebuild, python-2.3.6.ebuild, python-2.4.3-r1.ebuild,
+  python-2.4.3-r4.ebuild, python-2.4.4.ebuild, python-2.5-r1.ebuild:
+  Replacing einfo with elog
+
+  11 Nov 2006; Bryan Østergaard <kloeri@gentoo.org> python-2.3.6.ebuild:
+  Fix lib64 patch, bug 154711.
+
+*python-2.3.6 (09 Nov 2006)
+
+  09 Nov 2006; Bryan Østergaard <kloeri@gentoo.org> +python-2.3.6.ebuild:
+  Bump version, bug 153944.
+
+*python-2.4.4 (04 Nov 2006)
+
+  04 Nov 2006; Bryan Østergaard <kloeri@gentoo.org> +python-2.4.4.ebuild:
+  Version bump.
+
+  18 Oct 2006; Roy Marples <uberlord@gentoo.org> python-2.4.3-r4.ebuild,
+  python-2.5-r1.ebuild:
+  Added ~sparc-fbsd keyword.
+
+  27 Sep 2006; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5-r3.ebuild,
+  python-2.4.3-r4.ebuild:
+  Stable on ia64.
+
+  27 Sep 2006; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5-r3.ebuild,
+  python-2.4.3-r4.ebuild:
+  Stable on Alpha.
+
+  27 Sep 2006; Joshua Jackson <tsunam@gentoo.org> python-2.3.5-r3.ebuild,
+  python-2.4.3-r4.ebuild:
+  Stable x86; bug #149065
+
+  27 Sep 2006; Jason Wever <weeve@gentoo.org> python-2.3.5-r3.ebuild,
+  python-2.4.3-r4.ebuild:
+  Stable on SPARC wrt security bug #149065.
+
+  26 Sep 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+  python-2.3.5-r3.ebuild, python-2.4.3-r4.ebuild:
+  Stable on hppa wrt security #149065
+
+  26 Sep 2006; Simon Stelling <blubb@gentoo.org> python-2.3.5-r3.ebuild:
+  stable on amd64; bug 149065
+
+  26 Sep 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+  python-2.3.5-r3.ebuild, python-2.4.3-r4.ebuild:
+  ppc stable, bug #149065
+
+  26 Sep 2006; Simon Stelling <blubb@gentoo.org> python-2.4.3-r4.ebuild:
+  stable on amd64; bug 149065
+
+  26 Sep 2006; Markus Rothe <corsair@gentoo.org> python-2.3.5-r3.ebuild,
+  python-2.4.3-r4.ebuild:
+  Stable on ppc64; bug #149065
+
+*python-2.4.3-r4 (26 Sep 2006)
+*python-2.3.5-r3 (26 Sep 2006)
+
+  26 Sep 2006; Marien Zwart <marienz@gentoo.org> +python-2.3.5-r3.ebuild,
+  +python-2.4.3-r4.ebuild:
+  Revision bumps for bug #149065.
+
+*python-2.5-r1 (19 Sep 2006)
+
+  19 Sep 2006; Alastair Tse <liquidx@gentoo.org> python-2.5.ebuild
+  +python-2.5-r1.ebuild:
+  Fixed patches that still contain the zlib mistake from the 2.4
+  patchset. Disabled etree tests.
+
+*python-2.5 (19 Sep 2006)
+
+  19 Sep 2006; Alastair Tse <liquidx@gentoo.org> -python-2.4.3-r2.ebuild,
+  +python-2.5.ebuild:
+  python 2.5 released.
+
+*python-2.4.3-r3 (28 Aug 2006)
+
+  28 Aug 2006; Alastair Tse <liquidx@gentoo.org> +python-2.4.3-r3.ebuild:
+  fix mistake introduced in 2.4.3-r2 where system zlib was used that caused
+  problems on certain machines (#145242)
+
+*python-2.4.3-r2 (26 Aug 2006)
+
+  26 Aug 2006; Alastair Tse <liquidx@gentoo.org> +python-2.4.3-r2.ebuild:
+  cleanup 2.4.3 ebuild, fix collisions with slotted versions of pydoc and
+  idle, fix multilib installs so that everything is installed in /usr/lib64
+  rather than just the .so (#118805)
+
+  22 Aug 2006; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r6.ebuild,
+  python-2.3.5-r2.ebuild, -python-2.4.2.ebuild, -python-2.4.2-r1.ebuild,
+  -python-2.4.2-r2.ebuild, -python-2.4.3.ebuild, python-2.4.3-r1.ebuild:
+  renamed patches to have short names and version numbers to indicate when
+  they were introduced. patches tarballs are now generated from gentoo-svn.
+  cleaned up older unstable versions of python leaving the latest version for
+  each major release. fixed some installed file collisions between the two
+  version.
+
+  20 Jul 2006; Simon Stelling <blubb@gentoo.org> python-2.4.3-r1.ebuild:
+  stable on amd64
+
+  11 Jul 2006; Alastair Tse <liquidx@gentoo.org> python-2.4.3-r1.ebuild:
+  python-2.2.3-r6.ebuild, python-2.3.5-r2.ebuild, python-2.4.2.ebuild,
+  python-2.4.2-r1.ebuild, python-2.4.2-r2.ebuild, python-2.4.3.ebuild,
+  python-2.4.3-r1.ebuild:
+  Typo fix in DESCRIPTION (#139463)
+
+  09 Jul 2006; Joshua Kinard <kumba@gentoo.org> python-2.4.3-r1.ebuild:
+  Marked stable on mips.
+
+  08 Jul 2006; Doug Goldstein <cardoe@gentoo.org> python-2.1.3-r1.ebuild,
+  python-2.2.3-r6.ebuild, python-2.3.5-r2.ebuild, python-2.4.2.ebuild,
+  python-2.4.2-r1.ebuild, python-2.4.2-r2.ebuild, python-2.4.3.ebuild,
+  python-2.4.3-r1.ebuild:
+  split USE='tcltk' to 'tcl' & 'tk' per bug #17808. Nuked X USE flag since it
+  was only to find tk from tcltk
+
+  30 Jun 2006; Joel Martin <kanaka@gentoo.org> python-2.4.3-r1.ebuild:
+  Cross-compile update: bindir-libdir patch is no longer needed and will break
+  the patching if it's there. Also, unset CC to force the native python build
+  to use the native compiler.
+
+  28 Jun 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+  python-2.4.3-r1.ebuild:
+  ppc stable, #138268
+
+  28 Jun 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+  python-2.4.3-r1.ebuild:
+  Stable on sparc wrt #138268
+
+  28 Jun 2006; Guy Martin <gmsoft@gentoo.org> python-2.4.3-r1.ebuild:
+  Stable on hppa.
+
+  28 Jun 2006; Markus Rothe <corsair@gentoo.org> python-2.4.3-r1.ebuild:
+  Stable on ppc64; bug #138268
+
+  27 Jun 2006; Bryan Østergaard <kloeri@gentoo.org> python-2.4.3-r1.ebuild:
+  Stable on alpha, ia64 and x86.
+
+*python-2.4.3-r1 (04 May 2006)
+*python-2.4.2-r2 (04 May 2006)
+
+  04 May 2006; Bryan Østergaard <kloeri@gentoo.org>
+  +files/python-2.4.2-gentoo_obsd-r1.patch,
+  +files/python-2.4.3-gentoo_obsd-r1.patch, +python-2.4.2-r2.ebuild,
+  +python-2.4.3-r1.ebuild:
+  Fix obsd patch (thanks reb) fixing bugs 117261 and 130140.
+
+  27 Apr 2006; Marien Zwart <marienz@gentoo.org>
+  files/digest-python-2.1.3-r1, files/digest-python-2.2.3-r6, Manifest:
+  Fixing SHA256 digest, pass four
+
+  14 Apr 2006; Bryan Østergaard <kloeri@gentoo.org
+  +files/python-2.4.2-gentoo_obsd.patch,
+  +files/python-2.4.3-gentoo_obsd.patch, python-2.4.2-r1.ebuild,
+  python-2.4.3.ebuild:
+  Add gentoo/obsd patch, bug 117261.
+
+*python-2.4.3 (13 Apr 2006)
+
+  13 Apr 2006; Bryan Østergaard <kloeri@gentoo.org
+  +files/python-2.4.3-db4.patch, +python-2.4.3.ebuild:
+  Version bump to 2.4.3.
+
+  30 Mar 2006; Diego Pettenò <flameeyes@gentoo.org> python-2.4.2-r1.ebuild:
+  Add ~x86-fbsd keyword.
+
+  16 Feb 2006; Marien Zwart <marienz@gentoo.org>
+  -files/python-2.2.3-db4.patch,
+  -files/python-2.2.3-disable_modules_and_ssl.patch,
+  -files/python-2.2.3-fPIC.patch,
+  -files/python-2.2.3-gentoo_py_dontcompile.patch,
+  -files/python-2.2.3-xmlrpc.patch,
+  -files/python-2.3.2-disable_modules_and_ssl.patch,
+  -files/python-2.3.4-lib64.patch, -files/python-2.3.5-st_flags.patch,
+  -files/python-2.3-add_portage_search_path.patch,
+  -files/python-2.3-add_portage_search_path_take_2.patch,
+  -files/python-2.3-db4.2.patch,
+  -files/python-2.3-gentoo_py_dontcompile.patch,
+  -files/python-2.3-mimetypes_apache.patch, -files/python-2.3-pcre.patch,
+  -files/python-2.3-readline.patch, -files/python-2.4.1-bindir-libdir.patch,
+  -files/python-2.4.1-crosscompile.patch, -files/python-2.4.1-db4.patch,
+  -files/python-2.4.1-libdir.patch, -files/python-2.4.1-st_flags.patch,
+  -files/python-2.4.2-mmap+fd.patch, -files/python-2.4.2-no-threads.patch,
+  -files/python-2.4.2-readline.patch,
+  -files/python-2.4-add_portage_search_path.patch,
+  -files/python-2.4-disable_modules_and_ssl.patch,
+  -files/python-2.4-gentoo_py_dontcompile.patch,
+  -files/python-2.4-mimetypes_apache.patch, python-2.2.3-r6.ebuild,
+  python-2.3.5-r2.ebuild, python-2.4.2.ebuild, python-2.4.2-r1.ebuild:
+  Move patches from files dir to separate tarballs.
+
+  16 Feb 2006; Marien Zwart <marienz@gentoo.org> -files/python-config-2.2.1,
+  -files/python-2.2.1-r5-gentoo.diff, -files/python-config-2.2.2,
+  -files/python-2.2.2-tk-8.4.x.patch, -files/python-2.3-xmlrpc.patch,
+  -files/python-2.4-db4.2.patch, -files/python-2.4-lib64.patch,
+  -files/python-2.4.1-readline.patch, -files/python-2.4-libdir.patch,
+  -files/python-2.4-readline.patch, -files/python-2.4-xmlrpc.patch,
+  -python-2.3.4-r1.ebuild, -python-2.3.5.ebuild, -python-2.3.5-r1.ebuild,
+  -python-2.4-r3.ebuild, -python-2.4.1.ebuild, -python-2.4.1-r1.ebuild:
+  Remove old versions.
+
+  08 Feb 2006; Marien Zwart <marienz@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.4.2.ebuild, python-2.4.2-r1.ebuild:
+  Disable confcache (breaks .so loading).
+
+  02 Feb 2006; Bryan Østergaard <kloeri@gentoo.org
+  +files/python-2.4.2-mmap+fd.patch:
+  Add missing python-2.4.2-mmap+fd.patch.
+
+*python-2.4.2-r1 (02 Feb 2006)
+
+  02 Feb 2006; Bryan Østergaard <kloeri@gentoo.org
+  +files/depreorder-topsort.py, +files/python-updater-r1,
+  +python-2.4.2-r1.ebuild:
+  No more libstdc++.so linking, fix python-updater ordering (bug #95538) +
+  mmap (bug #113439) and fd leak (bug #118575) fixes.
+
+  13 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+  +files/python-2.4.2-no-threads.patch, python-2.4.2.ebuild:
+  Fix from upstream for building without threads.
+
+  24 Nov 2005; Markus Rothe <corsair@gentoo.org> python-2.4.2.ebuild:
+  Stable on ppc64
+
+  17 Nov 2005; Guy Martin <gmsoft@gentoo.org> python-2.4-r3.ebuild,
+  python-2.4.1.ebuild, python-2.4.1-r1.ebuild, python-2.4.2.ebuild:
+  Readded critical fix for HPPA.
+
+  21 Oct 2005; Aaron Walker <ka0ttic@gentoo.org> python-2.4.2.ebuild:
+  Stable on mips.
+
+  15 Oct 2005; MATSUU Takuto <matsuu@gentoo.org> python-2.4.2.ebuild:
+  Stable on sh.
+
+  15 Oct 2005; Michael Hanselmann <hansmi@gentoo.org> python-2.4.2.ebuild:
+  Stable on hppa, ppc.
+
+  14 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org> python-2.4.2.ebuild:
+  Stable on sparc
+
+  14 Oct 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.4.2.ebuild:
+  Stable on alpha.
+
+  13 Oct 2005; Luis Medinas <metalgod@gentoo.org> python-2.4.2.ebuild:
+  Marked Stable on amd64.
+
+  13 Oct 2005; Aron Griffis <agriffis@gentoo.org> python-2.4.2.ebuild:
+  Mark 2.4.2 stable on ia64
+
+  13 Oct 2005; Rob Cakebread <pythonhead@gentoo.org> python-2.4.2.ebuild:
+  Marked x86 stable per Mr_Bones_ - memory leak in posix.access()
+
+  10 Oct 2005; Gustavo Zacarias <gustavoz@gentoo.org>
+  python-2.4.1-r1.ebuild:
+  Stable on sparc
+
+  10 Oct 2005; Luis Medinas <metalgod@gentoo.org> python-2.4.1-r1.ebuild:
+  Marked Stable on amd64.
+
+  10 Oct 2005; Markus Rothe <corsair@gentoo.org> python-2.4.1-r1.ebuild:
+  Stable on ppc64
+
+  09 Oct 2005; Michael Hanselmann <hansmi@gentoo.org>
+  python-2.4.1-r1.ebuild:
+  Stable on hppa, ppc.
+
+  08 Oct 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.4.1-r1.ebuild:
+  Stable python-2.4 on alpha, ia64 and x86.
+
+  01 Oct 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5-r2.ebuild,
+  python-2.4.1-r1.ebuild, python-2.4.2.ebuild:
+  Disable additional test, fixing bug 82469, 94859, 96366 and 96488.
+
+*python-2.4.2 (28 Sep 2005)
+
+  28 Sep 2005; Bryan Østergaard <kloeri@gentoo.org>
+  +files/python-2.4.2-readline.patch, +python-2.4.2.ebuild:
+  Bump version to 2.4.2.
+
+  14 Sep 2005; Aaron Walker <ka0ttic@gentoo.org> python-2.3.5-r2.ebuild:
+  2.3.5-r2 stable on mips for security bug #104009.
+
+  11 Sep 2005; Simon Stelling <blubb@gentoo.org> python-2.3.5-r2.ebuild:
+  stable on amd64 wrt bug 104009
+
+  10 Sep 2005; Michael Hanselmann <hansmi@gentoo.org>
+  python-2.3.5-r2.ebuild:
+  Stable on ppc and hppa.
+
+  10 Sep 2005; MATSUU Takuto <matsuu@gentoo.org> python-2.3.5-r2.ebuild:
+  Stable on sh.
+
+  09 Sep 2005; Josh Grebe <squash@gentoo.org> python-2.3.5-r2.ebuild:
+  Sparc stable bump for bug #104009
+
+  09 Sep 2005; Markus Rothe <corsair@gentoo.org> python-2.3.5-r2.ebuild:
+  Stable on ppc64
+
+  08 Sep 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5-r2.ebuild:
+  Stable on x86, alpha and ia64 - bug 104009.
+
+*python-2.3.5-r2 (08 Sep 2005)
+
+  08 Sep 2005; Bryan Østergaard <kloeri@gentoo.org>
+  +files/python-2.3-pcre.patch, +python-2.3.5-r2.ebuild:
+  Version bump to fix pcre security vulnerability, bug 104009.
+
+  16 Aug 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.4-r1.ebuild,
+  python-2.3.5.ebuild:
+  Add fix for bug 88777 to arch versions.
+
+  15 Aug 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5-r1.ebuild,
+  python-2.4.1-r1.ebuild:
+  Fix bug 88777 in ~arch versions.
+
+  11 Aug 2005; Mike Frysinger <vapier@gentoo.org>
+  +files/python-2.4.1-bindir-libdir.patch,
+  +files/python-2.4.1-crosscompile.patch, python-2.4.1-r1.ebuild:
+  Add support for cross-compiling.  Grabbed patches from uClibc/OpenEmbedded.
+
+  19 Jul 2005; Bryan Østergaard <kloeri@gentoo.org>
+  +files/python-2.4.1-st_flags.patch, python-2.4.1-r1.ebuild:
+  Update st_flags patch, bug 94637.
+
+  03 Jul 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5.ebuild:
+  Stable on alpha.
+
+  27 Jun 2005; Markus Rothe <corsair@gentoo.org> python-2.3.5.ebuild:
+  Stable on ppc64
+
+  18 Jun 2005; Markus Rothe <corsair@gentoo.org> python-2.4.1-r1.ebuild:
+  added ~ppc64
+
+*python-2.4.1-r1 (16 Jun 2005)
+*python-2.3.5-r1 (16 Jun 2005)
+
+  16 Jun 2005; Bryan Østergaard <kloeri@gentoo.org>
+  +files/python-2.3.5-st_flags.patch, +python-2.3.5-r1.ebuild,
+  +python-2.4.1-r1.ebuild:
+  Add st_flags patch, requested in bug 94637.
+
+  09 Jun 2005; Herbie Hopkins <herbs@gentoo.org>
+  files/python-2.4.1-libdir.patch, python-2.4.1.ebuild:
+  Fix libdir patch to work with amd64s no-symlink profile, removed
+  append-flags -fPIC as this seems to no longer be necessary.
+
+  29 May 2005; <solar@gentoo.org> python-2.3.4-r1.ebuild, python-2.3.5.ebuild,
+  python-2.4-r3.ebuild, python-2.4.1.ebuild:
+  echangelog - update package to use libc expanded variable elibc_uclibc vs
+  uclibc so USE=-* works
+
+  29 May 2005; Alastair Tse <liquidx@gentoo.org>
+  files/python-2.4.1-libdir.patch:
+  remove zlib from libpython dependency (#90545)
+
+  28 May 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.1.3-r1.ebuild,
+  python-2.2.3-r6.ebuild, python-2.3.4-r1.ebuild, python-2.3.5.ebuild,
+  python-2.4-r3.ebuild, python-2.4.1.ebuild:
+  Add missing inherit versionator.
+
+  21 May 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.1.3-r1.ebuild:
+  Fix PROVIDE according to bug 93028.
+
+  18 May 2005; Markus Rothe <corsair@gentoo.org> python-2.3.5.ebuild:
+  Added ~ppc64 to KEYWORDS
+
+  11 May 2005; Marcus D. Hanwell <cryos@gentoo.org> python-2.3.5.ebuild:
+  Stable on amd64.
+
+  07 May 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5.ebuild,
+  python-2.4.1.ebuild:
+  Fix FEATURES=test using slightly modified patch by Rob Cakebread, bug 67970.
+
+  01 May 2005; Stephen Bennett <spb@gentoo.org> python-2.3.4-r1.ebuild,
+  python-2.3.5.ebuild, python-2.4.1.ebuild:
+  Added compile fix for when $LIBC is set.
+
+  30 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> python-2.3.5.ebuild:
+  Stable on ppc.
+
+  28 Apr 2005; Gustavo Zacarias <gustavoz@gentoo.org> python-2.3.5.ebuild:
+  Stable on sparc
+
+*python-2.4.1 (27 Apr 2005)
+
+  27 Apr 2005; Alastair Tse <liquidx@gentoo.org>
+  +files/python-2.4.1-db4.patch, +files/python-2.4.1-libdir.patch,
+  +files/python-2.4.1-readline.patch, files/python-2.4-readline.patch,
+  -python-2.3.3-r2.ebuild, python-2.3.5.ebuild, -python-2.4-r1.ebuild,
+  -python-2.4-r2.ebuild, +python-2.4.1.ebuild:
+  version bump for 2.4.1, clean up readling, db4 and libdir patch for 2.4.1.
+
+  20 Apr 2005; Alastair Tse <liquidx@gentoo.org> python-2.3.5.ebuild,
+  python-2.4-r3.ebuild:
+  reverting changes to deps and adding note about why they are arranged in
+  that way (to remind myself never to touch them again :)
+
+  20 Apr 2005; Alastair Tse <liquidx@gentoo.org>
+  +files/python-2.3-readline.patch, +files/python-2.4-readline.patch,
+  python-2.3.5.ebuild, python-2.4-r3.ebuild:
+  fixing readline support to not require termcap (#79013). fixed DEPEND
+  and RDEPEND order (python-fchksum isn't a DEPEND only)
+
+  08 Apr 2005; Markus Rothe <corsair@gentoo.org> python-2.3.4-r1.ebuild:
+  Stable on ppc64
+
+*python-2.4-r3 (19 Mar 2005)
+
+  19 Mar 2005; Rob Cakebread <pythonhead@gentoo.org>
+  files/python-2.4-libdir.patch, +python-2.4-r3.ebuild:
+  Removed multiple dirs in sys path. bug# 83109
+
+  15 Mar 2005; Alastair Tse <liquidx@gentoo.org> python-2.3.5.ebuild:
+  more multilib fixes (#76791)
+
+  01 Mar 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.5.ebuild,
+  python-2.4-r1.ebuild:
+  Fix conditional c++ support for remaining versions.
+
+  27 Feb 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.3.3-r2.ebuild,
+  python-2.3.4-r1.ebuild, python-2.4-r2.ebuild:
+  Disable c++ conditionally.
+
+*python-2.3.5 (17 Feb 2005)
+
+  17 Feb 2005; Rob Cakebread <pythonhead@gentoo.org> +python-2.3.5.ebuild:
+  Version bump.
+
+  09 Feb 2005; Luca Barbato <lu_zero@gentoo.org> python-2.3.4-r1.ebuild:
+  Marked ppc
+
+*python-2.4-r2 (07 Feb 2005)
+
+  07 Feb 2005; Jeremy Huddleston <eradicator@gentoo.org>
+  +files/python-2.4-libdir.patch, files/python-updater, +python-2.4-r2.ebuild:
+  Multilib releated cleanup.
+
+*python-2.2.3-r6 (06 Feb 2005)
+
+  06 Feb 2005; Rob Cakebread <pythonhead@gentoo.org>
+  +files/python-2.2.3-xmlrpc.patch, +files/python-2.3-xmlrpc.patch,
+  +files/python-2.4-xmlrpc.patch, -python-2.2.3-r5.ebuild,
+  +python-2.2.3-r6.ebuild, -python-2.3.3-r1.ebuild, +python-2.3.3-r2.ebuild,
+  -python-2.3.3.ebuild, +python-2.3.4-r1.ebuild, -python-2.3.4.ebuild,
+  +python-2.4-r1.ebuild, -python-2.4.ebuild:
+  Patches and version bumps for security bug# 80592 Python bug# PSF-2005-001 xmlrpc
+  vulnerability. Removed obsolete versions.
+
+  06 Jan 2005; Bryan Østergaard <kloeri@gentoo.org> python-2.4.ebuild:
+  Fix broken Manifest.
+
+  05 Jan 2005; Rob Cakebread <pythonhead@gentoo.org> python-2.4.ebuild:
+  Only apply lib64 patch on CONF_LIBDIR == lib64
+
+  04 Jan 2005; Rob Cakebread <pythonhead@gentoo.org>
+  +files/python-2.4-lib64.patch, python-2.4.ebuild:
+  Added lib64 patch
+
+*python-2.4 (04 Jan 2005)
+
+  04 Jan 2005; Rob Cakebread <pythonhead@gentoo.org>
+  +files/python-2.4-add_portage_search_path.patch,
+  +files/python-2.4-db4.2.patch,
+  +files/python-2.4-disable_modules_and_ssl.patch,
+  +files/python-2.4-gentoo_py_dontcompile.patch,
+  +files/python-2.4-mimetypes_apache.patch, files/python-updater,
+  +python-2.4.ebuild:
+  Version bump. bug# 68775
+
+  29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+  Change encoding to UTF-8 for GLEP 31 compliance
+
+  06 Nov 2004; Joshua Kinard <kumba@gentoo.org> python-2.3.4.ebuild:
+  Marked stable on mips.
+
+  29 Oct 2004; Alastair Tse <liquidx@gentoo.org> files/python-updater:
+  improvements with tmp log creation with python-updater (#68843)
+
+  19 Oct 2004; Guy Martin <gmsoft@gentoo.org> python-2.3.4.ebuild:
+  Stable on hppa.
+
+  19 Oct 2004; Dylan Carlson <absinthe@gentoo.org> python-2.3.4.ebuild:
+  Stable on amd64.
+
+  19 Oct 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.4.ebuild:
+  fix problem with tk-inter and USE flags handing (grumble)
+
+  18 Oct 2004; Mike Frysinger <vapier@gentoo.org> python-2.3.3-r1.ebuild,
+  python-2.3.4.ebuild:
+  Forward part from 2.3.3-r1 the removal of directories in /usr/lib/python
+  based upon USE flags.
+
+  17 Oct 2004; Jason Wever <weeve@gentoo.org> python-2.3.4.ebuild:
+  Stable on sparc.
+
+  24 Sep 2004; Alastair Tse <liquidx@gentoo.org> -python-2.2.2.ebuild,
+  python-2.3.3-r1.ebuild, python-2.3.3.ebuild, python-2.3.4.ebuild,
+  -python-2.3.4_rc1.ebuild:
+  adding workaround for -fstack-protector-all (#50309)
+
+  06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> python-2.3.3-r1.ebuild,
+  python-2.3.3.ebuild, python-2.3.4.ebuild, python-2.3.4_rc1.ebuild:
+  Switch to use epause and ebeep, bug #62950
+
+  31 Aug 2004; Guy Martin <gmsoft@gentoo.org> python-2.3.4.ebuild:
+  Removed useless -fPIC for hppa.
+
+  18 Aug 2004; Aron Griffis <agriffis@gentoo.org> python-2.3.4.ebuild:
+  stable on alpha
+
+  14 Aug 2004; Travis Tilley <lv@gentoo.org> +files/python-2.3.4-lib64.patch,
+  python-2.3.3-r1.ebuild, python-2.3.4.ebuild:
+  added logic for installing to /usr/lib64, triggered by the CONF_LIBDIR
+  variable. proper CONF_LIBDIR support will require portage 2.0.51_pre18, soon
+  to be released.
+
+  20 Jul 2004; Lars Weiler <pylon@gentoo.org> python-2.1.3-r1.ebuild:
+  Made python-2.1 stable on ppc as there are still some ebuilds which require
+  this version.
+
+  03 Jul 2004; Bryan Østergaard <kloeri@gentoo.org> python-2.3.3-r1.ebuild:
+  Stable on alpha.
+
+  03 Jul 2004; Grant Goodyear <g2boojum@gentoo.org> python-2.3.4.ebuild:
+  x86-obsd minor fix
+
+  01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+  python-2.1.3-r1.ebuild, python-2.2.2.ebuild, python-2.2.3-r5.ebuild,
+  python-2.3.3-r1.ebuild, python-2.3.3.ebuild, python-2.3.4.ebuild,
+  python-2.3.4_rc1.ebuild:
+  virtual/glibc -> virtual/libc
+
+  25 Jun 2004; Aron Griffis <agriffis@gentoo.org> python-2.2.2.ebuild,
+  python-2.2.3-r5.ebuild, python-2.3.3-r1.ebuild, python-2.3.3.ebuild,
+  python-2.3.4.ebuild, python-2.3.4_rc1.ebuild:
+  QA - fix use invocation and a bug in the 2.3.4 ebuilds:
+  [ -z "use X" -o -z "use tcltk" ] doesn't do what you meant it to do
+
+  20 Jun 2004; Gustavo Zacarias <gustavoz@gentoo.org> python-2.3.3-r1.ebuild:
+  Sparc happy stable
+
+  15 Jun 2004; <solar@gentoo.org> python-2.3.3-r1.ebuild:
+  USE= cleanups and added uclibc
+
+  12 Jun 2004; Tom Gall <tgall@gentoo.org> python-2.3.3-r1.ebuild:
+  stable on ppc64, bug #53575
+
+  06 Jun 2004; Aron Griffis <agriffis@gentoo.org> python-2.2.3-r5.ebuild,
+  python-2.3.3-r1.ebuild, python-2.3.4.ebuild, python-2.3.4_rc1.ebuild:
+  Fix use invocation
+
+*python-2.3.4 (04 Jun 2004)
+
+  04 Jun 2004; Bryan Østergaard <kloeri@gentoo.org> +python-2.3.4.ebuild:
+  Bump version.
+
+  02 Jun 2004; Travis Tilley <lv@gentoo.org> python-2.3.3-r1.ebuild:
+  stable on amd64
+
+  30 May 2004; Guy Martin <gmsoft@gentoo.org> python-2.3.3-r1.ebuild:
+  Marked stable on hppa.
+
+  22 May 2004; Guy Martin <gmsoft@gentoo.org> python-2.3.3-r1.ebuild,
+  python-2.3.3.ebuild, python-2.3.4_rc1.ebuild:
+  Fix os.utime() on hppa. utimes it not supported but unfortunately reported as
+  working.
+
+*python-2.3.4_rc1 (15 May 2004)
+
+  15 May 2004; Joshua Kinard <kumba@gentoo.org> python-2.3.3-r1.ebuild,
+  python-2.3.4_rc1.ebuild:
+  Marking 2.3.3 stable on mips (someone yanked the ~mips keyword at some
+  point...), and 2.3.4 unstable.
+
+  27 Apr 2004; Michael McCabe <randy@gentoo.org> python-2.3.3-r1.ebuild:
+  Marked stable on s390
+
+*python-2.3.3-r1 (12 Apr 2004)
+
+  12 Apr 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3-r1.ebuild,
+  files/python-2.3-add_portage_search_path_take_2.patch:
+  add workaround for python-2.2 to python-2.3 upgrade possibly breaking older
+  portage versions. make /usr/lib/portage/pym appear before
+  /usr/lib/python*/site-packages in sys.path (not really critical, but better be
+  safe than sorry). also removed c++ support to reduce gcc/glibc upgrade pain
+
+  11 Mar 2004; Alastair Tse <liquidx@gentoo.org> python-2.2.1-r5.ebuild:
+  removing 2.2.1 from tree for security reasons (#44230)
+
+  09 Mar 2004; <agriffis@gentoo.org> python-2.3.3.ebuild:
+  stable on alpha and ia64
+
+  05 Mar 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild:
+  added X useflag for greater tcltk seperation. now needs both X and tcltk USE
+  flags to enable tkinter support
+
+  03 Mar 2004; David Holm <dholm@gentoo.org> python-2.1.3-r1.ebuild:
+  Added to ~ppc.
+
+  27 Feb 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild:
+  completely removed pkg_setup(), added note at the top of the ebuild where you
+  can't miss it.
+
+  27 Feb 2004; Jason Stubbs <jstubbs@gentoo.org> python-2.3.3.ebuild:
+  Removing portage version check again as it's preventing new installations.
+  Bug #43036
+
+  25 Feb 2004; Bryan Østergaard,,, <kloeri@gentoo.org> python-2.3.3.ebuild:
+  Reinstating portage version check as people keep upgrading python without
+  upgrading portage.
+
+  17 Feb 2004; Aron Griffis <agriffis@gentoo.org> python-2.1.3-r1.ebuild:
+  Fix duplicate KEYWORDS settings and mark stable on alpha and ia64 for the sake
+  of dev-python/PyXML-py21
+
+  17 Feb 2004; Aron Griffis <agriffis@gentoo.org> python-2.1.3-r1.ebuild:
+  add ~alpha for the sake of dev-python/Imaging-py21
+
+  10 Feb 2004; Bartosch Pixa <darkspecter@gentoo.org> python-2.3.3.ebuild:
+  set ppc in keywords
+
+  10 Feb 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild,
+  files/python-2.3-db4.2.patch:
+  add fix to make python-2.3.3 db-4.2 (gentoo flavour) aware
+
+  06 Feb 2004; <gustavoz@gentoo.org> python-2.3.3.ebuild:
+  Stable on sparc
+
+  03 Feb 2004; Guy Martin <gmsoft@gentoo.org> python-2.3.3.ebuild :
+  Marked stable on hppa.
+
+  02 Feb 2004; Alastair Tse <liquidx@gentoo.org> files/depreorder.py:
+  update python-updater thanks to a well spotted mistake by Chris Bainbridge
+  <chrb@dcs.ed.ac.uk> (#40198)
+
+  27 Jan 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild:
+  disabling pkg_setup again after testing with stage2
+
+  26 Jan 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild:
+  re-instating pkg_setup() warning/abort message. added apache mime.types to
+  mime type search list. modified to use tar.bz2 (saves 1MB of downloads)
+
+  24 Jan 2004; Guy Martin <gmsoft@gentoo.org> python-2.3.3.ebuild:
+  Added ~hppa to KEYWORDS.
+
+  24 Jan 2004; <gustavoz@gentoo.org> python-2.3.3.ebuild:
+  keyworded ~sparc
+
+  24 Jan 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild:
+  add missing doc IUSE (#39232)
+
+  22 Jan 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild,
+  files/depreorder.py:
+  updated python-updater for portage-2.0.50, installed python-updater in
+  /usr/sbin for convienence
+
+  19 Jan 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r2.ebuild,
+  python-2.3.3.ebuild:
+  disable portage check because stable portage already is compatible with
+  python-2.3
+
+  18 Jan 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.3.ebuild:
+  make ROOT var more robust during postinst()
+
+  12 Jan 2004; Luca Barbato <lu_zero@gentoo.org> python-2.2.3-r5.ebuild:
+  Marked ppc
+
+  06 Jan 2004; Aron Griffis <agriffis@gentoo.org> python-2.2.3-r5.ebuild:
+  Stable on ia64 to enable fix for bug 36954; portage-2.0.49-r20 depends on
+  this revision.
+
+  03 Jan 2004; Jason Wever <weeve@gentoo.org> python-2.2.3-r5.ebuild:
+  Marked stable on sparc as portage-2.0.49-r20 really depends on this version of
+  python rather than what the portage ebuild says. Fixes bug #36954 on sparc.
+
+*python-2.3.3 (03 Jan 2004)
+
+  03 Jan 2004; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r2.ebuild,
+  python-2.3.3.ebuild, files/python-2.3.2-disable_modules_and_ssl.patch:
+  version bump to 2.3.3, re-add python disable_modules_and_ssl patch and changed
+  ebuild to build 'socket' module under USE=build
+
+  28 Dec 2003; Joshua Kinard <kumba@gentoo.org> python-2.2.3-r5.ebuild:
+  Move to mips stable (~mips -> mips)
+
+  24 Dec 2003; Sven Blumenstein <bazik@gentoo.org> python-2.3.2-r2.ebuild,
+  files/python-2.3.2-disable_modules_and_ssl.patch:
+  Removed python-2.3.2-disable_modules_and_ssl.patch as
+  it broke python and caused 'ImportError: No module named _socket'.
+  More info: http://article.gmane.org/gmane.linux.gentoo.devel/14621
+
+  14 Dec 2003; Guy Martin <gmsoft@gentoo.org> python-2.2.3-r5.ebuild:
+  Marked stable on hppa.
+
+  13 Dec 2003; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r2.ebuild:
+  clarified warning to prevent more bug reports
+
+  13 Dec 2003; Luca Barbato <lu_zero@gentoo.org> python-2.3.2-r2.ebuild:
+  Marked ~ppc
+
+  08 Dec 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r5.ebuild,
+  python-2.3.2-r2.ebuild:
+  fix python .pyc .pyo cleaning code
+
+  03 Dec 2003; Aron Griffis <agriffis@gentoo.org> python-2.2.3-r5.ebuild:
+  Stable on alpha
+
+  27 Nov 2003; Daniel Ahlberg <aliz@gentoo.org> python-2.2.3-r5.ebuild:
+  Make -fPIC compilation available for all platforms and not just amd64.
+
+  25 Nov 2003; Brad House <brad_mssw@gentoo.org> python-2.2.3-r5.ebuild:
+  mark stable on amd64
+
+  23 Nov 2003; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r2.ebuild:
+  add pkg_setup() to 2.3 as a temporary measure to stop people messing up their
+  own system. Also added a ucs2 local useflag just in case someone complains
+  loudly and knows what they're doing
+
+*python-2.3.2-r2 (22 Nov 2003)
+
+  22 Nov 2003; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r2.ebuild,
+  files/python-updater:
+  ucs4 is now default. if you previously had python-2.3 merged, you'll need to
+  update your packages again. (sorry, that is the price for running p.mask'ed
+  versions). to update your python packages if you had python-2.3 installed,
+  run :
+
+  /usr/portage/dev-lang/python/files/python-updater -o 2.3
+
+  if you are upgrading from python-2.2, then you will need to run:
+
+  /usr/portage/dev-lang/python/files/python-updater
+
+  python-updater script also modified to have more robust command-line
+  parsing. hopefully this will be the last revision till we can go ~x86.
+
+  13 Nov 2003; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r1.ebuild:
+  fix python-config install for python-2.3
+
+  12 Nov 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.2-r1.ebuild,
+  python-2.2.3-r2.ebuild, python-2.2.3-r3.ebuild, python-2.2.3-r4.ebuild,
+  python-2.3.2-r1.ebuild, python-2.3.2.ebuild, files/python-updater:
+  cleanup and add warning on python-updated or PORTDIR is not set
+
+  12 Nov 2003; Daniel Ahlberg <aliz@gentoo.org> python-2.2.3-r5.ebuild :
+  Add a patch that adds CFLAGSFORSHARED variable to some extra modules defined in the Makefile.
+  This variable could hold -fPIC so that the compiled libraries will work on amd64 (and maybe others)
+  without using append-flags -fPIC.
+
+  03 Nov 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r5.ebuild,
+  python-2.3.2-r1.ebuild:
+  added ncurses and ssl to IUSE
+
+  03 Nov 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r5.ebuild:
+  export environment in src_install()
+
+  01 Nov 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r5.ebuild,
+  python-2.3.2-r1.ebuild, files/python-2.2.3-disable_modules_and_ssl.patch,
+  files/python-2.3.2-disable_modules_and_ssl.patch:
+  reordered deps to allow minimal python build for USE='build'. makes python
+  respect useflags explicitly even if the dependency exists. added support to
+  disable SSL. tweaked python_mod_optimize.
+
+*python-2.2.3-r5 (27 Oct 2003)
+
+  27 Oct 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r5.ebuild,
+  files/python-2.2.3-db4.patch:
+  rev bump. fixes to idle.py and bsddb with db-4.1 for 2.2.3
+
+  26 Oct 2003; Rob Cakebread <pythonhead@gentoo.org> python-2.2.3-r4.ebuild:
+  Fixed symlink to idle.py
+
+*python-2.2.3-r4 (22 Oct 2003)
+
+  22 Oct 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r4.ebuild,
+  files/python-2.2.3-gentoo_py_dontcompile.patch:
+  Fixed PYTHON_DONTCOMPILE patch for 2.2.3 thanks to TGL
+  <degrenier@easyconnect.fr> (#31730)
+
+*python-2.2.3-r3 (17 Oct 2003)
+
+  17 Oct 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r3.ebuild,
+  files/python-2.2.3-db4.patch,
+  files/python-2.2.3-gentoo_py_dontcompile.patch, files/python-updater:
+  Add support for db-4.1, fixes for ewarn hanging for python-updater
+
+  14 Oct 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r3.ebuild:
+  new 2.2.3 version that adds PYTHON_DONTCOMPILE support
+
+  10 Oct 2003; Alastair Tse <liquidx@gentoo.org> files/python-updater:
+  fix typo in python-updater
+
+  09 Oct 2003; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r1.ebuild,
+  files/depreorder.py, files/python-2.2.3-gentoo_py_dontcompile.patch,
+  files/python-updater:
+  improved byte-compiling, fixed out-of-order python-updater and added
+  sys-apps/portage to exclusions
+
+  09 Oct 2003; <tuxus@gentoo.org> python-2.2.3-r1.ebuild:
+  stable on mips
+
+*python-2.3.2-r1 (08 Oct 2003)
+
+  08 Oct 2003; Alastair Tse <liquidx@gentoo.org> python-2.3.2-r1.ebuild,
+  files/python-2.3-gentoo_py_dontcompile.patch:
+  add patch to stop automatic generation of .pyc and .pyo by setting
+  PYTHON_DONTCOMPILE in your environment. also moved to use the new python
+  eclass to automatically optimize and cleanup compiled modules.
+
+*python-2.3.2 (07 Oct 2003)
+
+  07 Oct 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r2.ebuild,
+  python-2.3.2.ebuild, files/python-2.2.3-db4.patch,
+  files/python-2.3-add_portage_search_path.patch, files/python-config-2.3,
+  files/python-updater:
+  it has been a long time coming, but finally there's a 2.3.x release in portage
+  along with a python-2.2.3 update that should fix some niggling issues and also
+  uses the new alternative class. 2.3.2 is still masked and should stay that way
+  until we can confirm the rebuilding script works.
+
+  03 Oct 2003; Alexander Gabert <pappy@gentoo.org> python-2.2.3-r1.ebuild:
+  filter-flags because of segfaulting with fstackprotector in CFLAGS
+
+  23 Sep 2003; Bartosch Pixa <darkspecter@gentoo.org> python-2.2.3-r1.ebuild:
+  set ppc in keywords
+
+  17 Sep 2003; Jon Portnoy <avenj@gentoo.org> python-2.2.3-r1.ebuild :
+  ia64 keywords.
+
+  16 Jul 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r1.ebuild,
+  python-2.2.3.ebuild:
+  marked 2.2.3 stable for x86
+
+  13 Jul 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.3-r1.ebuild:
+  add doc useflag to install python documentation. (#24318)
+
+*python-2.2.3-r1 (03 Jul 2003)
+
+  23 Jul 2003; Guy Martin <gmsoft@gentoo.org> python-2.2.3-r1.ebuild :
+  Marked stable on hppa.
+
+  03 Jul 2003; Alastair Tse <liquidx@gentoo.org> metadata.xml,
+  python-2.2.3-r1.ebuild:
+  added db4 support and enabled threads (pthread) support
+
+*python-2.2.3 (02 Jun 2003)
+
+  06 Jul 2003; Joshua Kinard <kumba@gentoo.org> python-2.2.3.ebuild:
+  Changed ~mips to mips in KEYWORDS
+
+  01 Jul 2003; Todd Sunderlin <todd@gentoo.org> python-2.2.3.ebuild:
+  set stable on sparc
+
+  02 Jun 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.2-r1.ebuild,
+  python-2.2.3.ebuild, files/python-config-2.2:
+  version bump to new bugfix release. fixed python-config location for unstable
+  versions
+
+*python-2.2.2-r1 (08 May 2003)
+
+  08 May 2003; Alastair Tse <liquidx@gentoo.org> python-2.2.2-r1.ebuild,
+  files/python-2.2.2-tk-8.4.x.patch:
+  backported patch to fix tk-8.4.x problems (#20318)
+
+  23 Feb 2003; Guy Martin <gmsoft@gentoo.org> python-2.2.2.ebuild :
+  Added -fPIC to CFLAGS on hppa. It's needed by apps linking to some python libs.
+
+  21 Feb 2003; Zach Welch <zwelch@gentoo.org> python-2.2.2.ebuild :
+  Added arm to keywords.
+
+  07 Feb 2003; Guy Martin <gmsoft@gentoo.org> python-2.2.2.ebuild :
+  Added hppa to keywords.
+
+  06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+  29 Nov 2002; Dan Armak <danarmak@gentoo.org> ChangeLog  :
+
+  Added missing python-config for 2.2.2.
+
+*python-2.2.2 (20 Oct 2002)
+
+  07 Jan 2003; Jan Seidel <tuxus@gentoo.org> python-2.2.2.ebuild :
+  Added mips to keywords
+
+  20 Oct 2002; Jon Nelson <jnelson@gentoo.org> :
+  2.2.2 is released
+
+*python-2.2.1-r5 (03 Oct 2002)
+
+  15 Oct 2002; Martin Schlemmer <azarah@gentoo.org> :
+  Fix the sed on /usr/lib/python<ver>/config/Makefile to change
+  OPT to 'OPT = -DNDEBUG', and not 'OPT = -NDEBUG' which caused
+  gcc warnings.
+
+  03 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> :
+  Security update.
+
+*python-2.2.1-r4 (7 Sep 2002)
+  7 Sep 2002; Nicholas Jones <carpaski@gentoo.org> python-2.2.1-r4.ebuild
+  Fix for bug #7641 -- Fixes the OPT flags in Makefile so that gcc
+  isn't confused by conflicting build types of i386 and user set.
+
+*python-2.2.1-r3 (2 Sep 2002)
+  2 Sep 2002; Jon Nelson <jnelson@gentoo.org> python-2.2.1-r3.ebuild
+  Filter -malign-double from flags
+
+*python-2.1.3-r1 (2 Jul 2002)
+
+  20 Jul 2002; Doug Goldstein <cardoe@gentoo.org> python-2.1.3-r1.ebuild
+  Added missing KEYWORDS
+
+  2 Jul 2002; Jon Nelson <jnelson@gentoo.org> python-2.1.3-r1.ebuild:
+  Fix Makefile.pre.in install (the one we want is located in Misc)
+
+*python-2.1.3 (1 Jul 2002)
+
+  20 Jul 2002; Doug Goldstein <cardoe@gentoo.org> python-2.1.3.ebuild
+  Added missing KEYWORDS
+
+  1 Jul 2002; Jon Nelson <jnelson@gentoo.org>: python-2.1.3.ebuild
+  This is a python 2.1.3 ebuild that does *not* conflict with
+  python 2.2.*
+  Note that 99.9% of the people out there won't use it anyway,
+  because 2.2 will always be selected as most recent. ;-)
+
+*python-2.2.1-r2 (1 Jul 2002)
+
+  20 Jul 2002; Doug Goldstein <cardoe@gentoo.org>: python-2.2.1-r2.ebuild
+  Added missing KEYWORDS
+
+  30 Jun 2002; Jon Nelson <jnelson@gentoo.org>: python-2.2.1-r2.ebuild
+  Add "-lm" to the python-config script. Closes bug #4217.
+  2.2.1-r2 has a 100% identical ebuild file to 2.2.1-r1, just the
+  python-config file has changed.
+
+*python-2.2.1-r1 (29 May 2002)
+
+  20 Jul 2002; Doug Goldstein <cardoe@gentoo.org>: python-2.2.1-r1.ebuild
+  Added missing KEYWORDS
+
+  29 May 2002; Jon Nelson <jnelson@gentoo.org>: python-2.2.1-r1.ebuild
+  Add expat to build depends (except during bootstrap), use econf
+  and emake, and don't mess with Modules/Setup.local because modules
+  are build as shared on Linux as default.
+
+*python-2.2.1 (2 May 2002)
+
+  20 Jul 2002; Doug Goldstein <cardoe@gentoo.org>: python-2.2.1.ebuild
+  Added missing KEYWORDS
+
+  2 May 2002; Jon Nelson <jnelson@gentoo.org>: python-2.2.1.ebuild
+  Update to 2.2.1, and completely re-vamp build procedure
+  This should solve several build issues.
+
+*python-2.2-r7 (29 Apr 2002)
+
+  29 Apr 2002; Daniel Robbins <drobbins@gentoo.org>: New rev to fix bug #2199;
+  python-config should now work properly.
+
+*python-2.2-r6 (24 Apr 2002)
+
+  24 Apr 2002; Jon Nelson <jnelson@gentoo.org> python-2.2-r6.ebuild : Make
+  python build with shared modules.  Depends on python-fchksum, as fchksum *no
+  longer built in*
+
+*python-2.2-r5 (8 Apr 2002)
+
+  8 Apr 2002; Jared H. Hudson <jhhudso@gentoo.org> python-2.2-r5.ebuild :
+
+  Added include flag for compilation of tcltk with python to compile
+  correctly.
+
+  --------
+
+  06 Apr 2002; Daniel Robbins <drobbins@gentoo.org> : the 2.2-r4 ebuild now
+  disables C++ support if we are creating a new build image (since we have no
+  C++ in that case).
+
+  30 Mar 2002; Daniel Robbins <drobbins@gentoo.org> : changed PROVIDE from
+  virtual/python-2.2 to virtual/python.  No rev bump.
+
+*python-2.2-r4 (1 Feb 2002)
+
+  1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+  Added initial ChangeLog which should be updated whenever the package is
+  updated in any way. This changelog is targetted to users. This means that the
+  comments should well explained and written in clean English. The details about
+  writing correct changelogs are explained in the skel.ChangeLog file which you
+  can find in the root directory of the portage repository.

diff --git a/dev-lang/python/files/CVE-2013-4238_py27.patch b/dev-lang/python/files/CVE-2013-4238_py27.patch
new file mode 100644
index 0000000..e215589
--- /dev/null
+++ b/dev-lang/python/files/CVE-2013-4238_py27.patch
@@ -0,0 +1,247 @@
+diff -r 9ddc63c039ba Lib/test/nullbytecert.pem
+--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
++++ b/Lib/test/nullbytecert.pem	Sun Aug 11 18:13:17 2013 +0200
+@@ -0,0 +1,90 @@
++Certificate:
++    Data:
++        Version: 3 (0x2)
++        Serial Number: 0 (0x0)
++    Signature Algorithm: sha1WithRSAEncryption
++        Issuer: C=US, ST=Oregon, L=Beaverton, O=Python Software Foundation, OU=Python Core Development, CN=null.python.org\x00example.org/emailAddress=python-dev@python.org
++        Validity
++            Not Before: Aug  7 13:11:52 2013 GMT
++            Not After : Aug  7 13:12:52 2013 GMT
++        Subject: C=US, ST=Oregon, L=Beaverton, O=Python Software Foundation, OU=Python Core Development, CN=null.python.org\x00example.org/emailAddress=python-dev@python.org
++        Subject Public Key Info:
++            Public Key Algorithm: rsaEncryption
++                Public-Key: (2048 bit)
++                Modulus:
++                    00:b5:ea:ed:c9:fb:46:7d:6f:3b:76:80:dd:3a:f3:
++                    03:94:0b:a7:a6:db:ec:1d:df:ff:23:74:08:9d:97:
++                    16:3f:a3:a4:7b:3e:1b:0e:96:59:25:03:a7:26:e2:
++                    88:a9:cf:79:cd:f7:04:56:b0:ab:79:32:6e:59:c1:
++                    32:30:54:eb:58:a8:cb:91:f0:42:a5:64:27:cb:d4:
++                    56:31:88:52:ad:cf:bd:7f:f0:06:64:1f:cc:27:b8:
++                    a3:8b:8c:f3:d8:29:1f:25:0b:f5:46:06:1b:ca:02:
++                    45:ad:7b:76:0a:9c:bf:bb:b9:ae:0d:16:ab:60:75:
++                    ae:06:3e:9c:7c:31:dc:92:2f:29:1a:e0:4b:0c:91:
++                    90:6c:e9:37:c5:90:d7:2a:d7:97:15:a3:80:8f:5d:
++                    7b:49:8f:54:30:d4:97:2c:1c:5b:37:b5:ab:69:30:
++                    68:43:d3:33:78:4b:02:60:f5:3c:44:80:a1:8f:e7:
++                    f0:0f:d1:5e:87:9e:46:cf:62:fc:f9:bf:0c:65:12:
++                    f1:93:c8:35:79:3f:c8:ec:ec:47:f5:ef:be:44:d5:
++                    ae:82:1e:2d:9a:9f:98:5a:67:65:e1:74:70:7c:cb:
++                    d3:c2:ce:0e:45:49:27:dc:e3:2d:d4:fb:48:0e:2f:
++                    9e:77:b8:14:46:c0:c4:36:ca:02:ae:6a:91:8c:da:
++                    2f:85
++                Exponent: 65537 (0x10001)
++        X509v3 extensions:
++            X509v3 Basic Constraints: critical
++                CA:FALSE
++            X509v3 Subject Key Identifier:
++                88:5A:55:C0:52:FF:61:CD:52:A3:35:0F:EA:5A:9C:24:38:22:F7:5C
++            X509v3 Key Usage:
++                Digital Signature, Non Repudiation, Key Encipherment
++            X509v3 Subject Alternative Name:
++                *************************************************************
++                WARNING: The values for DNS, email and URI are WRONG. OpenSSL
++                         doesn't print the text after a NULL byte.
++                *************************************************************
++                DNS:altnull.python.org, email:null@python.org, URI:http://null.python.org, IP Address:192.0.2.1, IP Address:2001:DB8:0:0:0:0:0:1
++    Signature Algorithm: sha1WithRSAEncryption
++         ac:4f:45:ef:7d:49:a8:21:70:8e:88:59:3e:d4:36:42:70:f5:
++         a3:bd:8b:d7:a8:d0:58:f6:31:4a:b1:a4:a6:dd:6f:d9:e8:44:
++         3c:b6:0a:71:d6:7f:b1:08:61:9d:60:ce:75:cf:77:0c:d2:37:
++         86:02:8d:5e:5d:f9:0f:71:b4:16:a8:c1:3d:23:1c:f1:11:b3:
++         56:6e:ca:d0:8d:34:94:e6:87:2a:99:f2:ae:ae:cc:c2:e8:86:
++         de:08:a8:7f:c5:05:fa:6f:81:a7:82:e6:d0:53:9d:34:f4:ac:
++         3e:40:fe:89:57:7a:29:a4:91:7e:0b:c6:51:31:e5:10:2f:a4:
++         60:76:cd:95:51:1a:be:8b:a1:b0:fd:ad:52:bd:d7:1b:87:60:
++         d2:31:c7:17:c4:18:4f:2d:08:25:a3:a7:4f:b7:92:ca:e2:f5:
++         25:f1:54:75:81:9d:b3:3d:61:a2:f7:da:ed:e1:c6:6f:2c:60:
++         1f:d8:6f:c5:92:05:ab:c9:09:62:49:a9:14:ad:55:11:cc:d6:
++         4a:19:94:99:97:37:1d:81:5f:8b:cf:a3:a8:96:44:51:08:3d:
++         0b:05:65:12:eb:b6:70:80:88:48:72:4f:c6:c2:da:cf:cd:8e:
++         5b:ba:97:2f:60:b4:96:56:49:5e:3a:43:76:63:04:be:2a:f6:
++         c1:ca:a9:94
++-----BEGIN CERTIFICATE-----
++MIIE2DCCA8CgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBxTELMAkGA1UEBhMCVVMx
++DzANBgNVBAgMBk9yZWdvbjESMBAGA1UEBwwJQmVhdmVydG9uMSMwIQYDVQQKDBpQ
++eXRob24gU29mdHdhcmUgRm91bmRhdGlvbjEgMB4GA1UECwwXUHl0aG9uIENvcmUg
++RGV2ZWxvcG1lbnQxJDAiBgNVBAMMG251bGwucHl0aG9uLm9yZwBleGFtcGxlLm9y
++ZzEkMCIGCSqGSIb3DQEJARYVcHl0aG9uLWRldkBweXRob24ub3JnMB4XDTEzMDgw
++NzEzMTE1MloXDTEzMDgwNzEzMTI1MlowgcUxCzAJBgNVBAYTAlVTMQ8wDQYDVQQI
++DAZPcmVnb24xEjAQBgNVBAcMCUJlYXZlcnRvbjEjMCEGA1UECgwaUHl0aG9uIFNv
++ZnR3YXJlIEZvdW5kYXRpb24xIDAeBgNVBAsMF1B5dGhvbiBDb3JlIERldmVsb3Bt
++ZW50MSQwIgYDVQQDDBtudWxsLnB5dGhvbi5vcmcAZXhhbXBsZS5vcmcxJDAiBgkq
++hkiG9w0BCQEWFXB5dGhvbi1kZXZAcHl0aG9uLm9yZzCCASIwDQYJKoZIhvcNAQEB
++BQADggEPADCCAQoCggEBALXq7cn7Rn1vO3aA3TrzA5QLp6bb7B3f/yN0CJ2XFj+j
++pHs+Gw6WWSUDpybiiKnPec33BFawq3kyblnBMjBU61ioy5HwQqVkJ8vUVjGIUq3P
++vX/wBmQfzCe4o4uM89gpHyUL9UYGG8oCRa17dgqcv7u5rg0Wq2B1rgY+nHwx3JIv
++KRrgSwyRkGzpN8WQ1yrXlxWjgI9de0mPVDDUlywcWze1q2kwaEPTM3hLAmD1PESA
++oY/n8A/RXoeeRs9i/Pm/DGUS8ZPINXk/yOzsR/XvvkTVroIeLZqfmFpnZeF0cHzL
++08LODkVJJ9zjLdT7SA4vnne4FEbAxDbKAq5qkYzaL4UCAwEAAaOB0DCBzTAMBgNV
++HRMBAf8EAjAAMB0GA1UdDgQWBBSIWlXAUv9hzVKjNQ/qWpwkOCL3XDALBgNVHQ8E
++BAMCBeAwgZAGA1UdEQSBiDCBhYIeYWx0bnVsbC5weXRob24ub3JnAGV4YW1wbGUu
++Y29tgSBudWxsQHB5dGhvbi5vcmcAdXNlckBleGFtcGxlLm9yZ4YpaHR0cDovL251
++bGwucHl0aG9uLm9yZwBodHRwOi8vZXhhbXBsZS5vcmeHBMAAAgGHECABDbgAAAAA
++AAAAAAAAAAEwDQYJKoZIhvcNAQEFBQADggEBAKxPRe99SaghcI6IWT7UNkJw9aO9
++i9eo0Fj2MUqxpKbdb9noRDy2CnHWf7EIYZ1gznXPdwzSN4YCjV5d+Q9xtBaowT0j
++HPERs1ZuytCNNJTmhyqZ8q6uzMLoht4IqH/FBfpvgaeC5tBTnTT0rD5A/olXeimk
++kX4LxlEx5RAvpGB2zZVRGr6LobD9rVK91xuHYNIxxxfEGE8tCCWjp0+3ksri9SXx
++VHWBnbM9YaL32u3hxm8sYB/Yb8WSBavJCWJJqRStVRHM1koZlJmXNx2BX4vPo6iW
++RFEIPQsFZRLrtnCAiEhyT8bC2s/Njlu6ly9gtJZWSV46Q3ZjBL4q9sHKqZQ=
++-----END CERTIFICATE-----
+diff -r 9ddc63c039ba Lib/test/test_ssl.py
+--- a/Lib/test/test_ssl.py	Sun Aug 11 13:04:50 2013 +0300
++++ b/Lib/test/test_ssl.py	Sun Aug 11 18:13:17 2013 +0200
+@@ -25,6 +25,7 @@
+ HOST = test_support.HOST
+ CERTFILE = None
+ SVN_PYTHON_ORG_ROOT_CERT = None
++NULLBYTECERT = None
+ 
+ def handle_error(prefix):
+     exc_format = ' '.join(traceback.format_exception(*sys.exc_info()))
+@@ -123,6 +124,27 @@
+                           ('DNS', 'projects.forum.nokia.com'))
+                         )
+ 
++    def test_parse_cert_CVE_2013_4073(self):
++        p = ssl._ssl._test_decode_cert(NULLBYTECERT)
++        if test_support.verbose:
++            sys.stdout.write("\n" + pprint.pformat(p) + "\n")
++        subject = ((('countryName', 'US'),),
++                   (('stateOrProvinceName', 'Oregon'),),
++                   (('localityName', 'Beaverton'),),
++                   (('organizationName', 'Python Software Foundation'),),
++                   (('organizationalUnitName', 'Python Core Development'),),
++                   (('commonName', 'null.python.org\x00example.org'),),
++                   (('emailAddress', 'python-dev@python.org'),))
++        self.assertEqual(p['subject'], subject)
++        self.assertEqual(p['issuer'], subject)
++        self.assertEqual(p['subjectAltName'],
++                         (('DNS', 'altnull.python.org\x00example.com'),
++                         ('email', 'null@python.org\x00user@example.org'),
++                         ('URI', 'http://null.python.org\x00http://example.org'),
++                         ('IP Address', '192.0.2.1'),
++                         ('IP Address', '2001:DB8:0:0:0:0:0:1\n'))
++                        )
++
+     def test_DER_to_PEM(self):
+         with open(SVN_PYTHON_ORG_ROOT_CERT, 'r') as f:
+             pem = f.read()
+@@ -1360,7 +1382,7 @@
+ 
+ 
+ def test_main(verbose=False):
+-    global CERTFILE, SVN_PYTHON_ORG_ROOT_CERT, NOKIACERT
++    global CERTFILE, SVN_PYTHON_ORG_ROOT_CERT, NOKIACERT, NULLBYTECERT
+     CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir,
+                             "keycert.pem")
+     SVN_PYTHON_ORG_ROOT_CERT = os.path.join(
+@@ -1368,10 +1390,13 @@
+         "https_svn_python_org_root.pem")
+     NOKIACERT = os.path.join(os.path.dirname(__file__) or os.curdir,
+                              "nokia.pem")
++    NULLBYTECERT = os.path.join(os.path.dirname(__file__) or os.curdir,
++                                "nullbytecert.pem")
+ 
+     if (not os.path.exists(CERTFILE) or
+         not os.path.exists(SVN_PYTHON_ORG_ROOT_CERT) or
+-        not os.path.exists(NOKIACERT)):
++        not os.path.exists(NOKIACERT) or
++        not os.path.exists(NULLBYTECERT)):
+         raise test_support.TestFailed("Can't read certificate files!")
+ 
+     tests = [BasicTests, BasicSocketTests]
+diff -r 9ddc63c039ba Modules/_ssl.c
+--- a/Modules/_ssl.c	Sun Aug 11 13:04:50 2013 +0300
++++ b/Modules/_ssl.c	Sun Aug 11 18:13:17 2013 +0200
+@@ -741,8 +741,13 @@
+ 
+             /* get a rendering of each name in the set of names */
+ 
++            int gntype;
++            ASN1_STRING *as = NULL;
++
+             name = sk_GENERAL_NAME_value(names, j);
+-            if (name->type == GEN_DIRNAME) {
++            gntype = name-> type;
++            switch (gntype) {
++            case GEN_DIRNAME:
+ 
+                 /* we special-case DirName as a tuple of tuples of attributes */
+ 
+@@ -764,11 +769,61 @@
+                     goto fail;
+                 }
+                 PyTuple_SET_ITEM(t, 1, v);
++                break;
+ 
+-            } else {
++            case GEN_EMAIL:
++            case GEN_DNS:
++            case GEN_URI:
++                /* GENERAL_NAME_print() doesn't handle NUL bytes in ASN1_string
++                   correctly. */
++                t = PyTuple_New(2);
++                if (t == NULL)
++                    goto fail;
++                switch (gntype) {
++                case GEN_EMAIL:
++                    v = PyUnicode_FromString("email");
++                    as = name->d.rfc822Name;
++                    break;
++                case GEN_DNS:
++                    v = PyUnicode_FromString("DNS");
++                    as = name->d.dNSName;
++                    break;
++                case GEN_URI:
++                    v = PyUnicode_FromString("URI");
++                    as = name->d.uniformResourceIdentifier;
++                    break;
++                }
++                if (v == NULL) {
++                    Py_DECREF(t);
++                    goto fail;
++                }
++                PyTuple_SET_ITEM(t, 0, v);
++                v = PyString_FromStringAndSize((char *)ASN1_STRING_data(as),
++                                               ASN1_STRING_length(as));
++                if (v == NULL) {
++                    Py_DECREF(t);
++                    goto fail;
++                }
++                PyTuple_SET_ITEM(t, 1, v);
++                break;
+ 
++            default:
+                 /* for everything else, we use the OpenSSL print form */
+-
++                switch (gntype) {
++                    /* check for new general name type */
++                    case GEN_OTHERNAME:
++                    case GEN_X400:
++                    case GEN_EDIPARTY:
++                    case GEN_IPADD:
++                    case GEN_RID:
++                        break;
++                    default:
++                        if (PyErr_Warn(PyExc_RuntimeWarning,
++				       "Unknown general name type") == -1) {
++                            goto fail;
++                        }
++                        break;
++                }
+                 (void) BIO_reset(biobuf);
+                 GENERAL_NAME_print(biobuf, name);
+                 len = BIO_gets(biobuf, buf, sizeof(buf)-1);
+@@ -794,6 +849,7 @@
+                     goto fail;
+                 }
+                 PyTuple_SET_ITEM(t, 1, v);
++		break;
+             }
+ 
+             /* and add that rendering to the list */

diff --git a/dev-lang/python/files/CVE-2013-4238_py33.patch b/dev-lang/python/files/CVE-2013-4238_py33.patch
new file mode 100644
index 0000000..41db4d2
--- /dev/null
+++ b/dev-lang/python/files/CVE-2013-4238_py33.patch
@@ -0,0 +1,241 @@
+diff -r e0f86c3b3685 Lib/test/nullbytecert.pem
+--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
++++ b/Lib/test/nullbytecert.pem	Sun Aug 11 18:17:23 2013 +0200
+@@ -0,0 +1,90 @@
++Certificate:
++    Data:
++        Version: 3 (0x2)
++        Serial Number: 0 (0x0)
++    Signature Algorithm: sha1WithRSAEncryption
++        Issuer: C=US, ST=Oregon, L=Beaverton, O=Python Software Foundation, OU=Python Core Development, CN=null.python.org\x00example.org/emailAddress=python-dev@python.org
++        Validity
++            Not Before: Aug  7 13:11:52 2013 GMT
++            Not After : Aug  7 13:12:52 2013 GMT
++        Subject: C=US, ST=Oregon, L=Beaverton, O=Python Software Foundation, OU=Python Core Development, CN=null.python.org\x00example.org/emailAddress=python-dev@python.org
++        Subject Public Key Info:
++            Public Key Algorithm: rsaEncryption
++                Public-Key: (2048 bit)
++                Modulus:
++                    00:b5:ea:ed:c9:fb:46:7d:6f:3b:76:80:dd:3a:f3:
++                    03:94:0b:a7:a6:db:ec:1d:df:ff:23:74:08:9d:97:
++                    16:3f:a3:a4:7b:3e:1b:0e:96:59:25:03:a7:26:e2:
++                    88:a9:cf:79:cd:f7:04:56:b0:ab:79:32:6e:59:c1:
++                    32:30:54:eb:58:a8:cb:91:f0:42:a5:64:27:cb:d4:
++                    56:31:88:52:ad:cf:bd:7f:f0:06:64:1f:cc:27:b8:
++                    a3:8b:8c:f3:d8:29:1f:25:0b:f5:46:06:1b:ca:02:
++                    45:ad:7b:76:0a:9c:bf:bb:b9:ae:0d:16:ab:60:75:
++                    ae:06:3e:9c:7c:31:dc:92:2f:29:1a:e0:4b:0c:91:
++                    90:6c:e9:37:c5:90:d7:2a:d7:97:15:a3:80:8f:5d:
++                    7b:49:8f:54:30:d4:97:2c:1c:5b:37:b5:ab:69:30:
++                    68:43:d3:33:78:4b:02:60:f5:3c:44:80:a1:8f:e7:
++                    f0:0f:d1:5e:87:9e:46:cf:62:fc:f9:bf:0c:65:12:
++                    f1:93:c8:35:79:3f:c8:ec:ec:47:f5:ef:be:44:d5:
++                    ae:82:1e:2d:9a:9f:98:5a:67:65:e1:74:70:7c:cb:
++                    d3:c2:ce:0e:45:49:27:dc:e3:2d:d4:fb:48:0e:2f:
++                    9e:77:b8:14:46:c0:c4:36:ca:02:ae:6a:91:8c:da:
++                    2f:85
++                Exponent: 65537 (0x10001)
++        X509v3 extensions:
++            X509v3 Basic Constraints: critical
++                CA:FALSE
++            X509v3 Subject Key Identifier:
++                88:5A:55:C0:52:FF:61:CD:52:A3:35:0F:EA:5A:9C:24:38:22:F7:5C
++            X509v3 Key Usage:
++                Digital Signature, Non Repudiation, Key Encipherment
++            X509v3 Subject Alternative Name:
++                *************************************************************
++                WARNING: The values for DNS, email and URI are WRONG. OpenSSL
++                         doesn't print the text after a NULL byte.
++                *************************************************************
++                DNS:altnull.python.org, email:null@python.org, URI:http://null.python.org, IP Address:192.0.2.1, IP Address:2001:DB8:0:0:0:0:0:1
++    Signature Algorithm: sha1WithRSAEncryption
++         ac:4f:45:ef:7d:49:a8:21:70:8e:88:59:3e:d4:36:42:70:f5:
++         a3:bd:8b:d7:a8:d0:58:f6:31:4a:b1:a4:a6:dd:6f:d9:e8:44:
++         3c:b6:0a:71:d6:7f:b1:08:61:9d:60:ce:75:cf:77:0c:d2:37:
++         86:02:8d:5e:5d:f9:0f:71:b4:16:a8:c1:3d:23:1c:f1:11:b3:
++         56:6e:ca:d0:8d:34:94:e6:87:2a:99:f2:ae:ae:cc:c2:e8:86:
++         de:08:a8:7f:c5:05:fa:6f:81:a7:82:e6:d0:53:9d:34:f4:ac:
++         3e:40:fe:89:57:7a:29:a4:91:7e:0b:c6:51:31:e5:10:2f:a4:
++         60:76:cd:95:51:1a:be:8b:a1:b0:fd:ad:52:bd:d7:1b:87:60:
++         d2:31:c7:17:c4:18:4f:2d:08:25:a3:a7:4f:b7:92:ca:e2:f5:
++         25:f1:54:75:81:9d:b3:3d:61:a2:f7:da:ed:e1:c6:6f:2c:60:
++         1f:d8:6f:c5:92:05:ab:c9:09:62:49:a9:14:ad:55:11:cc:d6:
++         4a:19:94:99:97:37:1d:81:5f:8b:cf:a3:a8:96:44:51:08:3d:
++         0b:05:65:12:eb:b6:70:80:88:48:72:4f:c6:c2:da:cf:cd:8e:
++         5b:ba:97:2f:60:b4:96:56:49:5e:3a:43:76:63:04:be:2a:f6:
++         c1:ca:a9:94
++-----BEGIN CERTIFICATE-----
++MIIE2DCCA8CgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBxTELMAkGA1UEBhMCVVMx
++DzANBgNVBAgMBk9yZWdvbjESMBAGA1UEBwwJQmVhdmVydG9uMSMwIQYDVQQKDBpQ
++eXRob24gU29mdHdhcmUgRm91bmRhdGlvbjEgMB4GA1UECwwXUHl0aG9uIENvcmUg
++RGV2ZWxvcG1lbnQxJDAiBgNVBAMMG251bGwucHl0aG9uLm9yZwBleGFtcGxlLm9y
++ZzEkMCIGCSqGSIb3DQEJARYVcHl0aG9uLWRldkBweXRob24ub3JnMB4XDTEzMDgw
++NzEzMTE1MloXDTEzMDgwNzEzMTI1MlowgcUxCzAJBgNVBAYTAlVTMQ8wDQYDVQQI
++DAZPcmVnb24xEjAQBgNVBAcMCUJlYXZlcnRvbjEjMCEGA1UECgwaUHl0aG9uIFNv
++ZnR3YXJlIEZvdW5kYXRpb24xIDAeBgNVBAsMF1B5dGhvbiBDb3JlIERldmVsb3Bt
++ZW50MSQwIgYDVQQDDBtudWxsLnB5dGhvbi5vcmcAZXhhbXBsZS5vcmcxJDAiBgkq
++hkiG9w0BCQEWFXB5dGhvbi1kZXZAcHl0aG9uLm9yZzCCASIwDQYJKoZIhvcNAQEB
++BQADggEPADCCAQoCggEBALXq7cn7Rn1vO3aA3TrzA5QLp6bb7B3f/yN0CJ2XFj+j
++pHs+Gw6WWSUDpybiiKnPec33BFawq3kyblnBMjBU61ioy5HwQqVkJ8vUVjGIUq3P
++vX/wBmQfzCe4o4uM89gpHyUL9UYGG8oCRa17dgqcv7u5rg0Wq2B1rgY+nHwx3JIv
++KRrgSwyRkGzpN8WQ1yrXlxWjgI9de0mPVDDUlywcWze1q2kwaEPTM3hLAmD1PESA
++oY/n8A/RXoeeRs9i/Pm/DGUS8ZPINXk/yOzsR/XvvkTVroIeLZqfmFpnZeF0cHzL
++08LODkVJJ9zjLdT7SA4vnne4FEbAxDbKAq5qkYzaL4UCAwEAAaOB0DCBzTAMBgNV
++HRMBAf8EAjAAMB0GA1UdDgQWBBSIWlXAUv9hzVKjNQ/qWpwkOCL3XDALBgNVHQ8E
++BAMCBeAwgZAGA1UdEQSBiDCBhYIeYWx0bnVsbC5weXRob24ub3JnAGV4YW1wbGUu
++Y29tgSBudWxsQHB5dGhvbi5vcmcAdXNlckBleGFtcGxlLm9yZ4YpaHR0cDovL251
++bGwucHl0aG9uLm9yZwBodHRwOi8vZXhhbXBsZS5vcmeHBMAAAgGHECABDbgAAAAA
++AAAAAAAAAAEwDQYJKoZIhvcNAQEFBQADggEBAKxPRe99SaghcI6IWT7UNkJw9aO9
++i9eo0Fj2MUqxpKbdb9noRDy2CnHWf7EIYZ1gznXPdwzSN4YCjV5d+Q9xtBaowT0j
++HPERs1ZuytCNNJTmhyqZ8q6uzMLoht4IqH/FBfpvgaeC5tBTnTT0rD5A/olXeimk
++kX4LxlEx5RAvpGB2zZVRGr6LobD9rVK91xuHYNIxxxfEGE8tCCWjp0+3ksri9SXx
++VHWBnbM9YaL32u3hxm8sYB/Yb8WSBavJCWJJqRStVRHM1koZlJmXNx2BX4vPo6iW
++RFEIPQsFZRLrtnCAiEhyT8bC2s/Njlu6ly9gtJZWSV46Q3ZjBL4q9sHKqZQ=
++-----END CERTIFICATE-----
+diff -r e0f86c3b3685 Lib/test/test_ssl.py
+--- a/Lib/test/test_ssl.py	Sun Aug 11 13:04:50 2013 +0300
++++ b/Lib/test/test_ssl.py	Sun Aug 11 18:17:23 2013 +0200
+@@ -55,6 +55,7 @@
+ WRONGCERT = data_file("XXXnonexisting.pem")
+ BADKEY = data_file("badkey.pem")
+ NOKIACERT = data_file("nokia.pem")
++NULLBYTECERT = data_file("nullbytecert.pem")
+ 
+ DHFILE = data_file("dh512.pem")
+ BYTES_DHFILE = os.fsencode(DHFILE)
+@@ -162,6 +163,27 @@
+                           ('DNS', 'projects.forum.nokia.com'))
+                         )
+ 
++    def test_parse_cert_CVE_2013_4073(self):
++        p = ssl._ssl._test_decode_cert(NULLBYTECERT)
++        if support.verbose:
++            sys.stdout.write("\n" + pprint.pformat(p) + "\n")
++        subject = ((('countryName', 'US'),),
++                   (('stateOrProvinceName', 'Oregon'),),
++                   (('localityName', 'Beaverton'),),
++                   (('organizationName', 'Python Software Foundation'),),
++                   (('organizationalUnitName', 'Python Core Development'),),
++                   (('commonName', 'null.python.org\x00example.org'),),
++                   (('emailAddress', 'python-dev@python.org'),))
++        self.assertEqual(p['subject'], subject)
++        self.assertEqual(p['issuer'], subject)
++        self.assertEqual(p['subjectAltName'],
++                         (('DNS', 'altnull.python.org\x00example.com'),
++                         ('email', 'null@python.org\x00user@example.org'),
++                         ('URI', 'http://null.python.org\x00http://example.org'),
++                         ('IP Address', '192.0.2.1'),
++                         ('IP Address', '2001:DB8:0:0:0:0:0:1\n'))
++                        )
++
+     def test_DER_to_PEM(self):
+         with open(SVN_PYTHON_ORG_ROOT_CERT, 'r') as f:
+             pem = f.read()
+@@ -294,6 +316,13 @@
+         fail(cert, 'foo.a.com')
+         fail(cert, 'bar.foo.com')
+ 
++        # NULL bytes are bad, CVE-2013-4073
++        cert = {'subject': ((('commonName',
++                              'null.python.org\x00example.org'),),)}
++        ok(cert, 'null.python.org\x00example.org') # or raise an error?
++        fail(cert, 'example.org')
++        fail(cert, 'null.python.org')
++
+         # Slightly fake real-world example
+         cert = {'notAfter': 'Jun 26 21:41:46 2011 GMT',
+                 'subject': ((('commonName', 'linuxfrz.org'),),),
+diff -r e0f86c3b3685 Modules/_ssl.c
+--- a/Modules/_ssl.c	Sun Aug 11 13:04:50 2013 +0300
++++ b/Modules/_ssl.c	Sun Aug 11 18:17:23 2013 +0200
+@@ -771,12 +771,14 @@
+                            ext->value->length));
+ 
+         for(j = 0; j < sk_GENERAL_NAME_num(names); j++) {
+-
+             /* get a rendering of each name in the set of names */
++            int gntype;
++            ASN1_STRING *as = NULL;
+ 
+             name = sk_GENERAL_NAME_value(names, j);
+-            if (name->type == GEN_DIRNAME) {
+-
++            gntype = name-> type;
++            switch (gntype) {
++            case GEN_DIRNAME:
+                 /* we special-case DirName as a tuple of
+                    tuples of attributes */
+ 
+@@ -798,11 +800,62 @@
+                     goto fail;
+                 }
+                 PyTuple_SET_ITEM(t, 1, v);
++                break;
+ 
+-            } else {
++            case GEN_EMAIL:
++            case GEN_DNS:
++            case GEN_URI:
++                /* GENERAL_NAME_print() doesn't handle NUL bytes in ASN1_string
++                   correctly. */
++                t = PyTuple_New(2);
++                if (t == NULL)
++                    goto fail;
++                switch (gntype) {
++                case GEN_EMAIL:
++                    v = PyUnicode_FromString("email");
++                    as = name->d.rfc822Name;
++                    break;
++                case GEN_DNS:
++                    v = PyUnicode_FromString("DNS");
++                    as = name->d.dNSName;
++                    break;
++                case GEN_URI:
++                    v = PyUnicode_FromString("URI");
++                    as = name->d.uniformResourceIdentifier;
++                    break;
++                }
++                if (v == NULL) {
++                    Py_DECREF(t);
++                    goto fail;
++                }
++                PyTuple_SET_ITEM(t, 0, v);
++                v = PyUnicode_FromStringAndSize((char *)ASN1_STRING_data(as),
++                                                ASN1_STRING_length(as));
++                if (v == NULL) {
++                    Py_DECREF(t);
++                    goto fail;
++                }
++                PyTuple_SET_ITEM(t, 1, v);
++                break;
+ 
++            default:
+                 /* for everything else, we use the OpenSSL print form */
+-
++                switch (gntype) {
++                    /* check for new general name type */
++                    case GEN_OTHERNAME:
++                    case GEN_X400:
++                    case GEN_EDIPARTY:
++                    case GEN_IPADD:
++                    case GEN_RID:
++                        break;
++                    default:
++                        if (PyErr_WarnFormat(PyExc_RuntimeWarning, 1,
++                                             "Unknown general name type %d",
++                                             gntype) == -1) {
++                            goto fail;
++                        }
++                        break;
++                }
+                 (void) BIO_reset(biobuf);
+                 GENERAL_NAME_print(biobuf, name);
+                 len = BIO_gets(biobuf, buf, sizeof(buf)-1);
+@@ -829,6 +882,7 @@
+                     goto fail;
+                 }
+                 PyTuple_SET_ITEM(t, 1, v);
++                break;
+             }
+ 
+             /* and add that rendering to the list */

diff --git a/dev-lang/python/files/pydoc.conf b/dev-lang/python/files/pydoc.conf
new file mode 100644
index 0000000..20e3628
--- /dev/null
+++ b/dev-lang/python/files/pydoc.conf
@@ -0,0 +1,7 @@
+# /etc/init.d/pydoc.conf
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/files/pydoc.conf,v 1.3 2011/10/27 13:56:55 neurogeek Exp $
+
+# This file contains the configuration for pydoc's internal webserver.
+
+# Default port for Python's pydoc server.
+@PYDOC_PORT_VARIABLE@="7464"

diff --git a/dev-lang/python/files/pydoc.init b/dev-lang/python/files/pydoc.init
new file mode 100755
index 0000000..0d62dfc
--- /dev/null
+++ b/dev-lang/python/files/pydoc.init
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public Licence v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/files/pydoc.init,v 1.4 2011/10/27 13:56:55 neurogeek Exp $
+
+depend() {
+	need net
+}
+
+start() {
+	local pydoc_port="${@PYDOC_PORT_VARIABLE@-${PYDOC_PORT}}"
+
+	if [ -z "${pydoc_port}" ]; then
+		eerror "Port not set"
+		return 1
+	fi
+
+	ebegin "Starting pydoc server on port ${pydoc_port}" 
+	start-stop-daemon --start --background --make-pidfile \
+			  --pidfile /var/run/@PYDOC@.pid \
+			  --exec /usr/bin/@PYDOC@ -- -p "${pydoc_port}"
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping pydoc server"
+	start-stop-daemon --stop --quiet --pidfile /var/run/@PYDOC@.pid
+	eend $?
+}

diff --git a/dev-lang/python/files/python-2.7-issue16248.patch b/dev-lang/python/files/python-2.7-issue16248.patch
new file mode 100644
index 0000000..ce9c654
--- /dev/null
+++ b/dev-lang/python/files/python-2.7-issue16248.patch
@@ -0,0 +1,19 @@
+# HG changeset patch
+# User Antoine Pitrou <solipsis@pitrou.net>
+# Date 1375388712 -7200
+# Node ID 0f17aed78168e63ec058c219d03cea7240f83dd6
+# Parent  bb546f6d8ab4f513804d7a420657963881e5b447
+Fix tkinter regression introduced by the security fix in #16248.
+
+diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
+--- a/Lib/lib-tk/Tkinter.py
++++ b/Lib/lib-tk/Tkinter.py
+@@ -1736,7 +1736,7 @@ class Tk(Misc, Wm):
+         # ensure that self.tk is always _something_.
+         self.tk = None
+         if baseName is None:
+-            import sys, os
++            import os
+             baseName = os.path.basename(sys.argv[0])
+             baseName, ext = os.path.splitext(baseName)
+             if ext not in ('.py', '.pyc', '.pyo'):

diff --git a/dev-lang/python/files/python-2.7-issue18851.patch b/dev-lang/python/files/python-2.7-issue18851.patch
new file mode 100644
index 0000000..35c69ae
--- /dev/null
+++ b/dev-lang/python/files/python-2.7-issue18851.patch
@@ -0,0 +1,287 @@
+# HG changeset patch
+# User Antoine Pitrou <solipsis@pitrou.net>
+# Date 1377898693 -7200
+# Node ID 43749cb6bdbd0fdab70f76cd171c3c02a3f600dd
+# Parent  ba54011aa295004ad87438211fe3bb1568dd69ab
+Issue #18851: Avoid a double close of subprocess pipes when the child process fails starting.
+
+diff --git a/Lib/subprocess.py b/Lib/subprocess.py
+--- a/Lib/subprocess.py
++++ b/Lib/subprocess.py
+@@ -698,12 +698,12 @@ class Popen(object):
+ 
+         (p2cread, p2cwrite,
+          c2pread, c2pwrite,
+-         errread, errwrite) = self._get_handles(stdin, stdout, stderr)
++         errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
+ 
+         try:
+             self._execute_child(args, executable, preexec_fn, close_fds,
+                                 cwd, env, universal_newlines,
+-                                startupinfo, creationflags, shell,
++                                startupinfo, creationflags, shell, to_close,
+                                 p2cread, p2cwrite,
+                                 c2pread, c2pwrite,
+                                 errread, errwrite)
+@@ -711,18 +711,12 @@ class Popen(object):
+             # Preserve original exception in case os.close raises.
+             exc_type, exc_value, exc_trace = sys.exc_info()
+ 
+-            to_close = []
+-            # Only close the pipes we created.
+-            if stdin == PIPE:
+-                to_close.extend((p2cread, p2cwrite))
+-            if stdout == PIPE:
+-                to_close.extend((c2pread, c2pwrite))
+-            if stderr == PIPE:
+-                to_close.extend((errread, errwrite))
+-
+             for fd in to_close:
+                 try:
+-                    os.close(fd)
++                    if mswindows:
++                        fd.Close()
++                    else:
++                        os.close(fd)
+                 except EnvironmentError:
+                     pass
+ 
+@@ -816,8 +810,9 @@ class Popen(object):
+             """Construct and return tuple with IO objects:
+             p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
+             """
++            to_close = set()
+             if stdin is None and stdout is None and stderr is None:
+-                return (None, None, None, None, None, None)
++                return (None, None, None, None, None, None), to_close
+ 
+             p2cread, p2cwrite = None, None
+             c2pread, c2pwrite = None, None
+@@ -835,6 +830,10 @@ class Popen(object):
+                 # Assuming file-like object
+                 p2cread = msvcrt.get_osfhandle(stdin.fileno())
+             p2cread = self._make_inheritable(p2cread)
++            # We just duplicated the handle, it has to be closed at the end
++            to_close.add(p2cread)
++            if stdin == PIPE:
++                to_close.add(p2cwrite)
+ 
+             if stdout is None:
+                 c2pwrite = _subprocess.GetStdHandle(_subprocess.STD_OUTPUT_HANDLE)
+@@ -848,6 +847,10 @@ class Popen(object):
+                 # Assuming file-like object
+                 c2pwrite = msvcrt.get_osfhandle(stdout.fileno())
+             c2pwrite = self._make_inheritable(c2pwrite)
++            # We just duplicated the handle, it has to be closed at the end
++            to_close.add(c2pwrite)
++            if stdout == PIPE:
++                to_close.add(c2pread)
+ 
+             if stderr is None:
+                 errwrite = _subprocess.GetStdHandle(_subprocess.STD_ERROR_HANDLE)
+@@ -863,10 +866,14 @@ class Popen(object):
+                 # Assuming file-like object
+                 errwrite = msvcrt.get_osfhandle(stderr.fileno())
+             errwrite = self._make_inheritable(errwrite)
++            # We just duplicated the handle, it has to be closed at the end
++            to_close.add(errwrite)
++            if stderr == PIPE:
++                to_close.add(errread)
+ 
+             return (p2cread, p2cwrite,
+                     c2pread, c2pwrite,
+-                    errread, errwrite)
++                    errread, errwrite), to_close
+ 
+ 
+         def _make_inheritable(self, handle):
+@@ -895,7 +902,7 @@ class Popen(object):
+ 
+         def _execute_child(self, args, executable, preexec_fn, close_fds,
+                            cwd, env, universal_newlines,
+-                           startupinfo, creationflags, shell,
++                           startupinfo, creationflags, shell, to_close,
+                            p2cread, p2cwrite,
+                            c2pread, c2pwrite,
+                            errread, errwrite):
+@@ -934,6 +941,10 @@ class Popen(object):
+                     # kill children.
+                     creationflags |= _subprocess.CREATE_NEW_CONSOLE
+ 
++            def _close_in_parent(fd):
++                fd.Close()
++                to_close.remove(fd)
++
+             # Start the process
+             try:
+                 hp, ht, pid, tid = _subprocess.CreateProcess(executable, args,
+@@ -958,11 +969,11 @@ class Popen(object):
+                 # pipe will not close when the child process exits and the
+                 # ReadFile will hang.
+                 if p2cread is not None:
+-                    p2cread.Close()
++                    _close_in_parent(p2cread)
+                 if c2pwrite is not None:
+-                    c2pwrite.Close()
++                    _close_in_parent(c2pwrite)
+                 if errwrite is not None:
+-                    errwrite.Close()
++                    _close_in_parent(errwrite)
+ 
+             # Retain the process handle, but close the thread handle
+             self._child_created = True
+@@ -1088,6 +1099,7 @@ class Popen(object):
+             """Construct and return tuple with IO objects:
+             p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite
+             """
++            to_close = set()
+             p2cread, p2cwrite = None, None
+             c2pread, c2pwrite = None, None
+             errread, errwrite = None, None
+@@ -1096,6 +1108,7 @@ class Popen(object):
+                 pass
+             elif stdin == PIPE:
+                 p2cread, p2cwrite = self.pipe_cloexec()
++                to_close.update((p2cread, p2cwrite))
+             elif isinstance(stdin, int):
+                 p2cread = stdin
+             else:
+@@ -1106,6 +1119,7 @@ class Popen(object):
+                 pass
+             elif stdout == PIPE:
+                 c2pread, c2pwrite = self.pipe_cloexec()
++                to_close.update((c2pread, c2pwrite))
+             elif isinstance(stdout, int):
+                 c2pwrite = stdout
+             else:
+@@ -1116,6 +1130,7 @@ class Popen(object):
+                 pass
+             elif stderr == PIPE:
+                 errread, errwrite = self.pipe_cloexec()
++                to_close.update((errread, errwrite))
+             elif stderr == STDOUT:
+                 errwrite = c2pwrite
+             elif isinstance(stderr, int):
+@@ -1126,7 +1141,7 @@ class Popen(object):
+ 
+             return (p2cread, p2cwrite,
+                     c2pread, c2pwrite,
+-                    errread, errwrite)
++                    errread, errwrite), to_close
+ 
+ 
+         def _set_cloexec_flag(self, fd, cloexec=True):
+@@ -1170,7 +1185,7 @@ class Popen(object):
+ 
+         def _execute_child(self, args, executable, preexec_fn, close_fds,
+                            cwd, env, universal_newlines,
+-                           startupinfo, creationflags, shell,
++                           startupinfo, creationflags, shell, to_close,
+                            p2cread, p2cwrite,
+                            c2pread, c2pwrite,
+                            errread, errwrite):
+@@ -1189,6 +1204,10 @@ class Popen(object):
+             if executable is None:
+                 executable = args[0]
+ 
++            def _close_in_parent(fd):
++                os.close(fd)
++                to_close.remove(fd)
++
+             # For transferring possible exec failure from child to parent
+             # The first char specifies the exception type: 0 means
+             # OSError, 1 means some other error.
+@@ -1283,17 +1302,17 @@ class Popen(object):
+                     # be sure the FD is closed no matter what
+                     os.close(errpipe_write)
+ 
+-                if p2cread is not None and p2cwrite is not None:
+-                    os.close(p2cread)
+-                if c2pwrite is not None and c2pread is not None:
+-                    os.close(c2pwrite)
+-                if errwrite is not None and errread is not None:
+-                    os.close(errwrite)
+-
+                 # Wait for exec to fail or succeed; possibly raising exception
+                 # Exception limited to 1M
+                 data = _eintr_retry_call(os.read, errpipe_read, 1048576)
+             finally:
++                if p2cread is not None and p2cwrite is not None:
++                    _close_in_parent(p2cread)
++                if c2pwrite is not None and c2pread is not None:
++                    _close_in_parent(c2pwrite)
++                if errwrite is not None and errread is not None:
++                    _close_in_parent(errwrite)
++
+                 # be sure the FD is closed no matter what
+                 os.close(errpipe_read)
+ 
+diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
+--- a/Lib/test/test_subprocess.py
++++ b/Lib/test/test_subprocess.py
+@@ -14,6 +14,10 @@ try:
+     import resource
+ except ImportError:
+     resource = None
++try:
++    import threading
++except ImportError:
++    threading = None
+ 
+ mswindows = (sys.platform == "win32")
+ 
+@@ -629,6 +633,36 @@ class ProcessTestCase(BaseTestCase):
+             if c.exception.errno not in (errno.ENOENT, errno.EACCES):
+                 raise c.exception
+ 
++    @unittest.skipIf(threading is None, "threading required")
++    def test_double_close_on_error(self):
++        # Issue #18851
++        fds = []
++        def open_fds():
++            for i in range(20):
++                fds.extend(os.pipe())
++                time.sleep(0.001)
++        t = threading.Thread(target=open_fds)
++        t.start()
++        try:
++            with self.assertRaises(EnvironmentError):
++                subprocess.Popen(['nonexisting_i_hope'],
++                                 stdin=subprocess.PIPE,
++                                 stdout=subprocess.PIPE,
++                                 stderr=subprocess.PIPE)
++        finally:
++            t.join()
++            exc = None
++            for fd in fds:
++                # If a double close occurred, some of those fds will
++                # already have been closed by mistake, and os.close()
++                # here will raise.
++                try:
++                    os.close(fd)
++                except OSError as e:
++                    exc = e
++            if exc is not None:
++                raise exc
++
+     def test_handles_closed_on_exception(self):
+         # If CreateProcess exits with an error, ensure the
+         # duplicate output handles are released
+@@ -783,7 +817,7 @@ class POSIXProcessTestCase(BaseTestCase)
+ 
+         def _execute_child(
+                 self, args, executable, preexec_fn, close_fds, cwd, env,
+-                universal_newlines, startupinfo, creationflags, shell,
++                universal_newlines, startupinfo, creationflags, shell, to_close,
+                 p2cread, p2cwrite,
+                 c2pread, c2pwrite,
+                 errread, errwrite):
+@@ -791,7 +825,7 @@ class POSIXProcessTestCase(BaseTestCase)
+                 subprocess.Popen._execute_child(
+                         self, args, executable, preexec_fn, close_fds,
+                         cwd, env, universal_newlines,
+-                        startupinfo, creationflags, shell,
++                        startupinfo, creationflags, shell, to_close,
+                         p2cread, p2cwrite,
+                         c2pread, c2pwrite,
+                         errread, errwrite)

diff --git a/dev-lang/python/files/python-2.7.5-library-path.patch b/dev-lang/python/files/python-2.7.5-library-path.patch
new file mode 100644
index 0000000..6f43575
--- /dev/null
+++ b/dev-lang/python/files/python-2.7.5-library-path.patch
@@ -0,0 +1,25 @@
+# HG changeset patch
+# User Ned Deily <nad@acm.org>
+# Date 1368666045 25200
+# Node ID cd577c3288860b0deb459443ca5c489dc0f99ef6
+# Parent  149340b3004acfcb68e5ed36b1e96b7463c756c7
+Issue #17990: Only modify include and library search paths when cross-compiling.
+
+diff --git a/setup.py b/setup.py
+--- a/setup.py
++++ b/setup.py
+@@ -437,9 +437,11 @@ class PyBuildExt(build_ext):
+ 
+     def detect_modules(self):
+         # Ensure that /usr/local is always used
+-        add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
+-        add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
+-        self.add_gcc_paths()
++        if not cross_compiling:
++            add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
++            add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
++        if cross_compiling:
++            self.add_gcc_paths()
+         self.add_multiarch_paths()
+ 
+         # Add paths specified in the environment variables LDFLAGS and

diff --git a/dev-lang/python/files/python-2.7.5-nonfatal-compileall.patch b/dev-lang/python/files/python-2.7.5-nonfatal-compileall.patch
new file mode 100644
index 0000000..a762dfb
--- /dev/null
+++ b/dev-lang/python/files/python-2.7.5-nonfatal-compileall.patch
@@ -0,0 +1,18 @@
+diff --git a/Makefile.pre.in b/Makefile.pre.in
+--- a/Makefile.pre.in
++++ b/Makefile.pre.in
+@@ -1000,12 +1000,12 @@
+ 		$(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
+ 			$(DESTDIR)$(LIBDEST)/distutils/tests ; \
+ 	fi
+-	PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
++	-PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
+ 		$(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
+ 		-d $(LIBDEST) -f \
+ 		-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
+ 		$(DESTDIR)$(LIBDEST)
+-	PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
++	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
+ 		$(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
+ 		-d $(LIBDEST) -f \
+ 		-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \

diff --git a/dev-lang/python/files/python-2.7.5-re_unsigned_ptrdiff.patch b/dev-lang/python/files/python-2.7.5-re_unsigned_ptrdiff.patch
new file mode 100644
index 0000000..a905839
--- /dev/null
+++ b/dev-lang/python/files/python-2.7.5-re_unsigned_ptrdiff.patch
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/show_bug.cgi?id=476426
+http://bugs.python.org/issue17998
+diff -r d91da96a55bf Modules/_sre.c
+--- a/Modules/_sre.c	Thu May 16 22:47:47 2013 +0100
++++ b/Modules/_sre.c	Fri May 17 21:02:48 2013 +0300
+@@ -1028,7 +1028,7 @@
+             TRACE(("|%p|%p|REPEAT_ONE %d %d\n", ctx->pattern, ctx->ptr,
+                    ctx->pattern[1], ctx->pattern[2]));
+ 
+-            if (ctx->pattern[1] > end - ctx->ptr)
++            if ((Py_ssize_t) ctx->pattern[1] > end - ctx->ptr)
+                 RETURN_FAILURE; /* cannot match */
+ 
+             state->ptr = ctx->ptr;
+@@ -1111,7 +1111,7 @@
+             TRACE(("|%p|%p|MIN_REPEAT_ONE %d %d\n", ctx->pattern, ctx->ptr,
+                    ctx->pattern[1], ctx->pattern[2]));
+ 
+-            if (ctx->pattern[1] > end - ctx->ptr)
++            if ((Py_ssize_t) ctx->pattern[1] > end - ctx->ptr)
+                 RETURN_FAILURE; /* cannot match */
+ 
+             state->ptr = ctx->ptr;

diff --git a/dev-lang/python/files/python-3.2-CVE-2013-2099.patch b/dev-lang/python/files/python-3.2-CVE-2013-2099.patch
new file mode 100644
index 0000000..9055a03
--- /dev/null
+++ b/dev-lang/python/files/python-3.2-CVE-2013-2099.patch
@@ -0,0 +1,51 @@
+# HG changeset patch
+# User Antoine Pitrou <solipsis@pitrou.net>
+# Date 1368892602 -7200
+#      Sat May 18 17:56:42 2013 +0200
+# Branch 3.2
+# Node ID b9b521efeba385af0142988899a55de1c1c805c7
+# Parent  6255b40c6a6127933d8ea7a2b9de200f5a0e6154
+Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
+
+diff --git a/Lib/ssl.py b/Lib/ssl.py
+--- a/Lib/ssl.py
++++ b/Lib/ssl.py
+@@ -108,9 +108,16 @@
+     pass
+ 
+ 
+-def _dnsname_to_pat(dn):
++def _dnsname_to_pat(dn, max_wildcards=1):
+     pats = []
+     for frag in dn.split(r'.'):
++        if frag.count('*') > max_wildcards:
++            # Issue #17980: avoid denials of service by refusing more
++            # than one wildcard per fragment.  A survery of established
++            # policy among SSL implementations showed it to be a
++            # reasonable choice.
++            raise CertificateError(
++                "too many wildcards in certificate DNS name: " + repr(dn))
+         if frag == '*':
+             # When '*' is a fragment by itself, it matches a non-empty dotless
+             # fragment.
+diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
+--- a/Lib/test/test_ssl.py
++++ b/Lib/test/test_ssl.py
+@@ -326,6 +326,17 @@
+         self.assertRaises(ValueError, ssl.match_hostname, None, 'example.com')
+         self.assertRaises(ValueError, ssl.match_hostname, {}, 'example.com')
+ 
++        # Issue #17980: avoid denials of service by refusing more than one
++        # wildcard per fragment.
++        cert = {'subject': ((('commonName', 'a*b.com'),),)}
++        ok(cert, 'axxb.com')
++        cert = {'subject': ((('commonName', 'a*b.co*'),),)}
++        ok(cert, 'axxb.com')
++        cert = {'subject': ((('commonName', 'a*b*.com'),),)}
++        with self.assertRaises(ssl.CertificateError) as cm:
++            ssl.match_hostname(cert, 'axxbxxc.com')
++        self.assertIn("too many wildcards", str(cm.exception))
++
+     def test_server_side(self):
+         # server_hostname doesn't work for server sockets
+         ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)

diff --git a/dev-lang/python/files/python-3.2-issue16248.patch b/dev-lang/python/files/python-3.2-issue16248.patch
new file mode 100644
index 0000000..d0e80ca
--- /dev/null
+++ b/dev-lang/python/files/python-3.2-issue16248.patch
@@ -0,0 +1,19 @@
+# HG changeset patch
+# User Georg Brandl <georg@python.org>
+# Date 1379142489 -7200
+# Node ID c18c18774e240377d47638fb23e8276c1ac2e606
+# Parent  b9b521efeba385af0142988899a55de1c1c805c7
+Fix tkinter regression introduced by the security fix in #16248.
+
+diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py
+--- a/Lib/tkinter/__init__.py
++++ b/Lib/tkinter/__init__.py
+@@ -1722,7 +1722,7 @@ class Tk(Misc, Wm):
+         # ensure that self.tk is always _something_.
+         self.tk = None
+         if baseName is None:
+-            import sys, os
++            import os
+             baseName = os.path.basename(sys.argv[0])
+             baseName, ext = os.path.splitext(baseName)
+             if ext not in ('.py', '.pyc', '.pyo'):

diff --git a/dev-lang/python/files/python-3.3-CVE-2013-2099.patch b/dev-lang/python/files/python-3.3-CVE-2013-2099.patch
new file mode 100644
index 0000000..44b9ace
--- /dev/null
+++ b/dev-lang/python/files/python-3.3-CVE-2013-2099.patch
@@ -0,0 +1,51 @@
+# HG changeset patch
+# User Antoine Pitrou <solipsis@pitrou.net>
+# Date 1368892602 -7200
+#      Sat May 18 17:56:42 2013 +0200
+# Branch 3.3
+# Node ID c627638753e2d25a98950585b259104a025937a9
+# Parent  9682241dc8fcb4b1aef083bd30860efa070c3d6d
+Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
+
+diff --git a/Lib/ssl.py b/Lib/ssl.py
+--- a/Lib/ssl.py
++++ b/Lib/ssl.py
+@@ -129,9 +129,16 @@
+     pass
+ 
+ 
+-def _dnsname_to_pat(dn):
++def _dnsname_to_pat(dn, max_wildcards=1):
+     pats = []
+     for frag in dn.split(r'.'):
++        if frag.count('*') > max_wildcards:
++            # Issue #17980: avoid denials of service by refusing more
++            # than one wildcard per fragment.  A survery of established
++            # policy among SSL implementations showed it to be a
++            # reasonable choice.
++            raise CertificateError(
++                "too many wildcards in certificate DNS name: " + repr(dn))
+         if frag == '*':
+             # When '*' is a fragment by itself, it matches a non-empty dotless
+             # fragment.
+diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
+--- a/Lib/test/test_ssl.py
++++ b/Lib/test/test_ssl.py
+@@ -349,6 +349,17 @@
+         self.assertRaises(ValueError, ssl.match_hostname, None, 'example.com')
+         self.assertRaises(ValueError, ssl.match_hostname, {}, 'example.com')
+ 
++        # Issue #17980: avoid denials of service by refusing more than one
++        # wildcard per fragment.
++        cert = {'subject': ((('commonName', 'a*b.com'),),)}
++        ok(cert, 'axxb.com')
++        cert = {'subject': ((('commonName', 'a*b.co*'),),)}
++        ok(cert, 'axxb.com')
++        cert = {'subject': ((('commonName', 'a*b*.com'),),)}
++        with self.assertRaises(ssl.CertificateError) as cm:
++            ssl.match_hostname(cert, 'axxbxxc.com')
++        self.assertIn("too many wildcards", str(cm.exception))
++
+     def test_server_side(self):
+         # server_hostname doesn't work for server sockets
+         ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)

diff --git a/dev-lang/python/files/python-3.3-fix-posix-close-clash.patch b/dev-lang/python/files/python-3.3-fix-posix-close-clash.patch
new file mode 100644
index 0000000..e28e592
--- /dev/null
+++ b/dev-lang/python/files/python-3.3-fix-posix-close-clash.patch
@@ -0,0 +1,21 @@
+diff -Naur Python-3.3.2.orig/Modules/posixmodule.c Python-3.3.2/Modules/posixmodule.c
+--- Python-3.3.2.orig/Modules/posixmodule.c	2013-05-15 16:32:59.000000000 +0000
++++ Python-3.3.2/Modules/posixmodule.c	2014-01-15 15:36:55.852467918 +0000
+@@ -7679,7 +7679,7 @@
+ Close a file descriptor (for low level IO).");
+ 
+ static PyObject *
+-posix_close(PyObject *self, PyObject *args)
++posix_closex(PyObject *self, PyObject *args)
+ {
+     int fd, res;
+     if (!PyArg_ParseTuple(args, "i:close", &fd))
+@@ -11082,7 +11082,7 @@
+     {"open",            (PyCFunction)posix_open,\
+                         METH_VARARGS | METH_KEYWORDS,
+                         posix_open__doc__},
+-    {"close",           posix_close, METH_VARARGS, posix_close__doc__},
++    {"close",           posix_closex, METH_VARARGS, posix_close__doc__},
+     {"closerange",      posix_closerange, METH_VARARGS, posix_closerange__doc__},
+     {"device_encoding", device_encoding, METH_VARARGS, device_encoding__doc__},
+     {"dup",             posix_dup, METH_VARARGS, posix_dup__doc__},

diff --git a/dev-lang/python/files/python-fix-posix-close-clash.patch b/dev-lang/python/files/python-fix-posix-close-clash.patch
new file mode 100644
index 0000000..e6e45e8
--- /dev/null
+++ b/dev-lang/python/files/python-fix-posix-close-clash.patch
@@ -0,0 +1,20 @@
+--- Python-2.7.6.org/Modules/posixmodule.c
++++ Python-2.7.6/Modules/posixmodule.c
+@@ -6582,7 +6582,7 @@
+ Close a file descriptor (for low level IO).");
+ 
+ static PyObject *
+-posix_close(PyObject *self, PyObject *args)
++posix_closex(PyObject *self, PyObject *args)
+ {
+     int fd, res;
+     if (!PyArg_ParseTuple(args, "i:close", &amp;fd))
+@@ -8960,7 +8960,7 @@
+     {"tcsetpgrp",       posix_tcsetpgrp, METH_VARARGS, posix_tcsetpgrp__doc__},
+ #endif /* HAVE_TCSETPGRP */
+     {"open",            posix_open, METH_VARARGS, posix_open__doc__},
+-    {"close",           posix_close, METH_VARARGS, posix_close__doc__},
++    {"close",           posix_closex, METH_VARARGS, posix_close__doc__},
+     {"closerange",      posix_closerange, METH_VARARGS, posix_closerange__doc__},
+     {"dup",             posix_dup, METH_VARARGS, posix_dup__doc__},
+     {"dup2",            posix_dup2, METH_VARARGS, posix_dup2__doc__},

diff --git a/dev-lang/python/metadata.xml b/dev-lang/python/metadata.xml
new file mode 100644
index 0000000..51a9e80
--- /dev/null
+++ b/dev-lang/python/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>python</herd>
+<use>
+	<flag name="threads">Enable threading support. (DON'T DISABLE THIS UNLESS YOU KNOW WHAT YOU'RE DOING)</flag>
+	<flag name="wide-unicode">Enable wide Unicode implementation which uses 4-byte Unicode characters. Switching of this USE flag changes ABI of Python and requires reinstallation of many Python modules. (DON'T DISABLE THIS UNLESS YOU KNOW WHAT YOU'RE DOING)</flag>
+	<flag name="wininst">Install Windows executables required to create an executable installer for MS Windows.</flag>
+</use>
+</pkgmetadata>

diff --git a/dev-lang/python/python-2.7.5-r99.ebuild b/dev-lang/python/python-2.7.5-r99.ebuild
new file mode 100644
index 0000000..2168b2d
--- /dev/null
+++ b/dev-lang/python/python-2.7.5-r99.ebuild
@@ -0,0 +1,358 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.7.5-r3.ebuild,v 1.3 2013/12/30 21:57:26 floppym Exp $
+
+EAPI="4"
+WANT_AUTOMAKE="none"
+WANT_LIBTOOL="none"
+
+inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
+
+MY_P="Python-${PV}"
+PATCHSET_REVISION="0"
+
+DESCRIPTION="An interpreted, interactive, object-oriented programming language"
+HOMEPAGE="http://www.python.org/"
+SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
+	mirror://gentoo/python-gentoo-patches-${PV}-${PATCHSET_REVISION}.tar.xz"
+
+LICENSE="PSF-2"
+SLOT="2.7"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="-berkdb build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
+
+# Do not add a dependency on dev-lang/python to this ebuild.
+# If you need to apply a patch which requires python for bootstrapping, please
+# run the bootstrap code on your dev box and include the results in the
+# patchset. See bug 447752.
+
+RDEPEND="app-arch/bzip2
+	>=sys-libs/zlib-1.1.3
+	virtual/libffi
+	virtual/libintl
+	!build? (
+		berkdb? ( || (
+			sys-libs/db:5.3
+			sys-libs/db:5.2
+			sys-libs/db:5.1
+			sys-libs/db:5.0
+			sys-libs/db:4.8
+			sys-libs/db:4.7
+			sys-libs/db:4.6
+			sys-libs/db:4.5
+			sys-libs/db:4.4
+			sys-libs/db:4.3
+			sys-libs/db:4.2
+		) )
+		gdbm? ( sys-libs/gdbm[berkdb] )
+		ncurses? (
+			>=sys-libs/ncurses-5.2
+			readline? ( >=sys-libs/readline-4.1 )
+		)
+		sqlite? ( >=dev-db/sqlite-3.3.8:3 )
+		ssl? ( dev-libs/openssl )
+		tk? (
+			>=dev-lang/tk-8.0
+			dev-tcltk/blt
+		)
+		xml? ( >=dev-libs/expat-2.1 )
+	)
+	!!<sys-apps/portage-2.1.9"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	>=sys-devel/autoconf-2.65
+	!sys-devel/gcc[libffi]"
+RDEPEND+=" !build? ( app-misc/mime-types )
+	doc? ( dev-python/python-docs:${SLOT} )"
+PDEPEND="app-admin/eselect-python
+	app-admin/python-updater"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+	if use berkdb; then
+		ewarn "'bsddb' module is out-of-date and no longer maintained inside"
+		ewarn "dev-lang/python. 'bsddb' and 'dbhash' modules have been additionally"
+		ewarn "removed in Python 3. A maintained alternative of 'bsddb3' module"
+		ewarn "is provided by dev-python/bsddb3."
+	else
+		if has_version "=${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"; then
+			ewarn "You are migrating from =${CATEGORY}/${PN}-${PV%%.*}*[berkdb]"
+			ewarn "to =${CATEGORY}/${PN}-${PV%%.*}*[-berkdb]."
+			ewarn "You might need to migrate your databases."
+		fi
+	fi
+}
+
+src_prepare() {
+	# Ensure that internal copies of expat, libffi and zlib are not used.
+	rm -r Modules/expat || die
+	rm -r Modules/_ctypes/libffi* || die
+	rm -r Modules/zlib || die
+
+	if tc-is-cross-compiler; then
+		local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
+	fi
+
+	EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}-${PATCHSET_REVISION}"
+
+	epatch "${FILESDIR}/${P}-library-path.patch" #474882
+	epatch "${FILESDIR}/${P}-re_unsigned_ptrdiff.patch" #476426
+	epatch "${FILESDIR}/CVE-2013-4238_py27.patch"
+	epatch "${FILESDIR}/python-2.7-issue16248.patch"
+
+	# Fix for cross-compiling.
+	epatch "${FILESDIR}/python-2.7.5-nonfatal-compileall.patch"
+
+	# Fix for class with posix_close on musl
+	epatch "${FILESDIR}/python-fix-posix-close-clash.patch"
+
+	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
+		Lib/distutils/command/install.py \
+		Lib/distutils/sysconfig.py \
+		Lib/site.py \
+		Lib/sysconfig.py \
+		Lib/test/test_site.py \
+		Makefile.pre.in \
+		Modules/Setup.dist \
+		Modules/getpath.c \
+		setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
+
+	epatch_user
+
+	eautoconf
+	eautoheader
+}
+
+src_configure() {
+	if use build; then
+		# Disable extraneous modules with extra dependencies.
+		export PYTHON_DISABLE_MODULES="dbm _bsddb gdbm _curses _curses_panel readline _sqlite3 _tkinter _elementtree pyexpat"
+		export PYTHON_DISABLE_SSL="1"
+	else
+		# dbm module can be linked against berkdb or gdbm.
+		# Defaults to gdbm when both are enabled, #204343.
+		local disable
+		use berkdb   || use gdbm || disable+=" dbm"
+		use berkdb   || disable+=" _bsddb"
+		use gdbm     || disable+=" gdbm"
+		use ncurses  || disable+=" _curses _curses_panel"
+		use readline || disable+=" readline"
+		use sqlite   || disable+=" _sqlite3"
+		use ssl      || export PYTHON_DISABLE_SSL="1"
+		use tk       || disable+=" _tkinter"
+		use xml      || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
+		export PYTHON_DISABLE_MODULES="${disable}"
+
+		if ! use xml; then
+			ewarn "You have configured Python without XML support."
+			ewarn "This is NOT a recommended configuration as you"
+			ewarn "may face problems parsing any XML documents."
+		fi
+	fi
+
+	if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
+		einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
+	fi
+
+	if [[ "$(gcc-major-version)" -ge 4 ]]; then
+		append-flags -fwrapv
+	fi
+
+	filter-flags -malign-double
+
+	[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
+
+	# https://bugs.gentoo.org/show_bug.cgi?id=50309
+	if is-flagq -O3; then
+		is-flagq -fstack-protector-all && replace-flags -O3 -O2
+		use hardened && replace-flags -O3 -O2
+	fi
+
+	# Export CXX so it ends up in /usr/lib/python2.X/config/Makefile.
+	tc-export CXX
+	# The configure script fails to use pkg-config correctly.
+	# http://bugs.python.org/issue15506
+	export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
+
+	# Set LDFLAGS so we link modules with -lpython2.7 correctly.
+	# Needed on FreeBSD unless Python 2.7 is already installed.
+	# Please query BSD team before removing this!
+	append-ldflags "-L."
+
+	local dbmliborder
+	if use gdbm; then
+		dbmliborder+="${dbmliborder:+:}gdbm"
+	fi
+	if use berkdb; then
+		dbmliborder+="${dbmliborder:+:}bdb"
+	fi
+
+	BUILD_DIR="${WORKDIR}/${CHOST}"
+	mkdir -p "${BUILD_DIR}" || die
+	cd "${BUILD_DIR}" || die
+
+	ECONF_SOURCE="${S}" OPT="" \
+	econf \
+		--with-fpectl \
+		--enable-shared \
+		$(use_enable ipv6) \
+		$(use_with threads) \
+		$(use wide-unicode && echo "--enable-unicode=ucs4" || echo "--enable-unicode=ucs2") \
+		--infodir='${prefix}/share/info' \
+		--mandir='${prefix}/share/man' \
+		--with-dbmliborder="${dbmliborder}" \
+		--with-libc="" \
+		--enable-loadable-sqlite-extensions \
+		--with-system-expat \
+		--with-system-ffi
+
+	if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
+		eerror "configure has detected that the sem_open function is broken."
+		eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
+		die "Broken sem_open function (bug 496328)"
+	fi
+}
+
+src_compile() {
+	# Avoid invoking pgen for cross-compiles.
+	touch Include/graminit.h Python/graminit.c
+
+	cd "${BUILD_DIR}" || die
+	emake
+
+	# Work around bug 329499. See also bug 413751 and 457194.
+	if has_version dev-libs/libffi[pax_kernel]; then
+		pax-mark E python
+	else
+		pax-mark m python
+	fi
+}
+
+src_test() {
+	# Tests will not work when cross compiling.
+	if tc-is-cross-compiler; then
+		elog "Disabling tests due to crosscompiling."
+		return
+	fi
+
+	cd "${BUILD_DIR}" || die
+
+	# Skip failing tests.
+	local skipped_tests="distutils gdb"
+
+	for test in ${skipped_tests}; do
+		mv "${S}"/Lib/test/test_${test}.py "${T}"
+	done
+
+	# Rerun failed tests in verbose mode (regrtest -w).
+	emake test EXTRATESTOPTS="-w" < /dev/tty
+	local result="$?"
+
+	for test in ${skipped_tests}; do
+		mv "${T}/test_${test}.py" "${S}"/Lib/test
+	done
+
+	elog "The following tests have been skipped:"
+	for test in ${skipped_tests}; do
+		elog "test_${test}.py"
+	done
+
+	elog "If you would like to run them, you may:"
+	elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
+	elog "and run the tests separately."
+
+	if [[ "${result}" -ne 0 ]]; then
+		die "emake test failed"
+	fi
+}
+
+src_install() {
+	local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
+
+	cd "${BUILD_DIR}" || die
+	emake DESTDIR="${D}" altinstall
+
+	sed -e "s/\(LDFLAGS=\).*/\1/" -i "${libdir}/config/Makefile" || die "sed failed"
+
+	# Backwards compat with Gentoo divergence.
+	dosym python${SLOT}-config /usr/bin/python-config-${SLOT}
+
+	# Fix collisions between different slots of Python.
+	mv "${ED}usr/bin/2to3" "${ED}usr/bin/2to3-${SLOT}"
+	mv "${ED}usr/bin/pydoc" "${ED}usr/bin/pydoc${SLOT}"
+	mv "${ED}usr/bin/idle" "${ED}usr/bin/idle${SLOT}"
+	rm -f "${ED}usr/bin/smtpd.py"
+
+	if use build; then
+		rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{bsddb,dbhash.py,idlelib,lib-tk,sqlite3,test}
+	else
+		use berkdb || rm -r "${libdir}/"{bsddb,dbhash.py,test/test_bsddb*} || die
+		use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
+		use tk || rm -r "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,lib-tk} || die
+		use elibc_uclibc && rm -fr "${libdir}/"{bsddb/test,test}
+	fi
+
+	use threads || rm -r "${libdir}/multiprocessing" || die
+	use wininst || rm -r "${libdir}/distutils/command/"wininst-*.exe || die
+
+	dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS} || die "dodoc failed"
+
+	if use examples; then
+		insinto /usr/share/doc/${PF}/examples
+		doins -r "${S}"/Tools
+	fi
+	insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
+	local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
+		emake --no-print-directory -s -f - 2>/dev/null)
+	newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
+
+	newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
+	newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
+	sed \
+		-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
+		-e "s:@PYDOC@:pydoc${SLOT}:" \
+		-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
+
+	# for python-exec
+	python_export python${SLOT} EPYTHON PYTHON PYTHON_SITEDIR
+
+	# if not using a cross-compiler, use the fresh binary
+	if ! tc-is-cross-compiler; then
+		local PYTHON=./python
+		local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
+	fi
+
+	echo "EPYTHON='${EPYTHON}'" > epython.py
+	python_domodule epython.py
+}
+
+pkg_preinst() {
+	if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version "${CATEGORY}/${PN}:2.7"; then
+		python_updater_warning="1"
+	fi
+}
+
+eselect_python_update() {
+	if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
+		eselect python update
+	fi
+
+	if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
+		eselect python update --python${PV%%.*}
+	fi
+}
+
+pkg_postinst() {
+	eselect_python_update
+
+	if [[ "${python_updater_warning}" == "1" ]]; then
+		ewarn "You have just upgraded from an older version of Python."
+		ewarn "You should switch active version of Python ${PV%%.*} and run"
+		ewarn "'python-updater [options]' to rebuild Python modules."
+	fi
+}
+
+pkg_postrm() {
+	eselect_python_update
+}

diff --git a/dev-lang/python/python-3.2.5-r99.ebuild b/dev-lang/python/python-3.2.5-r99.ebuild
new file mode 100644
index 0000000..2cf5484
--- /dev/null
+++ b/dev-lang/python/python-3.2.5-r99.ebuild
@@ -0,0 +1,379 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.2.5-r3.ebuild,v 1.3 2013/12/30 21:57:26 floppym Exp $
+
+EAPI="4"
+WANT_AUTOMAKE="none"
+WANT_LIBTOOL="none"
+
+inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
+
+MY_P="Python-${PV}"
+PATCHSET_REVISION="0"
+
+DESCRIPTION="An interpreted, interactive, object-oriented programming language"
+HOMEPAGE="http://www.python.org/"
+SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
+	mirror://gentoo/python-gentoo-patches-${PV}-${PATCHSET_REVISION}.tar.xz"
+
+LICENSE="PSF-2"
+SLOT="3.2"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
+
+# Do not add a dependency on dev-lang/python to this ebuild.
+# If you need to apply a patch which requires python for bootstrapping, please
+# run the bootstrap code on your dev box and include the results in the
+# patchset. See bug 447752.
+
+RDEPEND="app-arch/bzip2
+	>=sys-libs/zlib-1.1.3
+	virtual/libffi
+	virtual/libintl
+	!build? (
+		gdbm? ( sys-libs/gdbm[berkdb] )
+		ncurses? (
+			>=sys-libs/ncurses-5.2
+			readline? ( >=sys-libs/readline-4.1 )
+		)
+		sqlite? ( >=dev-db/sqlite-3.3.8:3 )
+		ssl? ( dev-libs/openssl )
+		tk? (
+			>=dev-lang/tk-8.0
+			dev-tcltk/blt
+		)
+		xml? ( >=dev-libs/expat-2.1 )
+	)"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	>=sys-devel/autoconf-2.65
+	!sys-devel/gcc[libffi]"
+RDEPEND+=" !build? ( app-misc/mime-types )
+	doc? ( dev-python/python-docs:${SLOT} )"
+PDEPEND="app-admin/eselect-python
+	app-admin/python-updater"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+	if [[ "${PV}" =~ ^3\.2(\.[1234])?(_pre)? ]]; then
+		rm -f "${EROOT}usr/$(get_libdir)/llibpython3.so"
+	else
+		die "Deprecated code not deleted"
+	fi
+}
+
+src_prepare() {
+	# Ensure that internal copies of expat, libffi and zlib are not used.
+	rm -r Modules/expat
+	rm -r Modules/_ctypes/libffi*
+	rm -r Modules/zlib
+
+	local excluded_patches
+	if ! tc-is-cross-compiler; then
+		excluded_patches="*_all_crosscompile.patch"
+	fi
+
+	EPATCH_EXCLUDE="${excluded_patches}" EPATCH_SUFFIX="patch" \
+		epatch "${WORKDIR}/${PV}-${PATCHSET_REVISION}"
+
+	epatch "${FILESDIR}/python-3.2-CVE-2013-2099.patch"
+	epatch "${FILESDIR}/CVE-2013-4238_py33.patch"
+	epatch "${FILESDIR}/python-3.2-issue16248.patch"
+
+	# Fix for class with posix_close on musl
+	epatch "${FILESDIR}/python-fix-posix-close-clash.patch"
+
+	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
+		Lib/distutils/command/install.py \
+		Lib/distutils/sysconfig.py \
+		Lib/site.py \
+		Lib/sysconfig.py \
+		Lib/test/test_site.py \
+		Makefile.pre.in \
+		Modules/Setup.dist \
+		Modules/getpath.c \
+		setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
+
+	# Disable ABI flags.
+	sed -e "s/ABIFLAGS=\"\${ABIFLAGS}.*\"/:/" -i configure.ac || die "sed failed"
+
+	epatch_user
+
+	eautoconf
+	eautoheader
+}
+
+src_configure() {
+	if use build; then
+		# Disable extraneous modules with extra dependencies.
+		export PYTHON_DISABLE_MODULES="gdbm _curses _curses_panel readline _sqlite3 _tkinter _elementtree pyexpat"
+		export PYTHON_DISABLE_SSL="1"
+	else
+		local disable
+		use gdbm     || disable+=" gdbm"
+		use ncurses  || disable+=" _curses _curses_panel"
+		use readline || disable+=" readline"
+		use sqlite   || disable+=" _sqlite3"
+		use ssl      || export PYTHON_DISABLE_SSL="1"
+		use tk       || disable+=" _tkinter"
+		use xml      || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
+		export PYTHON_DISABLE_MODULES="${disable}"
+
+		if ! use xml; then
+			ewarn "You have configured Python without XML support."
+			ewarn "This is NOT a recommended configuration as you"
+			ewarn "may face problems parsing any XML documents."
+		fi
+	fi
+
+	if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
+		einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
+	fi
+
+	if [[ "$(gcc-major-version)" -ge 4 ]]; then
+		append-flags -fwrapv
+	fi
+
+	filter-flags -malign-double
+
+	[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
+
+	# https://bugs.gentoo.org/show_bug.cgi?id=50309
+	if is-flagq -O3; then
+		is-flagq -fstack-protector-all && replace-flags -O3 -O2
+		use hardened && replace-flags -O3 -O2
+	fi
+
+	# Run the configure scripts in parallel.
+	multijob_init
+
+	mkdir -p "${WORKDIR}"/{${CBUILD},${CHOST}}
+
+	if tc-is-cross-compiler; then
+		(
+		multijob_child_init
+		cd "${WORKDIR}"/${CBUILD} >/dev/null
+		OPT="-O1" CFLAGS="" CPPFLAGS="" LDFLAGS="" CC="" \
+		"${S}"/configure \
+			--{build,host}=${CBUILD} \
+			|| die "cross-configure failed"
+		) &
+		multijob_post_fork
+
+		# The configure script assumes it's buggy when cross-compiling.
+		export ac_cv_buggy_getaddrinfo=no
+		export ac_cv_have_long_long_format=yes
+	fi
+
+	# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
+	tc-export CXX
+	# The configure script fails to use pkg-config correctly.
+	# http://bugs.python.org/issue15506
+	export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
+
+	# Set LDFLAGS so we link modules with -lpython3.2 correctly.
+	# Needed on FreeBSD unless Python 3.2 is already installed.
+	# Please query BSD team before removing this!
+	append-ldflags "-L."
+
+	local dbmliborder
+	if use gdbm; then
+		dbmliborder+="${dbmliborder:+:}gdbm"
+	fi
+
+	cd "${WORKDIR}"/${CHOST}
+	ECONF_SOURCE=${S} OPT="" \
+	econf \
+		--with-fpectl \
+		--enable-shared \
+		$(use_enable ipv6) \
+		$(use_with threads) \
+		$(use_with wide-unicode) \
+		--infodir='${prefix}/share/info' \
+		--mandir='${prefix}/share/man' \
+		--with-computed-gotos \
+		--with-dbmliborder="${dbmliborder}" \
+		--with-libc="" \
+		--enable-loadable-sqlite-extensions \
+		--with-system-expat \
+		--with-system-ffi
+
+	if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
+		eerror "configure has detected that the sem_open function is broken."
+		eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
+		die "Broken sem_open function (bug 496328)"
+	fi
+
+	if tc-is-cross-compiler; then
+		# Modify the Makefile.pre so we don't regen for the host/ one.
+		# We need to link the host python programs into $PWD and run
+		# them from here because the distutils sysconfig module will
+		# parse Makefile/etc... from argv[0], and we need it to pick
+		# up the target settings, not the host ones.
+		sed -i \
+			-e '1iHOSTPYTHONPATH = ./hostpythonpath:' \
+			-e '/^HOSTPYTHON/s:=.*:= ./hostpython:' \
+			-e '/^HOSTPGEN/s:=.*:= ./Parser/hostpgen:' \
+			Makefile{.pre,} || die "sed failed"
+	fi
+
+	multijob_finish
+}
+
+src_compile() {
+	if tc-is-cross-compiler; then
+		cd "${WORKDIR}"/${CBUILD}
+		# Disable as many modules as possible -- but we need a few to install.
+		PYTHON_DISABLE_MODULES=$(
+			sed -n "/Extension('/{s:^.*Extension('::;s:'.*::;p}" "${S}"/setup.py | \
+				egrep -v '(unicodedata|time|cStringIO|_struct|binascii)'
+		) \
+		PTHON_DISABLE_SSL="1" \
+		SYSROOT= \
+		emake
+		# See comment in src_configure about these.
+		ln python ../${CHOST}/hostpython || die
+		ln Parser/pgen ../${CHOST}/Parser/hostpgen || die
+		ln -s ../${CBUILD}/build/lib.*/ ../${CHOST}/hostpythonpath || die
+	fi
+
+	cd "${WORKDIR}"/${CHOST}
+	emake CPPFLAGS="" CFLAGS="" LDFLAGS=""
+
+	# Work around bug 329499. See also bug 413751 and 457194.
+	if has_version dev-libs/libffi[pax_kernel]; then
+		pax-mark E python
+	else
+		pax-mark m python
+	fi
+}
+
+src_test() {
+	# Tests will not work when cross compiling.
+	if tc-is-cross-compiler; then
+		elog "Disabling tests due to crosscompiling."
+		return
+	fi
+
+	cd "${WORKDIR}"/${CHOST}
+
+	# Skip failing tests.
+	local skipped_tests="gdb"
+
+	for test in ${skipped_tests}; do
+		mv "${S}"/Lib/test/test_${test}.py "${T}"
+	done
+
+	# Rerun failed tests in verbose mode (regrtest -w).
+	PYTHONDONTWRITEBYTECODE="" emake test EXTRATESTOPTS="-w" CPPFLAGS="" CFLAGS="" LDFLAGS="" < /dev/tty
+	local result="$?"
+
+	for test in ${skipped_tests}; do
+		mv "${T}/test_${test}.py" "${S}"/Lib/test
+	done
+
+	elog "The following tests have been skipped:"
+	for test in ${skipped_tests}; do
+		elog "test_${test}.py"
+	done
+
+	elog "If you would like to run them, you may:"
+	elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
+	elog "and run the tests separately."
+
+	if [[ "${result}" -ne 0 ]]; then
+		die "emake test failed"
+	fi
+}
+
+src_install() {
+	local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
+
+	cd "${WORKDIR}"/${CHOST}
+	emake DESTDIR="${D}" altinstall
+
+	sed \
+		-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
+		-e "s/\(PY_LDFLAGS=\).*/\1/" \
+		-i "${libdir}/config-${SLOT}/Makefile" || die "sed failed"
+
+	# Backwards compat with Gentoo divergence.
+	dosym python${SLOT}-config /usr/bin/python-config-${SLOT}
+
+	# Fix collisions between different slots of Python.
+	rm "${ED}usr/$(get_libdir)/libpython3.so" || die
+
+	if use build; then
+		rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,sqlite3,test,tkinter}
+	else
+		use elibc_uclibc && rm -fr "${libdir}/test"
+		use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
+		use tk || rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
+	fi
+
+	use threads || rm -fr "${libdir}/multiprocessing"
+	use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
+
+	dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
+
+	if use examples; then
+		insinto /usr/share/doc/${PF}/examples
+		find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
+		doins -r "${S}"/Tools
+	fi
+	insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
+	local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
+		emake --no-print-directory -s -f - 2>/dev/null)
+	newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
+
+	newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
+	newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
+	sed \
+		-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
+		-e "s:@PYDOC@:pydoc${SLOT}:" \
+		-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
+
+	# for python-exec
+	python_export python${SLOT} EPYTHON PYTHON PYTHON_SITEDIR
+
+	# if not using a cross-compiler, use the fresh binary
+	if ! tc-is-cross-compiler; then
+		local PYTHON=./python \
+			LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
+		export LD_LIBRARY_PATH
+	fi
+
+	echo "EPYTHON='${EPYTHON}'" > epython.py
+	python_domodule epython.py
+}
+
+pkg_preinst() {
+	if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version ">=${CATEGORY}/${PN}-${SLOT}_alpha"; then
+		python_updater_warning="1"
+	fi
+}
+
+eselect_python_update() {
+	if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
+		eselect python update
+	fi
+
+	if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
+		eselect python update --python${PV%%.*}
+	fi
+}
+
+pkg_postinst() {
+	eselect_python_update
+
+	if [[ "${python_updater_warning}" == "1" ]]; then
+		ewarn "You have just upgraded from an older version of Python."
+		ewarn "You should switch active version of Python ${PV%%.*} and run"
+		ewarn "'python-updater [options]' to rebuild Python modules."
+	fi
+}
+
+pkg_postrm() {
+	eselect_python_update
+}

diff --git a/dev-lang/python/python-3.3.2-r99.ebuild b/dev-lang/python/python-3.3.2-r99.ebuild
new file mode 100644
index 0000000..b76b949
--- /dev/null
+++ b/dev-lang/python/python-3.3.2-r99.ebuild
@@ -0,0 +1,325 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.3.2-r2.ebuild,v 1.18 2014/01/05 17:48:59 ago Exp $
+
+EAPI="3"
+WANT_AUTOMAKE="none"
+WANT_LIBTOOL="none"
+
+inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
+
+MY_P="Python-${PV}"
+PATCHSET_REVISION="2"
+
+DESCRIPTION="An interpreted, interactive, object-oriented programming language"
+HOMEPAGE="http://www.python.org/"
+SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
+	mirror://gentoo/python-gentoo-patches-${PV}-${PATCHSET_REVISION}.tar.xz"
+
+LICENSE="PSF-2"
+SLOT="3.3"
+KEYWORDS="alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk wininst +xml"
+
+# Do not add a dependency on dev-lang/python to this ebuild.
+# If you need to apply a patch which requires python for bootstrapping, please
+# run the bootstrap code on your dev box and include the results in the
+# patchset. See bug 447752.
+
+RDEPEND="app-arch/bzip2
+	app-arch/xz-utils
+	>=sys-libs/zlib-1.1.3
+	virtual/libffi
+	virtual/libintl
+	!build? (
+		gdbm? ( sys-libs/gdbm[berkdb] )
+		ncurses? (
+			>=sys-libs/ncurses-5.2
+			readline? ( >=sys-libs/readline-4.1 )
+		)
+		sqlite? ( >=dev-db/sqlite-3.3.8:3 )
+		ssl? ( dev-libs/openssl )
+		tk? (
+			>=dev-lang/tk-8.0
+			dev-tcltk/blt
+		)
+		xml? ( >=dev-libs/expat-2.1 )
+	)
+	!!<sys-apps/sandbox-2.6-r1"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	>=sys-devel/autoconf-2.65
+	!sys-devel/gcc[libffi]"
+RDEPEND+=" !build? ( app-misc/mime-types )
+	doc? ( dev-python/python-docs:${SLOT} )"
+PDEPEND="app-admin/eselect-python
+	app-admin/python-updater"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+	# Ensure that internal copies of expat, libffi and zlib are not used.
+	rm -fr Modules/expat
+	rm -fr Modules/_ctypes/libffi*
+	rm -fr Modules/zlib
+
+	if tc-is-cross-compiler; then
+		# Invokes BUILDPYTHON, which is built for the host arch
+		local EPATCH_EXCLUDE="05_all_regenerate_platform-specific_modules.patch"
+	fi
+
+	EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}-${PATCHSET_REVISION}"
+
+	epatch "${FILESDIR}/python-3.3-CVE-2013-2099.patch"
+	epatch "${FILESDIR}/CVE-2013-4238_py33.patch"
+
+	# Fix for class with posix_close on musl
+	epatch "${FILESDIR}/python-3.3-fix-posix-close-clash.patch"
+
+	sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
+		Lib/distutils/command/install.py \
+		Lib/distutils/sysconfig.py \
+		Lib/site.py \
+		Lib/sysconfig.py \
+		Lib/test/test_site.py \
+		Makefile.pre.in \
+		Modules/Setup.dist \
+		Modules/getpath.c \
+		setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
+
+	# Disable ABI flags.
+	sed -e "s/ABIFLAGS=\"\${ABIFLAGS}.*\"/:/" -i configure.ac || die "sed failed"
+
+	epatch_user
+
+	eautoconf
+	eautoheader
+}
+
+src_configure() {
+	if use build; then
+		# Disable extraneous modules with extra dependencies.
+		export PYTHON_DISABLE_MODULES="gdbm _curses _curses_panel readline _sqlite3 _tkinter _elementtree pyexpat"
+		export PYTHON_DISABLE_SSL="1"
+	else
+		local disable
+		use gdbm     || disable+=" gdbm"
+		use ncurses  || disable+=" _curses _curses_panel"
+		use readline || disable+=" readline"
+		use sqlite   || disable+=" _sqlite3"
+		use ssl      || export PYTHON_DISABLE_SSL="1"
+		use tk       || disable+=" _tkinter"
+		use xml      || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
+		export PYTHON_DISABLE_MODULES="${disable}"
+
+		if ! use xml; then
+			ewarn "You have configured Python without XML support."
+			ewarn "This is NOT a recommended configuration as you"
+			ewarn "may face problems parsing any XML documents."
+		fi
+	fi
+
+	if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
+		einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
+	fi
+
+	if [[ "$(gcc-major-version)" -ge 4 ]]; then
+		append-flags -fwrapv
+	fi
+
+	filter-flags -malign-double
+
+	[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
+
+	# https://bugs.gentoo.org/show_bug.cgi?id=50309
+	if is-flagq -O3; then
+		is-flagq -fstack-protector-all && replace-flags -O3 -O2
+		use hardened && replace-flags -O3 -O2
+	fi
+
+	# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
+	tc-export CXX
+	# The configure script fails to use pkg-config correctly.
+	# http://bugs.python.org/issue15506
+	export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
+
+	# Set LDFLAGS so we link modules with -lpython3.2 correctly.
+	# Needed on FreeBSD unless Python 3.2 is already installed.
+	# Please query BSD team before removing this!
+	append-ldflags "-L."
+
+	local dbmliborder
+	if use gdbm; then
+		dbmliborder+="${dbmliborder:+:}gdbm"
+	fi
+
+	BUILD_DIR="${WORKDIR}/${CHOST}"
+	mkdir -p "${BUILD_DIR}" || die
+	cd "${BUILD_DIR}" || die
+
+	ECONF_SOURCE="${S}" OPT="" \
+	econf \
+		--with-fpectl \
+		--enable-shared \
+		$(use_enable ipv6) \
+		$(use_with threads) \
+		--infodir='${prefix}/share/info' \
+		--mandir='${prefix}/share/man' \
+		--with-computed-gotos \
+		--with-dbmliborder="${dbmliborder}" \
+		--with-libc="" \
+		--enable-loadable-sqlite-extensions \
+		--with-system-expat \
+		--with-system-ffi
+
+	if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
+		eerror "configure has detected that the sem_open function is broken."
+		eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
+		die "Broken sem_open function (bug 496328)"
+	fi
+}
+
+src_compile() {
+	# Avoid invoking pgen for cross-compiles.
+	touch Include/graminit.h Python/graminit.c || die
+
+	cd "${BUILD_DIR}" || die
+	emake CPPFLAGS="" CFLAGS="" LDFLAGS="" || die "emake failed"
+
+	# Work around bug 329499. See also bug 413751 and 457194.
+	if has_version dev-libs/libffi[pax_kernel]; then
+		pax-mark E python
+	else
+		pax-mark m python
+	fi
+}
+
+src_test() {
+	# Tests will not work when cross compiling.
+	if tc-is-cross-compiler; then
+		elog "Disabling tests due to crosscompiling."
+		return
+	fi
+
+	cd "${BUILD_DIR}" || die
+
+	# Skip failing tests.
+	local skipped_tests="gdb"
+
+	for test in ${skipped_tests}; do
+		mv "${S}"/Lib/test/test_${test}.py "${T}"
+	done
+
+	PYTHONDONTWRITEBYTECODE="" emake test EXTRATESTOPTS="-u -network" FLAGS="" CFLAGS="" LDFLAGS="" < /dev/tty
+	local result="$?"
+
+	for test in ${skipped_tests}; do
+		mv "${T}/test_${test}.py" "${S}"/Lib/test
+	done
+
+	elog "The following tests have been skipped:"
+	for test in ${skipped_tests}; do
+		elog "test_${test}.py"
+	done
+
+	elog "If you would like to run them, you may:"
+	elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
+	elog "and run the tests separately."
+
+	if [[ "${result}" -ne 0 ]]; then
+		die "emake test failed"
+	fi
+}
+
+src_install() {
+	local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
+
+	cd "${BUILD_DIR}" || die
+
+	emake DESTDIR="${D}" altinstall || die "emake altinstall failed"
+
+	sed \
+		-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
+		-e "s/\(PY_LDFLAGS=\).*/\1/" \
+		-i "${libdir}/config-${SLOT}/Makefile" || die "sed failed"
+
+	# Backwards compat with Gentoo divergence.
+	dosym python${SLOT}-config /usr/bin/python-config-${SLOT} || die
+
+	# Fix collisions between different slots of Python.
+	rm -f "${ED}usr/$(get_libdir)/libpython3.so"
+
+	if use build; then
+		rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,sqlite3,test,tkinter}
+	else
+		use elibc_uclibc && rm -fr "${libdir}/test"
+		use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
+		use tk || rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
+	fi
+
+	use threads || rm -fr "${libdir}/multiprocessing"
+	use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
+
+	dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS} || die "dodoc failed"
+
+	if use examples; then
+		insinto /usr/share/doc/${PF}/examples
+		find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
+		doins -r "${S}"/Tools || die "doins failed"
+	fi
+	insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
+	local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
+		emake --no-print-directory -s -f - 2>/dev/null)
+	newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
+
+	newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT} || die "newconfd failed"
+	newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT} || die "newinitd failed"
+	sed \
+		-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
+		-e "s:@PYDOC@:pydoc${SLOT}:" \
+		-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
+
+	# for python-exec
+	python_export python${SLOT} EPYTHON PYTHON PYTHON_SITEDIR
+
+	# if not using a cross-compiler, use the fresh binary
+	if ! tc-is-cross-compiler; then
+		local PYTHON=./python
+		local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
+	fi
+
+	echo "EPYTHON='${EPYTHON}'" > epython.py
+	python_domodule epython.py
+}
+
+pkg_preinst() {
+	if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version ">=${CATEGORY}/${PN}-${SLOT}_alpha"; then
+		python_updater_warning="1"
+	fi
+}
+
+eselect_python_update() {
+	if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
+		eselect python update
+	fi
+
+	if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
+		eselect python update --python${PV%%.*}
+	fi
+}
+
+pkg_postinst() {
+	eselect_python_update
+
+	if [[ "${python_updater_warning}" == "1" ]]; then
+		ewarn "You have just upgraded from an older version of Python."
+		ewarn
+		ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
+		ewarn
+		ewarn "For legacy packages, you should switch active version of Python and run 'python-updater [options]' to rebuild Python modules."
+	fi
+}
+
+pkg_postrm() {
+	eselect_python_update
+}


             reply	other threads:[~2014-01-18 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-18 14:32 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-03-04 14:23 [gentoo-commits] proj/hardened-dev:musl commit in: dev-lang/python/, dev-lang/python/files/ Anthony G. Basile
2014-03-04 14:23 Anthony G. Basile
2014-03-24 13:55 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1390055514.c06dbce6b20a745283590a9ace2c3ba180dd6ae3.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox