Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 861521 - sys-apps/fwupd-1.8.3: src/fwupd.gresource.xml: Failed to locate “../fwupd-1.8.3/src/org.freedesktop.fwupd.xml” in any source directory.
Summary: sys-apps/fwupd-1.8.3: src/fwupd.gresource.xml: Failed to locate “../fwupd-1.8...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL: https://github.com/fwupd/fwupd/issues...
Whiteboard:
Keywords:
: 861539 861569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-07-27 17:17 UTC by Kobboi
Modified: 2022-07-28 06:43 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,31.14 KB, application/gzip)
2022-07-27 17:17 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,7.85 KB, text/plain)
2022-07-27 17:17 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-07-27 17:17:10 UTC
[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
Comment 1 Kobboi 2022-07-27 17:17:31 UTC
Created attachment 795005 [details]
build.log.gz
Comment 2 Kobboi 2022-07-27 17:17:33 UTC
Created attachment 795008 [details]
emerge-info.txt
Comment 3 Harris Landgarten 2022-07-27 18:24:53 UTC
same here
Comment 4 Marek Szuba archtester gentoo-dev 2022-07-27 21:27:44 UTC
*** Bug 861539 has been marked as a duplicate of this bug. ***
Comment 5 Marek Szuba archtester gentoo-dev 2022-07-27 21:31:38 UTC
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...
Comment 6 Marek Szuba archtester gentoo-dev 2022-07-27 22:19:51 UTC
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.
Comment 7 Larry the Git Cow gentoo-dev 2022-07-27 22:43:52 UTC
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(+)
Comment 8 Agostino Sarubbo gentoo-dev 2022-07-28 06:43:28 UTC
*** Bug 861569 has been marked as a duplicate of this bug. ***