<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>275297</bug_id>
          
          <creation_ts>2024-06-09 02:28:02 -0700</creation_ts>
          <short_desc>REGRESSION(279732@main): [GTK][WPE] Build fails with -DUSE_TEXTURE_MAPPER_DMABUF=OFF</short_desc>
          <delta_ts>2024-08-19 07:26:42 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jim Mason">jmason</reporter>
          <assigned_to name="Miguel Gomez">magomez</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>magomez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2040510</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2024-06-09 02:28:02 -0700</bug_when>
    <thetext>The build fails as follows:

/build/rtutils/components/desktop/webkitgtk4-dev/build/amd64/DerivedSources/WebKit/GeneratedSerializers.cpp:733:10: fatal error: WebCore/DMABufColorSpace.h: No such file or directory
  733 | #include &lt;WebCore/DMABufColorSpace.h&gt;
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040763</commentid>
    <comment_count>1</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2024-06-11 03:16:46 -0700</bug_when>
    <thetext>This is because the DMABuf headers are only included when GBM is enabled, but the DMABufObject serialization definition happens unconditionally. It should probably happen only when GBM is enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040764</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-06-11 03:19:56 -0700</bug_when>
    <thetext>Good find, I&apos;ll try to make a quick patch for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040887</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-06-11 16:19:17 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #2)
&gt; Good find, I&apos;ll try to make a quick patch for this.

Well, still on it... not so quick in the end. There&apos;s also a few
more issues with USE_GBM=OFF, that I am trying to solve as well.
Like for example:

/app/webkit/Source/WebKit/UIProcess/API/wpe/WPEWebView.cpp:247:28: error: no member named &apos;preferredBufferFormatsDidChange&apos; in &apos;WebKit::WebPageProxy&apos;
            webView.page().preferredBufferFormatsDidChange();
            ~~~~~~~~~~~~~~ ^
/usr/include/glib-2.0/gobject/gclosure.h:73:40: note: expanded from macro &apos;G_CALLBACK&apos;
#define G_CALLBACK(f)                    ((GCallback) (f))
                                                       ^
/usr/include/glib-2.0/gobject/gsignal.h:515:60: note: expanded from macro &apos;g_signal_connect&apos;
    g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0)
                                                           ^~~~~~~~~
1 error generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053683</commentid>
    <comment_count>4</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2024-08-19 03:52:21 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/32380</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053688</commentid>
    <comment_count>5</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2024-08-19 04:28:03 -0700</bug_when>
    <thetext>(In reply to Miguel Gomez from comment #4)
&gt; Pull request: https://github.com/WebKit/WebKit/pull/32380

Will need an analogous fix for PlatformGTK.cmake?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053689</commentid>
    <comment_count>6</comment_count>
    <who name="Miguel Gomez">magomez</who>
    <bug_when>2024-08-19 04:58:05 -0700</bug_when>
    <thetext>I&apos;ve tested that the PR fixes the build for WPE, but I haven&apos;t tested it for GTK. It will probably fix the DMABufColorSpace error, but there may be others, as Adrian says. Please feel free to reopen in that case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053690</commentid>
    <comment_count>7</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2024-08-19 05:06:13 -0700</bug_when>
    <thetext>(In reply to Miguel Gomez from comment #6)
&gt; I&apos;ve tested that the PR fixes the build for WPE, but I haven&apos;t tested it for
&gt; GTK. It will probably fix the DMABufColorSpace error, but there may be
&gt; others, as Adrian says. Please feel free to reopen in that case.

Thanks, I have confirmed the revised patch resolves the issue for GTK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2053708</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-08-19 07:26:39 -0700</bug_when>
    <thetext>Committed 282423@main (34bd9017f91a): &lt;https://commits.webkit.org/282423@main&gt;

Reviewed commits have been landed. Closing PR #32380 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>