Missing dependency in data/resources/meson.build
Hello. When building the Debian package for this project on a system with only one CPU, the build failed in this way: ``` Found ninja-1.13.2 at /usr/bin/ninja dh_auto_build cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j1 -v [1/27] /usr/bin/blueprint-compiler batch-compile data/resources/. ../data/resources ../data/resources/blueprints/windo w.blp [2/27] /usr/bin/glib-compile-resources ../data/resources/resources.gresource.xml --sourcedir /<<PKGBUILDDIR>>/obj-x86_ 64-linux-gnu/data/resources --sourcedir data/resources --sourcedir ../data/resources --internal --generate --target da ta/resources/resources.gresource --dependency-file data/resources/resources.gresource.d FAILED: [code=1] data/resources/resources.gresource /usr/bin/glib-compile-resources ../data/resources/resources.gresource.xml --sourcedir /<<PKGBUILDDIR>>/obj-x86_64-linu x-gnu/data/resources --sourcedir data/resources --sourcedir ../data/resources --internal --generate --target data/reso urces/resources.gresource --dependency-file data/resources/resources.gresource.d ../data/resources/resources.gresource.xml: Failed to locate “../io.gitlab.adhami3310.Impression.metainfo.xml” in any s ource directory. ninja: build stopped: subcommand failed. dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j1 -v returned exit code 1 ``` I discovered this by building on a VM with 1 CPU, but it can also be reproduced easily by configuring GRUB with `GRUB_CMDLINE_LINUX="nr_cpus=1"` (and rebooting). On systems with 2 CPUs, the build seems to work, but by pure chance, as there is a race condition. The patch below seems to work. Thanks. ``` --- a/data/meson.build +++ b/data/meson.build @@ -1,5 +1,3 @@ -subdir('resources') - # Desktop file desktop_conf = configuration_data() desktop_conf.set('icon', application_id) @@ -55,6 +53,8 @@ if appstreamcli.found() ) endif +subdir('resources') + # GSchema gschema_conf = configuration_data() gschema_conf.set('app-id', application_id) --- a/data/resources/meson.build +++ b/data/resources/meson.build @@ -29,5 +29,5 @@ resources = gnome.compile_resources( source_dir: meson.current_build_dir(), install: true, install_dir: pkgdatadir, - dependencies: blueprints, + dependencies: [blueprints, appdata_file], ) ```
issue