commit:     38d84cce8a1f286a43421f5ff7a2067ad95fcaa3
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 17 15:33:05 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Feb 17 21:08:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38d84cce

dev-lang/python:{2.7,3.4,3.5}: Move epatch_user call before sedding libdir. Bug 
#574962.

This allows sharing patches between different architectures where libdir differ.

Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-lang/python/python-2.7.11-r2.ebuild | 4 ++--
 dev-lang/python/python-3.4.3-r7.ebuild  | 4 ++--
 dev-lang/python/python-3.5.1-r2.ebuild  | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-lang/python/python-2.7.11-r2.ebuild 
b/dev-lang/python/python-2.7.11-r2.ebuild
index 6fcccce..d9fd3d6 100644
--- a/dev-lang/python/python-2.7.11-r2.ebuild
+++ b/dev-lang/python/python-2.7.11-r2.ebuild
@@ -104,6 +104,8 @@ src_prepare() {
        epatch "${FILESDIR}/python-2.7.10-cross-compile-warn-test.patch"
        epatch "${FILESDIR}/python-2.7.10-system-libffi.patch"
 
+       epatch_user
+
        sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
                Lib/distutils/command/install.py \
                Lib/distutils/sysconfig.py \
@@ -115,8 +117,6 @@ src_prepare() {
                Modules/getpath.c \
                setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
 
-       epatch_user
-
        eautoreconf
 }
 

diff --git a/dev-lang/python/python-3.4.3-r7.ebuild 
b/dev-lang/python/python-3.4.3-r7.ebuild
index f599fd9..8272a41 100644
--- a/dev-lang/python/python-3.4.3-r7.ebuild
+++ b/dev-lang/python/python-3.4.3-r7.ebuild
@@ -75,6 +75,8 @@ src_prepare() {
        epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
        epatch "${FILESDIR}/${PN}-3.4-gcc-5.patch" #547626
 
+       epatch_user
+
        sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
                Lib/distutils/command/install.py \
                Lib/distutils/sysconfig.py \
@@ -86,8 +88,6 @@ src_prepare() {
                Modules/getpath.c \
                setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
 
-       epatch_user
-
        eautoreconf
 }
 

diff --git a/dev-lang/python/python-3.5.1-r2.ebuild 
b/dev-lang/python/python-3.5.1-r2.ebuild
index 7f82e77..d73faa1 100644
--- a/dev-lang/python/python-3.5.1-r2.ebuild
+++ b/dev-lang/python/python-3.5.1-r2.ebuild
@@ -73,6 +73,8 @@ src_prepare() {
        epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
        epatch "${FILESDIR}/3.5-secondary-targets.patch"
 
+       epatch_user
+
        sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
                configure.ac \
                Lib/distutils/command/install.py \
@@ -87,8 +89,6 @@ src_prepare() {
 
        #sed -i -e 's/\$(GRAMMAR_H): \$(GRAMMAR_INPUT) \$(PGEN)/$(GRAMMAR_H): 
\$(GRAMMAR_INPUT)/' Makefile.pre.in || die
 
-       epatch_user
-
        eautoreconf
 }
 

Reply via email to