summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-03 02:49:49 +0100
committerSam James <sam@gentoo.org>2022-08-03 02:53:01 +0100
commitbfeb100e92991a4df927215b4f32d8908c081797 (patch)
treedb34a3314547cd5b8d11b5076372db7f73e41da9 /metadata/install-qa-check.d
parentapp-admin/puppet: 7.18.0 bump (diff)
downloadgentoo-bfeb100e92991a4df927215b4f32d8908c081797.tar.gz
gentoo-bfeb100e92991a4df927215b4f32d8908c081797.tar.bz2
gentoo-bfeb100e92991a4df927215b4f32d8908c081797.zip
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 <sam@gentoo.org>
Diffstat (limited to 'metadata/install-qa-check.d')
-rw-r--r--metadata/install-qa-check.d/60python-pyc5
1 files changed, 5 insertions, 0 deletions
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##*/}