commit: bfeb100e92991a4df927215b4f32d8908c081797
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 3 01:49:49 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 3 01:53:01 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfeb100e
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 <AT> gentoo.org>
metadata/install-qa-check.d/60python-pyc | 5 +++++
1 file changed, 5 insertions(+)
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##*/}