1 |
Closes: https://bugs.gentoo.org/712526 |
2 |
Signed-off-by: Michał Górny <mgorny@g.o> |
3 |
--- |
4 |
eclass/python-utils-r1.eclass | 8 +++++++- |
5 |
1 file changed, 7 insertions(+), 1 deletion(-) |
6 |
|
7 |
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass |
8 |
index 28314d5135d0..f144cbbb1279 100644 |
9 |
--- a/eclass/python-utils-r1.eclass |
10 |
+++ b/eclass/python-utils-r1.eclass |
11 |
@@ -978,7 +978,7 @@ python_wrapper_setup() { |
12 |
# Clean up, in case we were supposed to do a cheap update. |
13 |
rm -f "${workdir}"/bin/python{,2,3}{,-config} || die |
14 |
rm -f "${workdir}"/bin/2to3 || die |
15 |
- rm -f "${workdir}"/pkgconfig/python{2,3}.pc || die |
16 |
+ rm -f "${workdir}"/pkgconfig/python{2,3}{,-embed}.pc || die |
17 |
|
18 |
local EPYTHON PYTHON |
19 |
python_export "${impl}" EPYTHON PYTHON |
20 |
@@ -1022,6 +1022,12 @@ python_wrapper_setup() { |
21 |
# Python 2.7+. |
22 |
ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}.pc \ |
23 |
"${workdir}"/pkgconfig/python${pyver}.pc || die |
24 |
+ |
25 |
+ # Python 3.8+. |
26 |
+ if [[ ${EPYTHON} != python[23].[67] ]]; then |
27 |
+ ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}-embed.pc \ |
28 |
+ "${workdir}"/pkgconfig/python${pyver}-embed.pc || die |
29 |
+ fi |
30 |
else |
31 |
nonsupp+=( 2to3 python-config "python${pyver}-config" ) |
32 |
fi |
33 |
-- |
34 |
2.25.1 |