Bug 253141 - [CMake] Wayland scanner uses deprecated "code" parameter
Summary: [CMake] Wayland scanner uses deprecated "code" parameter
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Linux
: P2 Minor
Assignee: Adrian Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-01 01:29 PST by Adrian Perez
Modified: 2023-03-01 05:53 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2023-03-01 01:29:52 PST
When building the WPE port, the following warnings are shown by wayland-scanner:

  [1874/12858] Generating ../../../WPEToolingBackends/DerivedSources/xdg-shell-protocol.c
  Using "code" is deprecated - use private-code or public-code.
  See the help page for details.
  [1875/12858] Generating ../../../WPEToolingBackends/DerivedSources/xdg-shell-unstable-v6-protocol.c
  Using "code" is deprecated - use private-code or public-code.
  See the help page for details.

These warnings were introduced in Wayland 1.15.0, we should be using "private-code"
instead (like the GTK port does). Debian 10 has version 1.17, and Ubuntu 20.04 LTS
has version 1.20; therefore we can require version >=1.15—no need for using one
parameter or the other depending on the version.
Comment 1 Adrian Perez 2023-03-01 01:32:15 PST
The requirement by both the GTK and WPE ports is currently:

  find_package(Wayland REQUIRED)
  find_package(WaylandProtocols 1.12 REQUIRED)

Let's take advantage of this issue to bump the requirement to 1.15 :)
Comment 2 Adrian Perez 2023-03-01 01:48:43 PST
Pull request: https://github.com/WebKit/WebKit/pull/10852
Comment 3 EWS 2023-03-01 05:52:57 PST
Committed 261001@main (05993ae119d4): <https://commits.webkit.org/261001@main>

Reviewed commits have been landed. Closing PR #10852 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2023-03-01 05:53:23 PST
<rdar://problem/106083063>