Sam James affeb84863 dev-libs/glib: check that non-bootstrap gobject-introspection works
Right now, we don't depend on dev-libs/gobject-introspection to avoid
the circular dependency and we do a has_version check to see if we need
to bootstrap it if it isn't installed.

On the binhost, we had a failure like:
```
FAILED: girepository/introspection/GLib-2.0.gir
[...]
Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 99, in <module>
    from giscanner.utils import dll_dirs
  File "/usr/lib64/gobject-introspection/giscanner/utils.py", line 385, in <module>
    import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'
[...]
ninja: build stopped: subcommand failed.
 * ERROR: dev-libs/glib-2.82.5::gentoo failed (compile phase):
```

That's because we automagically used the installed gobject-introspection's
g-ir-scanner which doesn't yet have *its* setuptools dependency satisfied
(or hasn't been rebuilt for the same Python impl that setuptools has been)
but Portage doesn't know that dev-libs/glib uses gobject-introspection, so
it doesn't see the need to rebuild it yet.

Workaround this (fix it, really) by checking `g-ir-scanner --version` doesn't
crash. This may end up fixing bug #951487 too (which is a separate problem).

(If it doesn't fix bug #951487, we can go further and do a has_version vs
--version check here, just care will be needed to sanitise the --version
output before passing it into has_version. Or perhaps best_version and
a glob would work better.)

Bug: https://bugs.gentoo.org/951487
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-03 07:03:56 +01:00
2025-05-03 01:20:27 +01:00
2025-05-01 20:40:24 +02:00
2025-05-01 13:35:56 +02:00
2025-05-02 00:12:09 +02:00
2025-04-27 06:49:31 -04:00
2025-05-03 07:42:33 +02:00
2025-04-27 06:49:35 -04:00
2025-05-02 12:29:02 +02:00
2025-04-25 00:33:11 +03:00
2025-05-01 22:28:16 +02:00
2025-04-13 09:11:19 +02:00
2025-05-02 06:45:09 +01:00
2025-04-15 12:26:58 -04:00
2025-05-02 22:33:20 +01:00
2025-05-01 18:56:27 +02:00
2025-05-03 05:58:14 +01:00
2025-05-03 08:34:40 +03:00
2025-04-29 22:41:44 +01:00
2025-05-02 00:38:16 +02:00
2025-05-02 13:33:05 -04:00
2025-05-02 11:34:07 +00:00
2025-05-01 23:47:27 +01:00
2025-05-02 13:33:05 -04:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%