commit:     6eeb1f7c106f6c39fefee7216a908d37ea9e4336
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 14 06:34:59 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Sep 14 08:59:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eeb1f7c

dev-python/pypy: Add a subslot check

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pypy/pypy-7.3.6_rc1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dev-python/pypy/pypy-7.3.6_rc1.ebuild 
b/dev-python/pypy/pypy-7.3.6_rc1.ebuild
index d4372953f88..c4b76dcdef0 100644
--- a/dev-python/pypy/pypy-7.3.6_rc1.ebuild
+++ b/dev-python/pypy/pypy-7.3.6_rc1.ebuild
@@ -56,6 +56,10 @@ src_compile() {
        mv pypy/module/cpyext/parse/*.h include/ || die
        pax-mark m pypy-c
 
+       # verify the subslot
+       local soabi=$(./pypy-c -c 'import sysconfig; print 
sysconfig.get_config_var("SOABI")')
+       [[ ${soabi#pypy-} == ${SLOT#*/} ]] || die "update subslot to ${soabi}"
+
        einfo "Generating caches and CFFI modules ..."
 
        # Generate Grammar and PatternGrammar pickles.

Reply via email to