meson sandbox violation when using wayland-protocols as a subproject
Steps to reproduce:
git clone https://gitlab.freedesktop.org/wayland/weston.git
cd weston
mkdir -p subprojects/wayland-protocols
git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git subprojects/wayland-protocols
meson setup build
fails with
Dependency wayland-protocols found: YES 1.31 (overridden)
protocol/meson.build:76:2: ERROR: Sandbox violation: Tried to grab file input-method-unstable-v1.xml from a nested subproject.
Full log
The Meson build system
Version: 1.0.0
Source dir: .../weston
Build dir: .../weston/build
Build type: native build
Project name: weston
Project version: 11.0.90
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found git repository at .../weston
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-shift-negative-value: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-pedantic: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Header "sys/sysmacros.h" has symbol "major" : YES
Checking for function "mkostemp" : YES
Checking for function "strchrnul" : YES
Checking for function "initgroups" : YES
Checking for function "posix_fallocate" : YES
Checking for function "memfd_create" : YES
Checking for function "unreachable" : YES
Has header "linux/sync_file.h" : YES
Message: The default backend is drm
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency xkbcommon found: YES 1.4.0
Run-time dependency wayland-server found: YES 1.20.0
Run-time dependency wayland-client found: YES 1.20.0
Run-time dependency pixman-1 found: YES 0.40.0
Run-time dependency libinput found: YES 1.20.0
Run-time dependency libevdev found: YES 1.12.1
Library m found: YES
Library dl found: YES
Run-time dependency libdrm found: YES 2.4.110
Run-time dependency threads found: YES
Run-time dependency lcms2 found: YES 2.12
Program python3 found: YES (/usr/bin/python3)
Configuring version.h using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Build-time dependency wayland-scanner found: YES 1.20.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Dependency wayland-protocols found: NO found 1.25 but need: '>= 1.30'
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency wayland-protocols found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency wayland-protocols
Executing subproject wayland-protocols
wayland-protocols| Project name: wayland-protocols
wayland-protocols| Project version: 1.31
wayland-protocols| Configuring wayland-protocols.pc using configuration
wayland-protocols| Configuring wayland-protocols-uninstalled.pc using configuration
wayland-protocols| Program scan.sh found: YES (.../weston/subprojects/wayland-protocols/tests/scan.sh)
wayland-protocols| Dependency wayland-scanner found: YES 1.20.0 (cached)
wayland-protocols| Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
wayland-protocols| Dependency wayland-client found: YES 1.20.0 (cached)
wayland-protocols| Dependency wayland-server found: YES 1.20.0 (cached)
wayland-protocols| C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
wayland-protocols| C linker for the host machine: cc ld.bfd 2.38
wayland-protocols| C++ compiler for the host machine: c++ (gcc 11.3.0 "c++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
wayland-protocols| C++ linker for the host machine: c++ ld.bfd 2.38
wayland-protocols| Program replace.py found: YES (.../weston/subprojects/wayland-protocols/tests/replace.py)
wayland-protocols| Compiler for C supports link arguments -Wl,--unresolved-symbols=ignore-all: YES
wayland-protocols| Build targets in project: 237
wayland-protocols| Subproject wayland-protocols finished.
Dependency wayland-protocols found: YES 1.31 (overridden)
protocol/meson.build:76:2: ERROR: Sandbox violation: Tried to grab file input-method-unstable-v1.xml from a nested subproject.