[524/601] /usr/bin/glib-compile-resources src/fwupd.gresource.xml --sourcedir ../fwupd-1.8.3/src/. --sourcedir ../fwupd-1.8.3 /src --c-name fu --internal --generate --target src/fwupd-resources.h FAILED: src/fwupd-resources.h /usr/bin/glib-compile-resources src/fwupd.gresource.xml --sourcedir ../fwupd-1.8.3/src/. --sourcedir ../fwupd-1.8.3/src --c-name fu --internal --generate --target src/fwupd-resources.h src/fwupd.gresource.xml: Failed to locate “../fwupd-1.8.3/src/org.freedesktop.fwupd.xml” in any source directory. [525/601] /usr/bin/glib-compile-resources src/fwupd.gresource.xml --sourcedir ../fwupd-1.8.3/src/. --sourcedir ../fwupd-1.8.3/src --c-name fu --internal --generate --target src/fwupd-resources.c --dependency-file src/fwupd-resources.c.d FAILED: src/fwupd-resources.c /usr/bin/glib-compile-resources src/fwupd.gresource.xml --sourcedir ../fwupd-1.8.3/src/. --sourcedir ../fwupd-1.8.3/src --c-name fu --internal --generate --target src/fwupd-resources.c --dependency-file src/fwupd-resources.c.d src/fwupd.gresource.xml: Failed to locate “../fwupd-1.8.3/src/org.freedesktop.fwupd.xml” in any source directory. Reproducible: Always
Created attachment 795005 [details] build.log.gz
Created attachment 795008 [details] emerge-info.txt
same here
*** Bug 861539 has been marked as a duplicate of this bug. ***
Curious - I cannot reproduce this on any of my systems, and fwupd-1.8.3/src/org.freedesktop.fwupd.xml is included in the source tarball. Time to start digging...
Gotcha! Turns out the problem only appears with >=dev-util/meson-0.63.0, in which case gnome.compile_resources() process a different version of fwupd.gresource.xml, generated in ${BUILD_DIR}/src - which in turn tries to access org.freedesktop.fwupd.xml from ${S}/src via an invalid relative path. Will push a fix shortly.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86609f78337a4ba8097dbdbf11854bd3835127f4 commit 86609f78337a4ba8097dbdbf11854bd3835127f4 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2022-07-27 22:34:18 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2022-07-27 22:43:46 +0000 sys-apps/fwupd: explicitly disable Meson feature 'gresource_quirks' By default the option in question is enabled or disabled automatically depending on the version of Meson in use, which is something I very much do NOT want to affect whether certain data is installed as XML files (which is how older fwupd versions always did it) or embedded as gresources in the program binaries. Besides, the way upstream implemented the latter only works for a specific location of ${BUILD_DIR} with respect to ${S} - hence the linked bug. Nb. For future reference, a patch which makes gresource_quirks=enabled work has been included as well. Closes: https://bugs.gentoo.org/861521 Signed-off-by: Marek Szuba <marecki@gentoo.org> sys-apps/fwupd/files/fwupd-1.8.3-gresource_quirks_paths.patch | 11 +++++++++++ sys-apps/fwupd/fwupd-1.8.3.ebuild | 2 ++ 2 files changed, 13 insertions(+)
*** Bug 861569 has been marked as a duplicate of this bug. ***