Different outputs for HarfBuzz-0.0.gir for Python 3.7.x and Python 3.8.x or later
Hi,
While trying to fix g-ir-scanner
for C++, I was noticing the following when building the introspection files for HarfBuzz-7.3.0 for Windows using Visual Studio:
- The generated
HarfBuzz-0.0.gir
differed between the one generated withg-ir-scanner
compiled against Python-3.7.x and Python-3.8.x (and later). For theg-ir-scanner
compiled against Python-3.7.x, I also got the same resultingHarfBuzz-0.0.gir
as if I was usingg-ir-scanner
compiled against Python-3.8.x or later if I did not invoke Meson with Python-3.7.x - As a consequence, I got the following unless I invoked a
g-ir-scanner
built against Python-3.7.x using Meson that is also invoked with Python-3.7.x:
"c:\python311.x64\scripts\meson" "--internal" "exe" "--unpickle" "C:\gnome.build.unstable\hb.b\meson-private\meson_exe_g-ir-compiler.exe_0f91ed8d640417ac4bea3301e5a9e73e98d1700d.dat"
while executing ['c:/software.b/hb.gir/x64/bin/g-ir-compiler.exe', 'src/HarfBuzz-0.0.gir', '--output', 'src/HarfBuzz-0.0.typelib', '--includedir=c:/software.b/hb.gir/x64/share/gir-1.0']
--- stdout ---
--- stderr ---
src/HarfBuzz-0.0.gir:124:37: error: Line 124, character 37: The attribute 'name' on the element 'type' must be specified
error parsing file src/HarfBuzz-0.0.gir: Line 124, character 37: The attribute 'name' on the element 'type' must be specified
I will post the different HarfBuzz-0.0.gir
's in a subsequent comment.
With blessings, thank you!