<?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>32680</bug_id>
          
          <creation_ts>2009-12-17 15:30:06 -0800</creation_ts>
          <short_desc>[Qt] webkitdirs.pm function builtDylibPathForName returns wrong path to library</short_desc>
          <delta_ts>2009-12-22 23:55:24 -0800</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>Windows XP</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>
          
          <blocked>32683</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Bates">dbates</reporter>
          <assigned_to name="Daniel Bates">dbates</assigned_to>
          <cc>aroben</cc>
    
    <cc>bweinstein</cc>
    
    <cc>cjerdonek</cc>
    
    <cc>eric</cc>
    
    <cc>hausmann</cc>
    
    <cc>kenneth</cc>
    
    <cc>ossy</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zoltan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>172970</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-12-17 15:30:06 -0800</bug_when>
    <thetext>The function builtDylibPathForName returns a path with respect to the file named QtWebKit.dll. But this files does not exist. Instead, the file is named QtWebKit4.dll.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172978</commentid>
    <comment_count>1</comment_count>
      <attachid>45107</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-12-17 16:06:33 -0800</bug_when>
    <thetext>Created attachment 45107
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>172980</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-12-17 16:09:25 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 45107 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173067</commentid>
    <comment_count>3</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2009-12-18 00:27:01 -0800</bug_when>
    <thetext>I think we should put either a new if isQt() inside isWindows() or elsif with isQt() &amp;&amp; isWindows() for better readability.

Btw, Simon why do we use other lib name on Windows?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173086</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2009-12-18 02:49:28 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I think we should put either a new if isQt() inside isWindows() or elsif with
&gt; isQt() &amp;&amp; isWindows() for better readability.
&gt; 
&gt; Btw, Simon why do we use other lib name on Windows?

I agree, this needs an isQt() somewhere :)

It is a convention in Qt to add the major number to the name of the DLL, similar to how the major version on Linux for example is part of the name and respected by the dynamic linker. An identical major version number indicates binary compatibility towards newer versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173150</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-12-18 07:43:15 -0800</bug_when>
    <thetext>Oops. Yeah, I forgot to add an if isQt(). Will update patch.

(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; I think we should put either a new if isQt() inside isWindows() or elsif with
&gt; &gt; isQt() &amp;&amp; isWindows() for better readability.
&gt; &gt; 
&gt; &gt; Btw, Simon why do we use other lib name on Windows?
&gt; 
&gt; I agree, this needs an isQt() somewhere :)
&gt; 
&gt; It is a convention in Qt to add the major number to the name of the DLL,
&gt; similar to how the major version on Linux for example is part of the name and
&gt; respected by the dynamic linker. An identical major version number indicates
&gt; binary compatibility towards newer versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173152</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-12-18 07:54:39 -0800</bug_when>
    <thetext>Never mind, there is already an outer &quot;if (isQt())&quot;, &lt;http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitdirs.pm?rev=51932#L528&gt;. Hence, we add the QT_MAJOR_VERSION to the DLL name if we are using Qt and are on the Windows or Cygwin platform.

So, Simon, Zoltan, are you asking to fold in this outer &quot;if (isQt())&quot; into the inner if, elsif, else block?

