<?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>225401</bug_id>
          
          <creation_ts>2021-05-05 12:12:30 -0700</creation_ts>
          <short_desc>[LibWebRTC][WPE][GTK] do not use system installed vpx headers when building webrtc</short_desc>
          <delta_ts>2021-06-21 09:08:47 -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>Platform</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yury Semikhatsky">yurys</reporter>
          <assigned_to name="Yury Semikhatsky">yurys</assigned_to>
          <cc>annulen</cc>
    
    <cc>calvaris</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>pnormand</cc>
    
    <cc>ryuan.choi</cc>
    
    <cc>sergio</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1757027</commentid>
    <comment_count>0</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2021-05-05 12:12:30 -0700</bug_when>
    <thetext>After https://commits.webkit.org/r276491 WPE build fails on Ubuntu 18.04 with the following error:


In file included from ../../../Source/ThirdParty/libwebrtc/Source/webrtc/modules/video_coding/codecs/vp9/vp9.cc:16:0:
../../../Source/ThirdParty/libwebrtc/Source/webrtc/modules/video_coding/codecs/vp9/vp9_impl.h:134:3: error: ‘vpx_svc_frame_drop_t’ does not name a type; did you mean ‘vpx_enc_frame_flags_t’?
   vpx_svc_frame_drop_t svc_drop_frame_;
   ^~~~~~~~~~~~~~~~~~~~
   vpx_enc_frame_flags_t


This is because #include &quot;vpx/vp8cx.h&quot; in vp9_impl.h gets the header from /usr/include/vpx/vp8cx.h (provided by libvpx-dev)
instead of WebKit/Source/ThirdParty/libwebrtc/Source/third_party/libvpx/source/libvpx/vpx/vp8cx.h. vp8cx.h on Ubuntu 18.04 [1]
is rather old and doesn&apos;t define vpx_svc_frame_drop_t structure so the build fails.



[1] https://packages.ubuntu.com/source/bionic/libvpx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757030</commentid>
    <comment_count>1</comment_count>
      <attachid>427787</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2021-05-05 12:22:33 -0700</bug_when>
    <thetext>Created attachment 427787
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757031</commentid>
    <comment_count>2</comment_count>
      <attachid>427788</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2021-05-05 12:25:21 -0700</bug_when>
    <thetext>Created attachment 427788
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757055</commentid>
    <comment_count>3</comment_count>
      <attachid>427788</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-05-05 12:52:39 -0700</bug_when>
    <thetext>Comment on attachment 427788
Patch

