From 16449a80e28af2209916cc66d19c9a44ca2b90d9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 20 Feb 2019 15:11:50 +0000 Subject: gentoo resync : 20.02.2019 --- eclass/distutils-r1.eclass | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'eclass/distutils-r1.eclass') diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index fa7a3ab5c12b..66920d1f7553 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -597,7 +597,16 @@ distutils-r1_python_install() { die "Package installs '${p}' package which is forbidden and likely a bug in the build system." fi done - if [[ -d ${root}/usr/$(get_libdir)/pypy/share ]]; then + + local shopt_save=$(shopt -p nullglob) + shopt -s nullglob + local pypy_dirs=( + "${root}/usr/$(get_libdir)"/pypy*/share + "${root}/usr/lib"/pypy*/share + ) + ${shopt_save} + + if [[ -n ${pypy_dirs} ]]; then local cmd=die [[ ${EAPI} == [45] ]] && cmd=eqawarn "${cmd}" "Package installs 'share' in PyPy prefix, see bug #465546." -- cgit v1.2.3