Bug 210032

Summary: [GTK] build-webkit --gtk --debug doesn't see org.webkit.Sdk.Debug
Product: WebKit Reporter: Alice Mikhaylenko <alicem>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bugs-noreply, pnormand
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Alice Mikhaylenko 2020-04-05 09:49:35 PDT
```
 ~/Projects/WebKit  ./Tools/Scripts/build-webkit --debug --gtk           
Building flatpak based environment

Flatpak package org.webkit.Sdk.Debug/x86_64/0.2 not installed. Please update your SDK: Tools/Scripts/update-webkit-flatpak
 ~/Projects/WebKit  FLATPAK_USER_DIR=WebKitBuild/UserFlatpak flatpak list -a
Name                                            Application ID                                  Version                 Branch           Origin               Installation
Freedesktop Platform                            org.freedesktop.Platform                        18.08.39                18.08            flathub              user
default                                         org.freedesktop.Platform.GL.default                                     19.08            flathub              user
Locale                                          org.freedesktop.Platform.Locale                                         18.08            flathub              user
Intel                                           org.freedesktop.Platform.VAAPI.Intel                                    18.08            flathub              user
html5-codecs                                    org.freedesktop.Platform.html5-codecs                                   18.08            flathub              user
elementary stylesheet                           org.gtk.Gtk3theme.elementary                                            3.22             elem                 user
WebKit Platform (0.2)                           org.webkit.Platform                             262f9f7-dirty           0.2              webkit-sdk           user
Locale                                          org.webkit.Platform.Locale                                              0.2              webkit-sdk           user
WebKit Software Development Kit (0.2)           org.webkit.Sdk                                  262f9f7-dirty           0.2              webkit-sdk           user
Debug                                           org.webkit.Sdk.Debug                                                    0.2              webkit-sdk           user
Locale                                          org.webkit.Sdk.Locale                                                   0.2              webkit-sdk           user
```

As can be seen, org.webkit.Sdk.Debug is installed (manually because https://bugs.webkit.org/show_bug.cgi?id=210030), and yet build-webkit doesn't see it. Release build works fine.

Fedora 32
Comment 1 Philippe Normand 2020-04-05 10:45:00 PDT
How did you manually install the Debug pkg?
Comment 2 Alice Mikhaylenko 2020-04-05 10:46:19 PDT
```
 ~/Projects/WebKit  FLATPAK_USER_DIR=WebKitBuild/UserFlatpak flatpak install webkit-sdk org.webkit.Sdk.Debug//0.2
Looking for matches…
Skipping: org.webkit.Sdk.Debug/x86_64/0.2 is already installed
```
Comment 3 Philippe Normand 2020-04-05 10:50:23 PDT
Can't reproduce the problem here:

$ Tools/Scripts/build-webkit --gtk --debug                                                                                                                                                                                     
Building flatpak based environment                                                                                                                                                                                
                                                                                                                                                                                                                  
Flatpak package org.webkit.Sdk.Debug/x86_64/0.2 not installed. Please update your SDK: Tools/Scripts/update-webkit-flatpak                                                                               

$ FLATPAK_USER_DIR=WebKitBuild/UserFlatpak flatpak list -a                                                                                                                        
Name                                            Application ID                                Version                 Branch           Origin               Installation                                          
Freedesktop Platform                            org.freedesktop.Platform                      19.08.9                 19.08            flathub              system                                                
default                                         org.freedesktop.Platform.GL.default                                   19.08            flathub              system                                                
default                                         org.freedesktop.Platform.GL.default                                   19.08            flathub              user                                                  
Locale                                          org.freedesktop.Platform.Locale                                       19.08            flathub              system                                                
openh264                                        org.freedesktop.Platform.openh264                                     2.0              flathub              system                                                
WebKit Platform (0.2)                           org.webkit.Platform                           262f9f7-dirty           0.2              webkit-sdk           user                                                  
Locale                                          org.webkit.Platform.Locale                                            0.2              webkit-sdk           user                                                  
WebKit Software Development Kit (0.2)           org.webkit.Sdk                                262f9f7-dirty           0.2              webkit-sdk           user                                                  
Locale                                          org.webkit.Sdk.Locale                                                 0.2              webkit-sdk           user     

$ Tools/Scripts/update-webkit-flatpak --debug                                                                                                                                     
Updating Flatpak Debug environment                                                                                                                                                                                
Installing from flathub org.freedesktop.Platform.GL.default x86_64 19.08                                                                                                                                          
Looking for matches…                                                                                                                                                                                              
                                                                                                                                                                                                                  
                                                                                                                                                                                                                  
        ID                                             Branch            Op           Remote            Download                                                                                                  
 1. [✓] org.freedesktop.Platform.GL.default            19.08             i            flathub           1.0 kB / 94.9 MB                                                                                          
                                                                                                                                                                                                                  
Installation complete.                                                                                                                                                                                            
Installing from webkit-sdk org.webkit.Sdk.Debug x86_64 0.2                                                                                                                                                        
Looking for matches…                                                                                                                                                                                              
                                                                                                                                                                                                                  
                                                                                                                                                                                                                  
        ID                            Branch          Op          Remote              Download                                                                                                                    
 1. [✓] org.webkit.Sdk.Debug          0.2             i           webkit-sdk          2.2 GB / 3.6 GB                                                                                                             
                                                                                                                                                                                                                  
Installation complete.           

$ FLATPAK_USER_DIR=WebKitBuild/UserFlatpak flatpak list -a                                                                                                                        
Name                                            Application ID                                Version                 Branch           Origin               Installation                                          
Freedesktop Platform                            org.freedesktop.Platform                      19.08.9                 19.08            flathub              system                                                
default                                         org.freedesktop.Platform.GL.default                                   19.08            flathub              system                                                
default                                         org.freedesktop.Platform.GL.default                                   19.08            flathub              user                                                  
Locale                                          org.freedesktop.Platform.Locale                                       19.08            flathub              system                                                
openh264                                        org.freedesktop.Platform.openh264                                     2.0              flathub              system                                                
WebKit Platform (0.2)                           org.webkit.Platform                           262f9f7-dirty           0.2              webkit-sdk           user                                                  
Locale                                          org.webkit.Platform.Locale                                            0.2              webkit-sdk           user                                                  
WebKit Software Development Kit (0.2)           org.webkit.Sdk                                262f9f7-dirty           0.2              webkit-sdk           user                                                  
Debug                                           org.webkit.Sdk.Debug                                                  0.2              webkit-sdk           user                                                  
Locale                                          org.webkit.Sdk.Locale                                                 0.2              webkit-sdk           user                             

$ Tools/Scripts/build-webkit --gtk --debug
Building flatpak based environment
Building webkit
...
Comment 4 Alice Mikhaylenko 2020-04-05 11:00:46 PDT
Umm, I pulled and it works now. So apparently it was fixed and I had an old checkout, and it's this bug I meant to close and not 210030.