Thanks Yury! Sorry for the trouble :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757069</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-05-05 13:19:31 -0700</bug_when>
    <thetext>Committed r277036 (237349@main): &lt;https://commits.webkit.org/237349@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 427788.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757070</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-05 13:20:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/77572149&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1771090</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-06-19 04:44:36 -0700</bug_when>
    <thetext>For the record, this patch is actually wrong :( It might have fixed your build, but if you were running webrtc tests you would realise they&apos;re broken.

The WPE/GTK ports rely on external libvpx, so we cannot pull in the bundled libvpx headers without making sure the external libvpx is ABI compatible with the version bundled in libwebrtc.

See also https://bugs.webkit.org/show_bug.cgi?id=227172

I&apos;m updating the Flatpak SDK to libvpx 1.10 and will from now on keep the version check of libvpx in cmake synchronized with the bundled version, that means WebKit builds enabling libwebrtc while the host has libvpx &lt; 1.10, will fail during CMake configure step.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1771301</commentid>
    <comment_count>7</comment_count>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2021-06-21 08:54:31 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #6)
&gt; The WPE/GTK ports rely on external libvpx, so we cannot pull in the bundled
&gt; libvpx headers without making sure the external libvpx is ABI compatible
&gt; with the version bundled in libwebrtc.

I see, this makes sense. I believe proper fix for jhbuild would be to pull corresponding version of libvpx sources.


&gt; I&apos;m updating the Flatpak SDK to libvpx 1.10 and will from now on keep the
&gt; version check of libvpx in cmake synchronized with the bundled version, that
&gt; means WebKit builds enabling libwebrtc while the host has libvpx &lt; 1.10,
&gt; will fail during CMake configure step.

Isn&apos;t this version distribution-specific? On Ubuntu 20.04 it is shipped as libvpx6 with current version being 1.8.2, will &gt;=1.10 requirement break it? In any case, thanks for heads-up!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1771310</commentid>
    <comment_count>8</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-06-21 09:08:47 -0700</bug_when>
    <thetext>(In reply to Yury Semikhatsky from comment #7)
&gt; (In reply to Philippe Normand from comment #6)
&gt; &gt; The WPE/GTK ports rely on external libvpx, so we cannot pull in the bundled
&gt; &gt; libvpx headers without making sure the external libvpx is ABI compatible
&gt; &gt; with the version bundled in libwebrtc.
&gt; 
&gt; I see, this makes sense. I believe proper fix for jhbuild would be to pull
&gt; corresponding version of libvpx sources.
&gt; 

Yes.

&gt; 
&gt; &gt; I&apos;m updating the Flatpak SDK to libvpx 1.10 and will from now on keep the
&gt; &gt; version check of libvpx in cmake synchronized with the bundled version, that
&gt; &gt; means WebKit builds enabling libwebrtc while the host has libvpx &lt; 1.10,
&gt; &gt; will fail during CMake configure step.
&gt; 
&gt; Isn&apos;t this version distribution-specific? On Ubuntu 20.04 it is shipped as
&gt; libvpx6 with current version being 1.8.2, will &gt;=1.10 requirement break it?
&gt; In any case, thanks for heads-up!

Maybe 1.8.2 is ABI compatible with some previous versions.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>427787</attachid>
            <date>2021-05-05 12:22:33 -0700</date>
            <delta_ts>2021-05-05 12:25:19 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-225401-20210505122232.patch</filename>
            <type>text/plain</type>
            <size>1459</size>
            <attacher name="Yury Semikhatsky">yurys</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjc3MDM0CmRpZmYgLS1naXQgYS9Tb3VyY2UvVGhpcmRQYXJ0
eS9saWJ3ZWJydGMvQ2hhbmdlTG9nIGIvU291cmNlL1RoaXJkUGFydHkvbGlid2VicnRjL0NoYW5n
ZUxvZwppbmRleCA3OWQzNmQ5OTllNDk4NTg1NDU5ODA3Y2RmZmYwZWEzZTQyNzk2MWNjLi4zYTlk
ZmI0YWQ0ODFiOGFkYTFmMjJlOGUzNTk3NGY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ZGE2OTVmOTVhYzc4YmMgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9U
aGlyZFBhcnR5L2xpYndlYnJ0Yy9DTWFrZUxpc3RzLnR4dAorKysgYi9Tb3VyY2UvVGhpcmRQYXJ0
eS9saWJ3ZWJydGMvQ01ha2VMaXN0cy50eHQKQEAgLTE2OTgsNiArMTY5OCw3IEBAIHNldCh3ZWJy
dGNfSU5DTFVERV9ESVJFQ1RPUklFUyBQUklWQVRFCiAgICAgU291cmNlL3RoaXJkX3BhcnR5L2xp
YnNydHAvY3J5cHRvL2luY2x1ZGUKICAgICBTb3VyY2UvdGhpcmRfcGFydHkvbGlic3J0cC9pbmNs
dWRlCiAgICAgU291cmNlL3RoaXJkX3BhcnR5L2xpYnl1di9pbmNsdWRlCisgICAgU291cmNlL3Ro
aXJkX3BhcnR5L2xpYnZweC9zb3VyY2UvbGlidnB4CiAgICAgU291cmNlL3RoaXJkX3BhcnR5L29w
dXMvc3JjL2NlbHQKICAgICBTb3VyY2UvdGhpcmRfcGFydHkvb3B1cy9zcmMvaW5jbHVkZQogICAg
IFNvdXJjZS90aGlyZF9wYXJ0eS9vcHVzL3NyYy9zaWxrCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>427788</attachid>
            <date>2021-05-05 12:25:21 -0700</date>
            <delta_ts>2021-05-05 13:19:32 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-225401-20210505122521.patch</filename>
            <type>text/plain</type>
            <size>1754</size>
            <attacher name="Yury Semikhatsky">yurys</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjc3MDM0CmRpZmYgLS1naXQgYS9Tb3VyY2UvVGhpcmRQYXJ0
eS9saWJ3ZWJydGMvQ2hhbmdlTG9nIGIvU291cmNlL1RoaXJkUGFydHkvbGlid2VicnRjL0NoYW5n
ZUxvZwppbmRleCA3OWQzNmQ5OTllNDk4NTg1NDU5ODA3Y2RmZm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