<?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>42026</bug_id>
          
          <creation_ts>2010-07-10 03:35:27 -0700</creation_ts>
          <short_desc>[GTK] run-launcher fails if WebKitGTK+ compiled with GTK+-3.0 support</short_desc>
          <delta_ts>2010-08-23 08:33:50 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrobinson</cc>
    
    <cc>svillar</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>249501</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-07-10 03:35:27 -0700</bug_when>
    <thetext>WebKitTools/Scripts/webkitdirs.pm line 599 hardcodes libwebkitgtk-1.0.so but if webkit is compiled against gtk3 it should be libwebkitgtk-3.0.so

To test:

run-launcher --gtk

Error:
Can&apos;t find built framework at &quot;/home/phil/gst/jhbuild/build/WebKit/WebKitBuild/gtk-fullscreen2/Release/JavaScriptCore/../.libs/libwebkitgtk-1.0.so&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249502</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-07-10 03:39:34 -0700</bug_when>
    <thetext>Because we support build of gtk2 and gtk3 at the moment I think it&apos;d make sense to have:

build-webkit --gtk3

and the current --gtk option (renamed to --gtk2?)

instead of build-webkit --gtk --use-gtk=3.0

This be used for the launcher too:

run-launcher --gtk2
run-launcher --gtk3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249555</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-07-10 14:24:02 -0700</bug_when>
    <thetext>Why not just have the script detect what the appropriate version of the library is, by looking at the directory contents?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249557</commentid>
    <comment_count>3</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-07-10 14:32:49 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Why not just have the script detect what the appropriate version of the library is, by looking at the directory contents?

You could have both libraries, so a switch might make sense to force one or the other.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249558</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-07-10 14:38:12 -0700</bug_when>
    <thetext>True, I think that only if both exist should an extra switch be required to select the right one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249704</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-07-12 00:01:23 -0700</bug_when>
    <thetext>The less intrusive is probably to assume --gtk is for gtk2 (for now) and add a --gtk3 switch. So later on when we drop support for gtk2, just assume --gtk is for gtk3 and drop --gtk3... What ya think?

Renaming the current --gtk to --gtk2 would imply we need to update the buildbot scripts at least. It might also confuse the current people who use --gtk.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267891</commentid>
    <comment_count>6</comment_count>
      <attachid>65114</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-08-23 07:26:38 -0700</bug_when>
    <thetext>Created attachment 65114
gtk3build.diff

So, let&apos;s do first what Martin suggested. It should work well enough for our common work routine, and if anybody needs something more sophisticated he can go ahead and write it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267911</commentid>
    <comment_count>7</comment_count>
      <attachid>65114</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-08-23 08:06:23 -0700</bug_when>
    <thetext>Comment on attachment 65114
gtk3build.diff

LGTM!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267919</commentid>
    <comment_count>8</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2010-08-23 08:27:57 -0700</bug_when>
    <thetext>*** Bug 44425 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267922</commentid>
    <comment_count>9</comment_count>
      <attachid>65114</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-08-23 08:33:40 -0700</bug_when>
    <thetext>Comment on attachment 65114
gtk3build.diff

Landed as r65811.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267923</commentid>
    <comment_count>10</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-08-23 08:33:50 -0700</bug_when>
    <thetext>Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>65114</attachid>
            <date>2010-08-23 07:26:38 -0700</date>
            <delta_ts>2010-08-23 08:33:40 -0700</delta_ts>
            <desc>gtk3build.diff</desc>
            <filename>gtk3build.diff</filename>
            <type>text/plain</type>
            <size>2124</size>
            <attacher name="Xan Lopez">xan.lopez</attacher>
            
              <data encoding="base64">RnJvbSAwZjA2Y2NjZTM2OTFjMTYyYjhmMWVjMzFmNTFlODI4NDI0MzY4ZDVkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBYYW4gTG9wZ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JhdGlvblByb2R1Y3REaXIvJGxp
YnJhcnlOYW1lLy4uLy5saWJzL2xpYndlYmtpdGd0ay0xLjAuc28iOworICAgICAgICBteSAkbGli
cmFyeURpciA9ICIkY29uZmlndXJhdGlvblByb2R1Y3REaXIvJGxpYnJhcnlOYW1lLy4uLy5saWJz
LyI7CisgICAgICAgIGlmICgtZSAkbGlicmFyeURpciAuICJsaWJ3ZWJraXRndGstMy4wLnNvIikg
eworICAgICAgICAgICAgcmV0dXJuICRsaWJyYXJ5RGlyIC4gImxpYndlYmtpdGd0ay0zLjAuc28i
OworICAgICAgICB9CisgICAgICAgIHJldHVybiAkbGlicmFyeURpciAuICJsaWJ3ZWJraXRndGst
MS4wLnNvIjsKICAgICB9CiAgICAgaWYgKGlzRWZsKCkpIHsKICAgICAgICAgcmV0dXJuICIkY29u
ZmlndXJhdGlvblByb2R1Y3REaXIvJGxpYnJhcnlOYW1lLy4uLy5saWJzL2xpYmV3ZWJraXQuc28i
OwotLSAKMS43LjIuMQoK
</data>

          </attachment>
      

    </bug>

</bugzilla>