meson 0.60.0 error with positional arguments
Hi,
When trying to build gnome-screenshot with Meson 0.60.0, I get the following error:
The Meson build system
Version: 0.60.0
Source dir: /tmp/guix-build-gnome-screenshot-41.0.drv-0/source
Build dir: /tmp/guix-build-gnome-screenshot-41.0.drv-0/build
Build type: native build
Project name: gnome-screenshot
Project version: 41.0
C compiler for the host machine: gcc (gcc 10.3.0 "gcc (GCC) 10.3.0")
C linker for the host machine: gcc ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Library m found: YES
Found pkg-config: /gnu/store/wc7lqi6kgki5qzr01g3gvriwdadjiwpc-pkg-config-0.29.2/bin/pkg-config (0.29.2)
Run-time dependency x11 found: YES 1.7.2
Run-time dependency xext found: YES 1.3.4
Run-time dependency glib-2.0 found: YES 2.70.0
Run-time dependency gtk+-3.0 found: YES 3.24.30
Run-time dependency libhandy-1 found: YES 1.2.3
Has header "X11/extensions/shape.h" : YES
Configuring config.h using configuration
../source/data/meson.build:3:0: ERROR: Function does not take positional arguments.
A full log can be found at /tmp/guix-build-gnome-screenshot-41.0.drv-0/build/meson-logs/meson-log.txt
error: in phase 'configure': uncaught exception:
%exception #<&invoke-error program: "meson" arguments: ("--prefix=/gnu/store/walp7lwvisl034011afx96x016ls902p-gnome-screenshot-41.0" "--buildtype=debugoptimized" "-Dc_link_args=-Wl,-rpath=/gnu/store/walp7lwvisl034011afx96x016ls902p-gnome-screenshot-41.0/lib" "-Dcpp_link_args=-Wl,-rpath=/gnu/store/walp7lwvisl034011afx96x016ls902p-gnome-screenshot-41.0/lib" "/tmp/guix-build-gnome-screenshot-41.0.drv-0/source") exit-status: 1 term-signal: #f stop-signal: #f>
I tried with the 40.0 and 41.0 releases as well as the latest at the time commit ea4c3e0c.
I believe Meson issue 9411 describes what needs to be updated to meet Mesons expectations.
Thanks!