[Webkit-unassigned] [Bug 257516] New: [GLIB] GResources being re-regenerated due to bad dependency file

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 30 17:31:15 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=257516

            Bug ID: 257516
           Summary: [GLIB] GResources being re-regenerated due to bad
                    dependency file
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CMake
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lmoura at igalia.com

Currently, the ".deps" files used to track the GResourceBundle dependencies are making ninja re-generate the bundle source even though there was nothing changed on the file. While these are quite minor files, it's triggering the relink of the main webkit library, which usually makes my laptop to become unusable.

Running ninja with "-d explain", it shows messages like these:

ninja explain: expected depfile '/app/webkit/WebKitBuild/Release/WebKitGTK/DerivedSources/PdfJSGResourceBundle.deps' to mention 'WebKitGTK/DerivedSources/PdfJSGResourceBundle.c', got '/app/webkit/WebKitBuild/Release/WebKitGTK/DerivedSources/PdfJSGResourceBundle.xml'
ninja explain: depfile '/app/webkit/WebKitBuild/Release/WebKitGTK/DerivedSources/PdfJSGResourceBundleExtras.deps' is missing
ninja explain: expected depfile '/app/webkit/WebKitBuild/Release/WebKitGTK/DerivedSources/WebKitResourcesGResourceBundle.deps' to mention 'WebKitGTK/DerivedSources/WebKitResourcesGResourceBundle.c', got '/app/webkit/WebKitBuild/Release/WebKitGTK/DerivedSources/WebKitResourcesGResourceBundle.xml' 

This led me to https://gitlab.gnome.org/GNOME/glib/-/issues/2829

glib-compile-resources is generating the depfile like this:

bundle.xml: dep1 dep2

instead of

bundle.c: bundle.xml dep1 dep2

Another issue seems to be related to ninja, which seems expect the target name in the deps file to be a relative path (maybe because it's the target name?) while the generated deps has an absolute path.

Tentative patch incoming.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230531/a36518fd/attachment.htm>


More information about the webkit-unassigned mailing list