FS#60529 - [vala] enchant/enchant-2 potential issue causing builds to fail

Attached to Project: Arch Linux
Opened by Joe Groocock (frebib) - Monday, 22 October 2018, 12:46 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 14 October 2021, 21:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Whilst attempting to build Geary from source using meson (https://gitlab.gnome.org/GNOME/geary.git)
I had to change `dependency('enchant', ..` to `dependency('enchant-2', ..` in the `build.meson` file. Following that change I ended up with the following error:

error: Package `enchant-2' not found in specified Vala API directories or GObject-Introspection GIR directories

I figured that because `enchant` is actually named `enchant-2` I should also copy/move the respective vapi source file which seems to fix this build.
I'm not familiar with Vala or the meson build system but this seems logical to me. Now the main question is whether it is Geary at fault or the Arch package.

TLDR;
Moving `usr/share/vala-0.42/vapi/enchant.vapi` to `usr/share/vala-0.42/vapi/enchant-2.vapi` seems to allow Geary (and probably other Vala packages using libenchant-2) to build correctly.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 14 October 2021, 21:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  2021-09-18: A task closure has been requested. Reason for request: I cannot reproduce the issue. Geary builds fine.

Loading...