From bfeb100e92991a4df927215b4f32d8908c081797 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 3 Aug 2022 02:49:49 +0100 Subject: metadata/install-qa-check.d: skip 60python-pc if gpep517 too old When building libseccomp, say: ``` * Verifying compiled files for python3.9 usage: /usr/lib/python-exec/python3.9/gpep517 [-h] {get-backend,build-wheel,install-wheel} ... /usr/lib/python-exec/python3.9/gpep517: error: argument command: invalid choice: 'verify-pyc' (choose from 'get-backend', 'build-wheel', 'install-wheel') strip: i686-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version ``` The gpep517 >= dep is in distutils-r1 but this check applies to other ebuilds. So, use has_version -b. Signed-off-by: Sam James --- metadata/install-qa-check.d/60python-pyc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'metadata') diff --git a/metadata/install-qa-check.d/60python-pyc b/metadata/install-qa-check.d/60python-pyc index fd9434994f2f..37b0acaf7e0a 100644 --- a/metadata/install-qa-check.d/60python-pyc +++ b/metadata/install-qa-check.d/60python-pyc @@ -16,6 +16,11 @@ python_pyc_check() { local missing=() local stray=() + # Avoid running the check if sufficiently new gpep517 is not installed + # yet. It's valid to schedule (for merge order) >=gpep517-8 after + # packages which have this check run if they don't use distutils-r1. + has_version -b ">=dev-python/gpep517-8" || return + for prog in "${progs[@]}"; do local impl=${prog%/*} impl=${impl##*/} -- cgit v1.2.3-65-gdbad