diff options
| author | Simon McVittie <smcv@debian.org> | 2025-09-28 14:27:52 +0100 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-09-29 05:48:23 -0400 |
| commit | 62a5e3a82a617da2bfdf82664db7074f0dcc9d5a (patch) | |
| tree | 254291f669fd96cfdb880339fb3d99b38ccaed9b /unittests/internaltests.py | |
| parent | cab3b67cfe04d0e06d4e7c2f50fb4f99cd0dd7eb (diff) | |
| download | meson-62a5e3a82a617da2bfdf82664db7074f0dcc9d5a.tar.gz | |
env2mfile: Use a cross vapigen on Debian if available
As with many compilers and other tools relevant to cross-compiling,
an executable prefixed with the host architecture's GNU architecture
tuple might or might not exist, but if it does exist, we can be quite
confident that it's the appropriate executable to use for that host
architecture.
Vala's vapigen tool reads GIR XML files that can vary between
architectures (for example GLib-2.0.gir and GstAudio-1.0.gir contain
constants that take architecture-specific values), so on Debian it
needs to search an architecture-specific location. Accordingly, the
valac (>= 0.56.18-3) package provides a `${DEB_HOST_GNU_TYPE}-vapigen`
script which wraps the vapigen binary and sets appropriate search paths.
Bug-Debian: https://bugs.debian.org/1116552
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'unittests/internaltests.py')
| -rw-r--r-- | unittests/internaltests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/internaltests.py b/unittests/internaltests.py index e8742eb2e..dfa797dc7 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -1782,6 +1782,7 @@ class InternalTests(unittest.TestCase): 'g-ir-generate': [f'/usr/bin/{gnu_tuple}-g-ir-generate'], 'g-ir-inspect': [f'/usr/bin/{gnu_tuple}-g-ir-inspect'], 'g-ir-scanner': [f'/usr/bin/{gnu_tuple}-g-ir-scanner'], + 'vapigen': [f'/usr/bin/{gnu_tuple}-vapigen'], } for title, dpkg_arch, gccsuffix, env, expected in [ |
