1 |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=555594 |
2 |
--- |
3 |
eclass/python-utils-r1.eclass | 7 +++++-- |
4 |
1 file changed, 5 insertions(+), 2 deletions(-) |
5 |
|
6 |
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
7 |
index c1c5ea6..69d3262 100644 |
8 |
--- a/eclass/python-utils-r1.eclass |
9 |
+++ b/eclass/python-utils-r1.eclass |
10 |
@@ -873,7 +873,10 @@ python_wrapper_setup() { |
11 |
#!/bin/sh |
12 |
exec "${PYTHON}-config" "\${@}" |
13 |
_EOF_ |
14 |
- chmod +x "${workdir}/bin/python-config" || die |
15 |
+ cp "${workdir}/bin/python-config" \ |
16 |
+ "${workdir}/bin/python${pyver}-config" || die |
17 |
+ chmod +x "${workdir}/bin/python-config" \ |
18 |
+ "${workdir}/bin/python${pyver}-config" || die |
19 |
|
20 |
# Python 2.6+. |
21 |
ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die |
22 |
@@ -883,7 +886,7 @@ python_wrapper_setup() { |
23 |
"${workdir}"/pkgconfig/python.pc || die |
24 |
ln -s python.pc "${workdir}"/pkgconfig/python${pyver}.pc || die |
25 |
else |
26 |
- nonsupp+=( 2to3 python-config ) |
27 |
+ nonsupp+=( 2to3 python-config "python${pyver}-config" ) |
28 |
fi |
29 |
|
30 |
local x |
31 |
-- |
32 |
2.4.6 |