meson-build: Specify wayland-scanner as a native dependency
wayland-scanner is supposed to be run natively on the build machine.
Similar to: https://github.com/xkbcommon/libxkbcommon/pull/90
Before the change:
The Meson build system
Version: 1.6.1
Source dir: /build/source
Build dir: /build/source/build
Build type: cross build
Project name: libxfce4windowing
Project version: 4.20.2
C compiler for the host machine: aarch64-unknown-linux-gnu-gcc (gcc 14.2.1 "aarch64-unknown-linux-gnu-gcc (GCC) 14.2.1 20241116")
C linker for the host machine: aarch64-unknown-linux-gnu-gcc ld.bfd 2.43.1
Compiler for language c for the build machine not found.
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
Found pkg-config: YES (/nix/store/kk9yavbdaf0jxqcmf45f7wwsqsn5mz75-aarch64-unknown-linux-gnu-pkg-config-wrapper-0.29.2/bin/aarch64-unknown-linux-gnu-pkg-config) 0.29.2
Run-time dependency glib-2.0 found: YES 2.82.4
Run-time dependency gobject-introspection-1.0 found: YES 1.82.0
Run-time dependency gobject-2.0 found: YES 2.82.4
Run-time dependency gio-unix-2.0 found: YES 2.82.4
Run-time dependency gdk-3.0 found: YES 3.24.43
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.12
Run-time dependency gtk+-3.0 found: YES 3.24.43
Program python3 found: YES
Program xdt-gen-visibility found: YES (/nix/store/vj34lq2xvfa4vf6nfxxn1i49lqc48nj2-xfce4-dev-tools-4.20.0/bin/xdt-gen-visibility)
Run-time dependency libdisplay-info found: YES 0.2.0
Run-time dependency x11 found: YES 1.8.10
Run-time dependency gdk-x11-3.0 found: YES 3.24.43
Run-time dependency libwnck-3.0 found: YES 43.2
Run-time dependency xrandr found: YES 1.5.4
Run-time dependency gdk-wayland-3.0 found: YES 3.24.43
Run-time dependency wayland-client found: YES 1.23.1
Run-time dependency wayland-scanner found: YES 1.23.1
Run-time dependency wayland-protocols found: YES 1.39
Run-time dependency wlr-protocols found: YES 1.0
Program /nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner found: YES (/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner)
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wredundant-decls: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wformat: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wformat-y2k: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-declaration-after-statement: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Wno-error=deprecated-declarations: YES
Found pkg-config: YES (/nix/store/q5h7fl6q9rza6q300nnpmf5fgg6c73a6-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Build-time dependency glib-2.0 found: YES 2.82.4
Program /nix/store/jbhdy65rbla5zrkh5rmrsqnrbb5rczzr-glib-2.82.4-dev/bin/glib-genmarshal found: YES (/nix/store/jbhdy65rbla5zrkh5rmrsqnrbb5rczzr-glib-2.82.4-dev/bin/glib-genmarshal)
Configuring libxfce4windowing-config.h using configuration
Dependency gobject-introspection-1.0 found: YES 1.82.0 (cached)
Build-time dependency gobject-introspection-1.0 found: YES 1.82.0
Program /nix/store/gr4xcydb7s3g5g0kp33axcjivv56ph5k-gobject-introspection-wrapped-1.82.0-dev/bin/g-ir-scanner found: YES (/nix/store/gr4xcydb7s3g5g0kp33axcjivv56ph5k-gobject-introspection-wrapped-1.82.0-dev/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.82.0 (cached)
Program /nix/store/gr4xcydb7s3g5g0kp33axcjivv56ph5k-gobject-introspection-wrapped-1.82.0-dev/bin/g-ir-compiler found: YES (/nix/store/gr4xcydb7s3g5g0kp33axcjivv56ph5k-gobject-introspection-wrapped-1.82.0-dev/bin/g-ir-compiler)
Configuring libxfce4windowingui-config.h using configuration
Program msgfmt found: YES (/nix/store/m4454h58k2jyrpz9r96zby1aid2fv9qd-gettext-0.22.5/bin/msgfmt)
Program msginit found: YES (/nix/store/m4454h58k2jyrpz9r96zby1aid2fv9qd-gettext-0.22.5/bin/msginit)
Program msgmerge found: YES (/nix/store/m4454h58k2jyrpz9r96zby1aid2fv9qd-gettext-0.22.5/bin/msgmerge)
Program xgettext found: YES (/nix/store/m4454h58k2jyrpz9r96zby1aid2fv9qd-gettext-0.22.5/bin/xgettext)
Build targets in project: 67
libxfce4windowing 4.20.2
User defined options
Cross files : /nix/store/iv4iygkdy52b8vawy0b5aqxi7lpk7afy-cross-file.conf
auto_features: enabled
bindir : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2/bin
buildtype : plain
includedir : /nix/store/9ra2v09klympqqsi1skqqjs5hmw7yjyc-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2-dev/include
infodir : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2/share/info
libdir : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2/lib
libexecdir : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2/libexec
localedir : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2/share/locale
mandir : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2/share/man
prefix : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2
sbindir : /nix/store/7lcvh57bg49h2hahi5dcrjh0x0mahjd6-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2/sbin
wrap_mode : nodownload
Found ninja-1.12.1 at /nix/store/sqzac7j4cazddikz1nqb7y7q9v9vcwg0-ninja-1.12.1/bin/ninja
Running phase: buildPhase
build flags: -j24
[1/106] Building translation po/ast/LC_MESSAGES/libxfce4windowing-ast.mo
[2/106] Building translation po/bg/LC_MESSAGES/libxfce4windowing-bg.mo
[3/106] Building translation po/ca/LC_MESSAGES/libxfce4windowing-ca.mo
[4/106] Generating protocols/ext-workspace-v1-client-header with a custom command
FAILED: protocols/ext-workspace-v1-client.h
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner client-header ../protocols/ext-workspace-v1.xml protocols/ext-workspace-v1-client.h
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner: line 5: syntax error: unterminated quoted string
[5/106] Generating protocols/ext-workspace-v1-private-code with a custom command
FAILED: protocols/ext-workspace-v1.c
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner private-code ../protocols/ext-workspace-v1.xml protocols/ext-workspace-v1.c
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner: line 5: syntax error: unterminated quoted string
[6/106] Generating protocols/wlr-foreign-toplevel-management-unstable-v1-client-header with a custom command
FAILED: protocols/wlr-foreign-toplevel-management-unstable-v1-client.h
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner client-header /nix/store/77gcnfflqjzcl550cmxx1mr21wdaqa0s-wlr-protocols-aarch64-unknown-linux-gnu-unstable-2022-09-05/share/wlr-protocols/unstable/wlr-foreign-toplevel-management-unstable-v1.xml protocols/wlr-foreign-toplevel-management-unstable-v1-client.h
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner: line 5: syntax error: unterminated quoted string
[7/106] Generating protocols/wlr-foreign-toplevel-management-unstable-v1-private-code with a custom command
FAILED: protocols/wlr-foreign-toplevel-management-unstable-v1.c
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner private-code /nix/store/77gcnfflqjzcl550cmxx1mr21wdaqa0s-wlr-protocols-aarch64-unknown-linux-gnu-unstable-2022-09-05/share/wlr-protocols/unstable/wlr-foreign-toplevel-management-unstable-v1.xml protocols/wlr-foreign-toplevel-management-unstable-v1.c
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner: line 5: syntax error: unterminated quoted string
[8/106] Generating protocols/xdg-output-unstable-v1-client-header with a custom command
FAILED: protocols/xdg-output-unstable-v1-client.h
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner client-header //nix/store/1hmlbnqs0bijs0a649aivb0araf19brv-wayland-protocols-aarch64-unknown-linux-gnu-1.39/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml protocols/xdg-output-unstable-v1-client.h
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner: line 5: syntax error: unterminated quoted string
[9/106] Generating protocols/xdg-output-unstable-v1-private-code with a custom command
FAILED: protocols/xdg-output-unstable-v1.c
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner private-code //nix/store/1hmlbnqs0bijs0a649aivb0araf19brv-wayland-protocols-aarch64-unknown-linux-gnu-1.39/share/wayland-protocols/unstable/xdg-output/xdg-output-unstable-v1.xml protocols/xdg-output-unstable-v1.c
/nix/store/q61s350pfxnk26w2gxkxjx2rq0a7xax4-wayland-scanner-aarch64-unknown-linux-gnu-1.23.1-bin/bin/wayland-scanner: line 5: syntax error: unterminated quoted string
[10/106] Building translation po/cs/LC_MESSAGES/libxfce4windowing-cs.mo
[11/106] Building translation po/da/LC_MESSAGES/libxfce4windowing-da.mo
[12/106] Building translation po/de/LC_MESSAGES/libxfce4windowing-de.mo
[13/106] Building translation po/el/LC_MESSAGES/libxfce4windowing-el.mo
[14/106] Building translation po/en_CA/LC_MESSAGES/libxfce4windowing-en_CA.mo
[15/106] Building translation po/en_GB/LC_MESSAGES/libxfce4windowing-en_GB.mo
[16/106] Generating libxfce4windowingui/libxfce4windowingui-visibility.h with a custom command
[17/106] Generating libxfce4windowingui/libxfce4windowingui-visibility.c with a custom command
[18/106] Generating glib marshaller header libxfce4windowing/xfw-marshal_h
[19/106] Generating libxfce4windowing/libxfce4windowing-visibility.h with a custom command
[20/106] Generating libxfce4windowing/libxfce4windowing-visibility.c with a custom command
[21/106] Generating xfce-revision.h with a custom command
[22/106] Compiling C object libxfce4windowingui/libxfce4windowingui-0.so.0.0.0.p/libxfce4windowingui-config.c.o
[23/106] Compiling C object tests/xfw-enum-monitors.p/xfw-enum-monitors.c.o
[24/106] Compiling C object tests/xfw-enum-windows.p/xfw-enum-windows.c.o
[25/106] Compiling C object tests/xfw-monitor-offon.p/xfw-monitor-offon.c.o
[26/106] Compiling C object libxfce4windowingui/libxfce4windowingui-0.so.0.0.0.p/xfw-window-action-menu.c.o
[27/106] Compiling C object libxfce4windowingui/libxfce4windowingui-0.so.0.0.0.p/xfw-window-list-menu.c.o
ninja: build stopped: subcommand failed.
error: builder for '/nix/store/9vl7vzifrdb0qlac22vgw47236mcxwhy-libxfce4windowing-aarch64-unknown-linux-gnu-4.20.2.drv' failed with exit code 1;
I am able to build pkgsCross.aarch64-multiplatform.xfce.libxfce4windowing
on x86_64 with meson after the change.