Subject: dia: Fails to build (error in Meson build file)

From: Ivan Vilata i Balaguer <[email-masked]>
Date: Tue, 11 Jan 2022 09:38:28 +0100

Hi!  When trying to upgrade package `dia 0.97.3-2.3cf7ec4` from Guix commit
`404f6953` to that of commit `4a943cfd`, the build fails with this error:

```
[…]
phase `patch-source-shebangs' succeeded after 0.4 seconds
starting phase `configure'
The Meson build system
Version: 0.60.0
Source dir: /tmp/guix-build-dia-0.97.3-2.3cf7ec4.drv-0/source
Build dir: /tmp/guix-build-dia-0.97.3-2.3cf7ec4.drv-0/build
Build type: native build
Project name: dia
Project version: 0.97.3
[…]
Message: wpg_filter
Message: xfig_filter

../source/sheets/meson.build:47:4: ERROR: Function does not take positional arguments.

A full log can be found at /tmp/guix-build-dia-0.97.3-2.3cf7ec4.drv-0/build/meson-logs/meson-log.txt
error: in phase 'configure': uncaught exception:
%exception #<&invoke-error program: "meson" arguments: ("--prefix=/gnu/store/ijl7m0cn5xq2sh7n5507j23syrn9sb2x-dia-0.97.3-2.3cf7ec4" "--buildtype=debugoptimized" "-Dc_link_args=-Wl,-rpath=/gnu/store/ijl7m0cn5xq2sh7n5507j23syrn9sb2x-dia-0.97.3-2.3cf7ec4/lib" "-Dcpp_link_args=-Wl,-rpath=/gnu/store/ijl7m0cn5xq2sh7n5507j23syrn9sb2x-dia-0.97.3-2.3cf7ec4/lib" "/tmp/guix-build-dia-0.97.3-2.3cf7ec4.drv-0/source") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `configure' failed after 2.8 seconds
command "meson" "--prefix=/gnu/store/ijl7m0cn5xq2sh7n5507j23syrn9sb2x-dia-0.97.3-2.3cf7ec4" "--buildtype=debugoptimized" "-Dc_link_args=-Wl,-rpath=/gnu/store/ijl7m0cn5xq2sh7n5507j23syrn9sb2x-dia-0.97.3-2.3cf7ec4/lib" "-Dcpp_link_args=-Wl,-rpath=/gnu/store/ijl7m0cn5xq2sh7n5507j23syrn9sb2x-dia-0.97.3-2.3cf7ec4/lib" "/tmp/guix-build-dia-0.97.3-2.3cf7ec4.drv-0/source" failed with status 1
```

Attaching the whole `/var/log/guix/drvs/yh/2fn9w8pmxw5q0bfcs20hhihpp5w6c6-dia-0.97.3-2.3cf7ec4.drv.bz2`.

Thanks, and a happy new year! `:)`

-- 
Ivan Vilata i Balaguer -- https://elvil.net/