<?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>197352</bug_id>
          
          <creation_ts>2019-04-28 08:07:36 -0700</creation_ts>
          <short_desc>[Flatpak] webkit-build fails due to missing GTK2 in build environment</short_desc>
          <delta_ts>2019-05-07 09:16:19 -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>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</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="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
    
    <cc>tsaunier</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1531051</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-04-28 08:07:36 -0700</bug_when>
    <thetext>Just tested from a fresh repository (right after running “git clean -xdf”):

 % update-webkitgtk-flatpak
 [lots of output, build completes just fine]

 % build-webkit --gtk
 [cmake output, eventually fails with:]

 -- Checking for module &apos;gtk+-2.0&apos;
 --   Package &apos;gtk+-2.0&apos;, required by &apos;virtual:world&apos;, not found
 CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
   Could NOT find GTK2 (missing: GTK2_INCLUDE_DIRS GTK2_LIBRARIES) (Required
   is at least version &quot;2.24.10&quot;)
 Call Stack (most recent call first):
   /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
   Source/cmake/FindGTK2.cmake:49 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
   Source/cmake/OptionsGTK.cmake:290 (find_package)
   Source/cmake/WebKitCommon.cmake:56 (include)
   CMakeLists.txt:167 (include)

 -- Configuring incomplete, errors occurred!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531052</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-04-28 08:13:14 -0700</bug_when>
    <thetext>As a workaround, once can use instead:

 % build-webkit --gtk --cmakeargs=&apos;-DENABLE_PLUGIN_PROCESS_GTK2=OFF&apos;

but in my opinion developers should not need to pass anything special
to “build-webkit” to get a vanilla build done with the usual development
compilation options.

From what I understand, this is because the Flatpak SDK is not shipping
GTK2 anymore, which means we have two ways to go about this:

 a.) Add GTK2 to our local build manifest.
 b.) When building inside the Flatpak environment, automatically
     disable the GTK2 plugin process.

While I would prefer to to (b.) —and in the long run that is what
will happen— at the moment we support the option, and threfore I think
that we should routinely build with the option enabled to make sure
the code does not bitrot, so right now I think we should go for (a.).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1531053</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-04-28 08:46:55 -0700</bug_when>
    <thetext>That&apos;s weird, because we never had GTK2 in gnome-build-meta.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533911</commentid>
    <comment_count>3</comment_count>
      <attachid>369282</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-05-07 07:52:16 -0700</bug_when>
    <thetext>Created attachment 369282
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533916</commentid>
    <comment_count>4</comment_count>
      <attachid>369282</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-05-07 08:20:32 -0700</bug_when>
    <thetext>Comment on attachment 369282
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=369282&amp;action=review

&gt; Tools/flatpak/org.webkit.GTK.yaml:101
&gt; +  config-opts:

Can examples also be disabled?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533920</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-05-07 08:40:20 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #4)
&gt; Comment on attachment 369282 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=369282&amp;action=review
&gt; 
&gt; &gt; Tools/flatpak/org.webkit.GTK.yaml:101
&gt; &gt; +  config-opts:
&gt; 
&gt; Can examples also be disabled?

Unfortunately, there is no flag in the autotools configure script
to disable the examples :-/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533942</commentid>
    <comment_count>6</comment_count>
      <attachid>369282</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-05-07 09:15:17 -0700</bug_when>
    <thetext>Comment on attachment 369282
Patch

Clearing flags on attachment: 369282

Committed r245011: &lt;https://trac.webkit.org/changeset/245011&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533943</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-05-07 09:15:19 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1533945</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-07 09:16:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/50542468&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>369282</attachid>
            <date>2019-05-07 07:52:16 -0700</date>
            <delta_ts>2019-05-07 09:15:17 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-197352-20190507175214.patch</filename>
            <type>text/plain</type>
            <size>1808</size>
            <attacher name="Adrian Perez">aperez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQ1MDAxCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggOTdjYmVlNjY1NzQzYTM4NGNiZTRkZDQ0YzBmYjg4YTE3
YmFhYmRkNi4uNjkwZDFhYzQ3OGQ4OTdhNDU5ZmM4YjEyNjQ1MTJmNjcxMGUwYzliYyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2
IEBACisyMDE5LTA1LTA3ICBBZHJpYW4gUGVyZXogZGUgQ2FzdHJvICA8YXBlcmV6QGlnYWxpYS5j
b20+CisKKyAgICAgICAgW0ZsYXRwYWtdIHdlYmtpdC1idWlsZCBmYWlscyBkdWUgdG8gbWlzc2lu
ZyBHVEsyIGluIGJ1aWxkIGVudmlyb25tZW50CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQu
b3JnL3Nob3dfYnVnLmNnaT9pZD0xOTczNTIKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworICAgICAgICBUaGUgRmxhdHBhayBydW50aW1lcyBkbyBub3QgaW5jbHVkZSBH
VEsgMi54IGFueW1vcmUsIHdoaWNoIG1lYW5zIHRoYXQgd2UgbmVlZAorICAgICAgICB0byBidWls
ZCBpdCBvdXJzZWx2ZXMgb24gdG9wIGluIG9yZGVyIHRvIGJlIGFibGUgdG8gYnVpbGQgdGhlIEd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