diff options
author | 2010-03-20 20:33:28 +0000 | |
---|---|---|
committer | 2010-03-20 20:33:28 +0000 | |
commit | 6827dd1a21d471bd4368ca15e5cac9c5565c9409 (patch) | |
tree | c9f164dab764603b3cb9a4a3156432685c4df88b /dev-lang/python/python-2.6.4-r1.ebuild | |
parent | Version bump, bug 304025. Updated usage of python eclass and also dep on >=py... (diff) | |
download | gentoo-2-6827dd1a21d471bd4368ca15e5cac9c5565c9409.tar.gz gentoo-2-6827dd1a21d471bd4368ca15e5cac9c5565c9409.tar.bz2 gentoo-2-6827dd1a21d471bd4368ca15e5cac9c5565c9409.zip |
Use -fwrapv (bug #297276). Install email module with USE="build".
(Portage version: 15835-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/python/python-2.6.4-r1.ebuild')
-rw-r--r-- | dev-lang/python/python-2.6.4-r1.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-lang/python/python-2.6.4-r1.ebuild b/dev-lang/python/python-2.6.4-r1.ebuild index a9ec0c6f6efa..d35cabea53b1 100644 --- a/dev-lang/python/python-2.6.4-r1.ebuild +++ b/dev-lang/python/python-2.6.4-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.4-r1.ebuild,v 1.8 2010/03/10 10:09:02 josejx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.4-r1.ebuild,v 1.9 2010/03/20 20:33:28 arfrever Exp $ EAPI="2" @@ -136,6 +136,10 @@ src_configure() { einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" fi + if [[ "$(gcc-major-version)" -ge 4 ]]; then + append-flags -fwrapv + fi + export OPT="${CFLAGS}" filter-flags -malign-double @@ -239,7 +243,7 @@ src_install() { sed -e "s:^OPT=.*:OPT=\t\t-DNDEBUG:" -i "${D}$(python_get_libdir)/config/Makefile" if use build; then - rm -fr "${D}usr/bin/idle${SLOT}" "${D}$(python_get_libdir)/"{bsddb,email,idlelib,lib-tk,sqlite3,test} + rm -fr "${D}usr/bin/idle${SLOT}" "${D}$(python_get_libdir)/"{bsddb,idlelib,lib-tk,sqlite3,test} else use elibc_uclibc && rm -fr "${D}$(python_get_libdir)/"{bsddb/test,test} use berkdb || rm -fr "${D}$(python_get_libdir)/"{bsddb,test/test_bsddb*} |