g-ir-scanner uses distutils functions. these are overridden by setuptools

if setuptools is present (see site-packages/distutils-precedence.pth);
enforce a dependency to avoid the case where setuptools might be removed
mid-run, causing g-ir-scanner to fail. ok aja@, who reported sporadic
build failures which must have been a result of this (I think it may
relate to runtime patching of distutils function relating to the MSVC
compiler).
This commit is contained in:
sthen 2022-12-18 10:30:46 +00:00
parent 96aa23805f
commit b3f70a291e
1 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@ COMMENT= GObject Introspection
GNOME_VERSION= 1.74.0
GNOME_PROJECT= gobject-introspection
REVISION= 0
REVISION= 1
CATEGORIES= devel
@ -31,6 +31,15 @@ RUN_DEPENDS= graphics/cairo \
textproc/py-markdown${MODPY_FLAVOR} \
www/py-mako${MODPY_FLAVOR}
# g-ir-scanner uses distutils functions. these are overridden by setuptools
# if setuptools is present (see site-packages/distutils-precedence.pth);
# enforce a dependency to avoid the case where setuptools might be removed
# mid-run, causing g-ir-scanner to fail.
#
# could be removed if/when gobject-introspection stops using distutils;
# see https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/395
RUN_DEPENDS+= devel/py-setuptools${MODPY_FLAVOR}
# XXX: tests/scanner/test_transformer.py fails otherwise
TEST_DEPENDS+= textproc/gsed