elementary / elementary/granite
granite should use native meson gir support
- Dominant language
- Vala
- Stars
- 329
- Forks
- 65
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 31
Description
### What Happened?
There is a build failure due to granite using a [custom `g-ir-compiler` target](https://github.com/elementary/granite/blob/7.2.0/lib/meson.build#L84-L103) rather than the [native meson gir support](https://mesonbuild.com/Gnome-module.html#gnomegenerate_gir). See discussion [here](https://lore.kernel.org/buildroot/CADvTj4q-qJ6EiYxOcNfgQRL1q7UPNp9SC7s_CwBVeCk=6PrMqw@mail.gmail.com/).
### Steps to Reproduce
granite is not using [meson's native gir support](https://mesonbuild.com/Gnome-module.html#gnomegenerate_gir)
### Expected Behavior
granite should use [meson's native gir support](https://mesonbuild.com/Gnome-module.html#gnomegenerate_gir) for improved cross compilation compatibility
### OS Version
Other Linux
### Software Version
Latest release (I have run all updates)
### Log Output
```shell
[51/275] Generating lib/Granite-1.0.typelib with a custom command
FAILED: lib/Granite-1.0.typelibi
/home/ymorin/dev/buildroot/O/master/per-package/granite/host/riscv32-buildroot-linux-gnu/sysroot/usr/bin/g-ir-compiler --shared-library libgranite.so.6.0.0 --output lib/Granite-1.0.typelib /home/ymorin/dev/buildroot/O/master/build/granite-6.0.0/build/lib/Granite-1.0.gir
Could not find GIR file 'GLib-2.0.gir'; check XDG_DATA_DIRS or use --includedir
error parsing file /home/ymorin/dev/buildroot/O/master/build/granite-6.0.0/build/lib/Granite-1.0.gir:
Failed to parse included gir GLib-2.0
If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the .mk file should help.
Typically like this: PKG_MAKE_ENV += GIR_EXTRA_LIBS_PATH="$(@D)/.libs"
ninja: build stopped: subcommand failed.
make[1]: *** [package/pkg-generic.mk:293: /home/ymorin/dev/buildroot/O/master/build/granite-6.0.0/.stamp_built] Error 1
```
Contributor guide
Assessment
This issue has not been assessed yet.