Bug 265152

Summary: [GTK] Cannot build with USE_GTK4=OFF on Debian 12
Product: WebKit Reporter: Diego Pino <dpino>
Component: New BugsAssignee: Diego Pino <dpino>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Diego Pino 2023-11-20 11:39:11 PST
Building WebKitGTK on Debian 12 with flag -DUSE_GTK4=OFF (requires libgtk-3-dev) fails with the following error:

```
CMake Error at /usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GTK (missing: GTK_VERSION) (Required is at least version
  "3.22.0")
```

The reason is that after https://commits.webkit.org/270775@main, if libgtk-4-dev is present in an OS then libgtk3-dev is not installed. However, it should still be possible to build using GTK3.
Comment 1 Diego Pino 2023-11-20 11:47:35 PST
Pull request: https://github.com/webkit/webkit/pull/20756
Comment 2 EWS 2023-11-21 04:31:04 PST
Committed 271009@main (f2d7213b34a3): <https://commits.webkit.org/271009@main>

Reviewed commits have been landed. Closing PR #20756 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-11-21 04:32:15 PST
<rdar://problem/118682882>