(In reply to comment #5)
&gt; Oops. Yeah, I forgot to add an if isQt(). Will update patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173184</commentid>
    <comment_count>7</comment_count>
    <who name="Zoltan Horvath">zoltan</who>
    <bug_when>2009-12-18 09:28:24 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; Never mind, there is already an outer &quot;if (isQt())&quot;,
&gt; &lt;http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitdirs.pm?rev=51932#L528&gt;.
&gt; Hence, we add the QT_MAJOR_VERSION to the DLL name if we are using Qt and are
&gt; on the Windows or Cygwin platform.
&gt; 
&gt; So, Simon, Zoltan, are you asking to fold in this outer &quot;if (isQt())&quot; into the
&gt; inner if, elsif, else block?

You&apos;re right. Why there is a isCygwin(), normally you compile Qt with MinGW... Please remove isCygwin() and it will be okay in that block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173195</commentid>
    <comment_count>8</comment_count>
      <attachid>45158</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-12-18 09:37:22 -0800</bug_when>
    <thetext>Created attachment 45158
Patch

Updated patch based on Zoltan&apos;s comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173198</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2009-12-18 09:39:46 -0800</bug_when>
    <thetext>style-queue ran check-webkit-style on attachment 45158 without any errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173578</commentid>
    <comment_count>10</comment_count>
      <attachid>45158</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-12-19 12:26:42 -0800</bug_when>
    <thetext>Comment on attachment 45158
Patch

I&apos;m confused.  Why wouldn&apos;t this break other windows ports?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173579</commentid>
    <comment_count>11</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-12-19 12:33:25 -0800</bug_when>
    <thetext>We only do this for the Qt Windows port. Notice, the outer &quot;if isQt()&quot; on line 528 &lt;http://trac.webkit.org/browser/trunk/WebKitTools/Scripts/webkitdirs.pm?rev=51932#L528&gt;.

Hence, this will not interfere with the other Windows ports.

(In reply to comment #10)
&gt; (From update of attachment 45158 [details])
&gt; I&apos;m confused.  Why wouldn&apos;t this break other windows ports?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173884</commentid>
    <comment_count>12</comment_count>
      <attachid>45158</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-12-20 23:06:52 -0800</bug_when>
    <thetext>Comment on attachment 45158
Patch

I&apos;m going to trust you that this is sane.  I know next to nothing about the Qt build, but I expect that you do given your recent job.  If this is wrong for Qt we can always roll it out.  rs=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174540</commentid>
    <comment_count>13</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2009-12-22 23:55:24 -0800</bug_when>
    <thetext>Committed in &lt;http://trac.webkit.org/changeset/52522&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>45107</attachid>
            <date>2009-12-17 16:06:33 -0800</date>
            <delta_ts>2009-12-18 09:37:22 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>Bug32680.patch</filename>
            <type>text/plain</type>
            <size>1807</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDUyMjkyKQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMDktMTItMTcgIERhbmllbCBCYXRlcyAgPGRi
YXRlc0B3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgor
CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0zMjY4MAor
CisgICAgICAgIEZpeGVzIGFuIGlzc3VlIGluIGJ1aWx0RHlsaWJQYXRoRm9yTmFtZSBzbyB0aGF0
IGl0IHJldHVybnMgdGhlIGNvcnJlY3QKKyAgICAgICAgcGF0aCB0byB0aGUgYnVpbHQgUXRXZWJL
aXQgbGlicmFyeSBvbiB0aGUgUXQgV2luZG93cyBwb3J0LiBDdXJyZW50bHksCisgICAgICAgIGl0
IHJldHVybnMgdGhlIHBhdGggdG8gdGhlIGZpbGUgbmFtZWQgUXRXZWJLaXQuZGxsIGJ1dCB0aGlz
IGZpbGUgZG9lcworICAgICAgICBub3QgZXhpc3Qgb24gdGhlIFF0IFdpbmRvd3MgYnVpbGQuIElu
c3RlYWQsIHRoZSBmaWxlIGlzIG5hbWVkCisgICAgICAgIFF0V2ViS2l0NC5kbGwuCisKKyAgICAg
ICAgKiBTY3JpcHRzL3dlYmtpdGRpcnMucG06CisKIDIwMD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1ham9yVmVyc2lvbiBlcSAidW5rbm93biIpIHsKKyAgICAgICAgICAgICAgICAkcXRNYWpvclZl
cnNpb24gPSAiIjsKKyAgICAgICAgICAgIH0KKyAgICAgICAgICAgIHJldHVybiAiJGNvbmZpZ3Vy
YXRpb25Qcm9kdWN0RGlyL2xpYi8kbGlicmFyeU5hbWUkcXRNYWpvclZlcnNpb24uZGxsIjsKICAg
ICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgIHJldHVybiAiJGNvbmZpZ3VyYXRpb25Qcm9kdWN0
RGlyL2xpYi9saWIkbGlicmFyeU5hbWUuc28iOwogICAgICAgICB9Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>45158</attachid>
            <date>2009-12-18 09:37:22 -0800</date>
            <delta_ts>2009-12-20 23:06:51 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>Bug32680_r2.patch</filename>
            <type>text/plain</type>
            <size>1873</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDUyMjkzKQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMDktMTItMTggIERhbmllbCBCYXRlcyAgPGRi
YXRlc0ByaW0uY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0zMjY4MAorCisg
ICAgICAgIEZpeGVzIGFuIGlzc3VlIGluIGJ1aWx0RHlsaWJQYXRoRm9yTmFtZSBzbyB0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ndXJhdGlvblByb2R1Y3REaXIvbGliLyRsaWJyYXJ5TmFtZS5mcmFt
ZXdvcmsvJGxpYnJhcnlOYW1lIjsKLSAgICAgICAgfSBlbHNpZiAoaXNXaW5kb3dzKCkgb3IgaXND
eWd3aW4oKSkgewotICAgICAgICAgICAgcmV0dXJuICIkY29uZmlndXJhdGlvblByb2R1Y3REaXIv
bGliLyRsaWJyYXJ5TmFtZS5kbGwiOworICAgICAgICB9IGVsc2lmIChpc1dpbmRvd3MoKSkgewor
ICAgICAgICAgICAgY2hvbXAobXkgJG1rc3BlYyA9IGBxbWFrZSAtcXVlcnkgUU1BS0VfTUtTUEVD
U2ApOworICAgICAgICAgICAgbXkgJHF0TWFqb3JWZXJzaW9uID0gcmV0cmlldmVRTWFrZXNwZWNW
YXIoIiRta3NwZWMvcWNvbmZpZy5wcmkiLCAiUVRfTUFKT1JfVkVSU0lPTiIpOworICAgICAgICAg
ICAgaWYgKCRxdE1ham9yVmVyc2lvbiBlcSAidW5rbm93biIpIHsKKyAgICAgICAgICAgICAgICAk
cXRNYWpvclZlcnNpb24gPSAiIjsKKyAgICAgICAgICAgIH0KKyAgICAgICAgICAgIHJldHVybiAi
JGNvbmZpZ3VyYXRpb25Qcm9kdWN0RGlyL2xpYi8kbGlicmFyeU5hbWUkcXRNYWpvclZlcnNpb24u
ZGxsIjsKICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgIHJldHVybiAiJGNvbmZpZ3VyYXRp
b25Qcm9kdWN0RGlyL2xpYi9saWIkbGlicmFyeU5hbWUuc28iOwogICAgICAgICB9Cg==
</data>
<flag name="review"
          id="27139"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>