Bug 279660

Summary: REGRESSION(283334@main): [GLIB] Script for updating third-party libs does not work anymore for flatpak
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: Tools / TestsAssignee: Carlos Alberto Lopez Perez <clopez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=279261

Carlos Alberto Lopez Perez
Reported 2024-09-13 02:19:45 PDT
Since 283334@main the scripts update-webkitgtk-libs and update-webkitwpe-libs does not work anymore. This is because the call to the script update-webkit-flatpak is now inside now a condition shouldUseFlatpak() that is always false at the invocation of that script due to this two reasons: 1. The subroutine shouldUseFlatpak() returns false if the ports is not specified, and this two scripts are usually called without passed the flag --gtk or --wpe 2. Even if you call the script passing the port as in "update-webkitgtk-libs --gtk" shouldUseFlatpak() will only return true if the flatpak is already installed, but it will not return true on the first run (no WebKitBuild dir) and we want to default to using flatpak unless the environment tells us to do something different.
Attachments
Carlos Alberto Lopez Perez
Comment 1 2024-09-13 02:28:11 PDT
EWS
Comment 2 2024-09-13 08:26:25 PDT
Committed 283621@main (6ddc6a2f2f12): <https://commits.webkit.org/283621@main> Reviewed commits have been landed. Closing PR #33609 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-09-13 08:27:15 PDT
Note You need to log in before you can comment on or make changes to this bug.