<?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>261637</bug_id>
          
          <creation_ts>2023-09-16 02:09:49 -0700</creation_ts>
          <short_desc>[GTK] build breaks with -DUSE_GBM=OFF: WebCore/DMABufFormat.h: No such file or directory</short_desc>
          <delta_ts>2023-09-27 01:10:25 -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="Carlos Garcia Campos">cgarcia</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>thomas.devoogdt</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1977826</commentid>
    <comment_count>0</comment_count>
    <who name="Jim Mason">jmason</who>
    <bug_when>2023-09-16 02:09:49 -0700</bug_when>
    <thetext>building 2.42.0 (tarball)

-DUSE_GBM=OFF

Unguarded inclusion of a GBM-related header breaks compilation of two source files:

webkitgtk-2.42.0/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp:36:10: fatal error: WebCore/DMABufFormat.h: No such file or directory
   36 | #include &lt;WebCore/DMABufFormat.h&gt;

webkitgtk-2.42.0/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp:34:10: fatal error: WebCore/DMABufFormat.h: No such file or directory
   34 | #include &lt;WebCore/DMABufFormat.h&gt;

Both source files reference one constant from DMABufFormat.h, `WebCore::DMABufFormat::Modifier::Invalid`

Build completes normally when the header file and test involving the constant are removed from the source files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978002</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-09-18 02:46:06 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/17854</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978221</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-19 01:02:28 -0700</bug_when>
    <thetext>Committed 268112@main (ba13698c64e0): &lt;https://commits.webkit.org/268112@main&gt;

Reviewed commits have been landed. Closing PR #17854 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980410</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Devoogdt">thomas.devoogdt</who>
    <bug_when>2023-09-27 00:32:40 -0700</bug_when>
    <thetext>There is more here, also #include &lt;epoxy/egl.h&gt; is not a given if USE_OPENGL_OR_ES=OFF and USE_GBM=OFF.


webkitgtk-2.42.0/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp:39:10: fatal error: epoxy/egl.h: No such file or directory
   39 | #include &lt;epoxy/egl.h&gt;
      |          ^~~~~~~~~~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980413</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-09-27 00:44:53 -0700</bug_when>
    <thetext>(In reply to Thomas Devoogdt from comment #3)
&gt; There is more here, also #include &lt;epoxy/egl.h&gt; is not a given if
&gt; USE_OPENGL_OR_ES=OFF and USE_GBM=OFF.
&gt; 
&gt; 
&gt; webkitgtk-2.42.0/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.
&gt; cpp:39:10: fatal error: epoxy/egl.h: No such file or directory
&gt;    39 | #include &lt;epoxy/egl.h&gt;
&gt;       |          ^~~~~~~~~~~~~

That&apos;s because of USE_OPENGL_OR_ES not GBM. File a new bug report, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980425</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Devoogdt">thomas.devoogdt</who>
    <bug_when>2023-09-27 01:10:25 -0700</bug_when>
    <thetext>New bug report: https://bugs.webkit.org/show_bug.cgi?id=262169.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>