Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/
Date: Wed, 17 Feb 2016 21:08:33
Message-Id: 1455743287.38d84cce8a1f286a43421f5ff7a2067ad95fcaa3.aballier@gentoo
1 commit: 38d84cce8a1f286a43421f5ff7a2067ad95fcaa3
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 17 15:33:05 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 17 21:08:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38d84cce
7
8 dev-lang/python:{2.7,3.4,3.5}: Move epatch_user call before sedding libdir. Bug #574962.
9
10 This allows sharing patches between different architectures where libdir differ.
11
12 Package-Manager: portage-2.2.27
13 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
14
15 dev-lang/python/python-2.7.11-r2.ebuild | 4 ++--
16 dev-lang/python/python-3.4.3-r7.ebuild | 4 ++--
17 dev-lang/python/python-3.5.1-r2.ebuild | 4 ++--
18 3 files changed, 6 insertions(+), 6 deletions(-)
19
20 diff --git a/dev-lang/python/python-2.7.11-r2.ebuild b/dev-lang/python/python-2.7.11-r2.ebuild
21 index 6fcccce..d9fd3d6 100644
22 --- a/dev-lang/python/python-2.7.11-r2.ebuild
23 +++ b/dev-lang/python/python-2.7.11-r2.ebuild
24 @@ -104,6 +104,8 @@ src_prepare() {
25 epatch "${FILESDIR}/python-2.7.10-cross-compile-warn-test.patch"
26 epatch "${FILESDIR}/python-2.7.10-system-libffi.patch"
27
28 + epatch_user
29 +
30 sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
31 Lib/distutils/command/install.py \
32 Lib/distutils/sysconfig.py \
33 @@ -115,8 +117,6 @@ src_prepare() {
34 Modules/getpath.c \
35 setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
36
37 - epatch_user
38 -
39 eautoreconf
40 }
41
42
43 diff --git a/dev-lang/python/python-3.4.3-r7.ebuild b/dev-lang/python/python-3.4.3-r7.ebuild
44 index f599fd9..8272a41 100644
45 --- a/dev-lang/python/python-3.4.3-r7.ebuild
46 +++ b/dev-lang/python/python-3.4.3-r7.ebuild
47 @@ -75,6 +75,8 @@ src_prepare() {
48 epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
49 epatch "${FILESDIR}/${PN}-3.4-gcc-5.patch" #547626
50
51 + epatch_user
52 +
53 sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
54 Lib/distutils/command/install.py \
55 Lib/distutils/sysconfig.py \
56 @@ -86,8 +88,6 @@ src_prepare() {
57 Modules/getpath.c \
58 setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
59
60 - epatch_user
61 -
62 eautoreconf
63 }
64
65
66 diff --git a/dev-lang/python/python-3.5.1-r2.ebuild b/dev-lang/python/python-3.5.1-r2.ebuild
67 index 7f82e77..d73faa1 100644
68 --- a/dev-lang/python/python-3.5.1-r2.ebuild
69 +++ b/dev-lang/python/python-3.5.1-r2.ebuild
70 @@ -73,6 +73,8 @@ src_prepare() {
71 epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
72 epatch "${FILESDIR}/3.5-secondary-targets.patch"
73
74 + epatch_user
75 +
76 sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
77 configure.ac \
78 Lib/distutils/command/install.py \
79 @@ -87,8 +89,6 @@ src_prepare() {
80
81 #sed -i -e 's/\$(GRAMMAR_H): \$(GRAMMAR_INPUT) \$(PGEN)/$(GRAMMAR_H): \$(GRAMMAR_INPUT)/' Makefile.pre.in || die
82
83 - epatch_user
84 -
85 eautoreconf
86 }