mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
1fdbc06385
Various parts of the build (such as `objectmanager-rst-gen`) depend on running `gdbus-codegen` after it’s been built, but they currently only encode a dependency to the main codegen Python file and not the supporting files. This can cause `gdbus-codegen` to fail with an `ImportError` if the build races so that `objectmanager-rst-gen` is built before the codegen supporting files. Example failure here: https://gitlab.gnome.org/pwithnall/glib/-/jobs/3266471 ``` FAILED: gio/tests/gdbus-object-manager-example/objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Animal.rst gio/tests/gdbus-object-manager-example/objectmanager-rst-gen-org.gtk.GDBus.Example.ObjectManager.Cat.rst /usr/bin/python3 gio/gdbus-2.0/codegen/gdbus-codegen --interface-prefix org.gtk.GDBus.Example.ObjectManager. --generate-rst objectmanager-rst-gen --output-directory gio/tests/gdbus-object-manager-example ../gio/tests/gdbus-object-manager-example/gdbus-example-objectmanager.xml Traceback (most recent call last): File "/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/gdbus-codegen", line 53, in <module> from codegen import codegen_main File "/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/codegen_main.py", line 29, in <module> from . import dbustypes File "/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/dbustypes.py", line 22, in <module> from . import utils ImportError: cannot import name 'utils' from 'codegen' (/builds/pwithnall/glib/_build/gio/gdbus-2.0/codegen/__init__.py) ``` Signed-off-by: Philip Withnall <philip@tecnocode.co.uk> |
||
---|---|---|
.. | ||
gdbus-example-objectmanager.xml | ||
meson.build |