Meson build fails with meson >= 0.60
Entangle version: 3.0-1 libgphoto2 version: 2.5.28 (though not relevant) Camera model: not relevant
Description of problem:
When building entangle from source with meson, the step meson build-dir
fails with the error:
src/meson.build:42:5: ERROR: Function does not take positional arguments.
I'm trying to build meson on Arch Linux via the AUR package. I'm using meson 0.61.0.
This error appears, because the i18n modules merge_file dropped support for positional arguments in this commit, which is part of meson 0.60.0 and subsequent releases.
To fix this issue, the calls to i18n.merge_file
in src/meson.build, to not use positional arguments. So basically the lines 43 and 63 need to be using the data_dirs
-keyword.
Since according to the documentation of the i18n-module this keyword exists since meson 0.41.0, which is below the minimum meson 0.49.0 this change shouldn't break any other builds.
I'll be creating a MR with these changes.