<?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>28225</bug_id>
          
          <creation_ts>2009-08-12 13:07:38 -0700</creation_ts>
          <short_desc>check-webkit-style uses python from /usr/bin instead of the PATH</short_desc>
          <delta_ts>2009-09-02 01:01:34 -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>Linux</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="Carol Szabo">carol</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>eric</cc>
    
    <cc>laszlo.gombos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>139490</commentid>
    <comment_count>0</comment_count>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-08-12 13:07:38 -0700</bug_when>
    <thetext>check-webkit-style starts with &apos;#!/usr/bin/python&apos;.
This prevents usage of the script on computers where /usr/bin/python is absent or is too old even if an appropriate python version exists in the PATH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139501</commentid>
    <comment_count>1</comment_count>
      <attachid>34686</attachid>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-08-12 13:34:50 -0700</bug_when>
    <thetext>Created attachment 34686
Patch: uses python from $PATH

This solution was suggested by kollivier on the #webkit IRC channel. It worked for me and it may be useful to others.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139524</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-08-12 13:58:21 -0700</bug_when>
    <thetext>None of our existing scripts in WebKitTools/Scripts use this approach.  If this is a problem I don&apos;t see why we would only fix a single script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139525</commentid>
    <comment_count>3</comment_count>
      <attachid>34686</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-08-12 13:58:52 -0700</bug_when>
    <thetext>Comment on attachment 34686
Patch: uses python from $PATH

Clearing review flag for reason mentioned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139538</commentid>
    <comment_count>4</comment_count>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-08-12 14:13:48 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; None of our existing scripts in WebKitTools/Scripts use this approach.  If this
&gt; is a problem I don&apos;t see why we would only fix a single script.

Mark,
You are right that this would fix only one script and if otherwise the fix is acceptable I am willing to change all scripts in the directory to use the same approach.

On the other hand, there is one other script (roll-over-ChangeLogs) which uses the same approach, so it can be argued that since it is ok for that script it should be ok for this script too.

I believe that the /usr/bin/env approach  does not make sense for standard shells (such as /usr/bin/sh), but may be useful for perl, python and ruby scripts where many incompatible versions may exist in the system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142410</commentid>
    <comment_count>5</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2009-08-24 14:10:46 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #2)
&gt; &gt; None of our existing scripts in WebKitTools/Scripts use this approach.  If this
&gt; &gt; is a problem I don&apos;t see why we would only fix a single script.
&gt; 
&gt; Mark,
&gt; You are right that this would fix only one script and if otherwise the fix is
&gt; acceptable I am willing to change all scripts in the directory to use the same
&gt; approach.
&gt; 
&gt; On the other hand, there is one other script (roll-over-ChangeLogs) which uses
&gt; the same approach, so it can be argued that since it is ok for that script it
&gt; should be ok for this script too.
&gt; 
&gt; I believe that the /usr/bin/env approach  does not make sense for standard
&gt; shells (such as /usr/bin/sh), but may be useful for perl, python and ruby
&gt; scripts where many incompatible versions may exist in the system.

Perhaps -for now - we should just do this for &quot;top level&quot; python scripts. I did a quick search and I only found 3 scripts:

check-webkit-style, bugzilla-tool, run-webkit-unittests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>142627</commentid>
    <comment_count>6</comment_count>
      <attachid>34686</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-08-25 10:35:25 -0700</bug_when>
    <thetext>Comment on attachment 34686
Patch: uses python from $PATH

Marking r- per the discussion above.  Either we should do this for all scripts or none.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143709</commentid>
    <comment_count>7</comment_count>
      <attachid>38831</attachid>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-08-31 13:28:23 -0700</bug_when>
    <thetext>Created attachment 38831
This is the second patch attempt for this problem

I have applied the fix to all python scripts per lgombos&apos;s comments.
I was reluctant to fix all scripts in the directory as I am not familiar with many of them and I think that it is preferable that (as the case of style errors in C/C++ code) they are fixed as they cause problems.
I am not quite an &quot;if its not broken don&apos;t fix it&quot; kind of guy, but I am reluctant to take poorly understood (at least by me) risks when the benefit is small.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143948</commentid>
    <comment_count>8</comment_count>
      <attachid>38831</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-01 11:09:39 -0700</bug_when>
    <thetext>Comment on attachment 38831
This is the second patch attempt for this problem

Rejecting patch 38831 from commit-queue.  This patch will require manual commit.

Failed to run &quot;/Users/eseidel/Projects/WebKitSVN/WebKitTools/Scripts/update-webkit&quot;  exit_code: 1  cwd: None</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144043</commentid>
    <comment_count>9</comment_count>
      <attachid>38831</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-01 16:38:14 -0700</bug_when>
    <thetext>Comment on attachment 38831
This is the second patch attempt for this problem

svn: Failed to add file &apos;WebCore/bindings/v8/custom/V8WebSocketCustom.cpp&apos;: object of the same name already exists
This was a victim of bug 28603. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144073</commentid>
    <comment_count>10</comment_count>
      <attachid>38831</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-01 17:42:02 -0700</bug_when>
    <thetext>Comment on attachment 38831
This is the second patch attempt for this problem

Rejecting patch 38831 from commit-queue.  This patch will require manual commit.

[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--quiet&apos;, &apos;--exit-after-n-failures=1&apos;] failed with exit code 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144134</commentid>
    <comment_count>11</comment_count>
      <attachid>38831</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-02 00:45:03 -0700</bug_when>
    <thetext>Comment on attachment 38831
This is the second patch attempt for this problem

Flakey test. :(
compositing/color-matching/image-color-matching.html -&gt; crashed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144136</commentid>
    <comment_count>12</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-02 00:49:10 -0700</bug_when>
    <thetext>I believe that&apos;s just another instance of bug 28845 biting us. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144140</commentid>
    <comment_count>13</comment_count>
      <attachid>38831</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-02 01:01:30 -0700</bug_when>
    <thetext>Comment on attachment 38831
This is the second patch attempt for this problem

Clearing flags on attachment: 38831

Committed r47955: &lt;http://trac.webkit.org/changeset/47955&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>144141</commentid>
    <comment_count>14</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-09-02 01:01:34 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>34686</attachid>
            <date>2009-08-12 13:34:50 -0700</date>
            <delta_ts>2009-08-31 13:28:23 -0700</delta_ts>
            <desc>Patch: uses python from $PATH</desc>
            <filename>patchFor28225</filename>
            <type>text/plain</type>
            <size>999</size>
            <attacher name="Carol Szabo">carol</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDQ3MTQyKQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMDktMDgtMTIgIFN6YWJvIENhcm9sICA8Y2Fy
b2wuc3phYm9Abm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEp
LgorCisgICAgICAgIGNoZWNrLXdlYmtpdC1zdHlsZSB1c2VzIHB5dGhvbiBmcm9tIC91c3IvYmlu
IGluc3RlYWQgb2YgdGhlIFBBVEgKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hv
d19idWcuY2dpP2lkPTI4MjI1CisKKyAgICAgICAgKiBTY3JpcHRzL2NoZWNrLXdlYmtpdC1zdHls
ZToKKworICAgICAgICAgQ2hhbmdlZCB0byB1c2UgcHl0aG9uIGZyb20gdGhlIHBhdGggaW5zdGVh
ZCBvZiAvdXNyL2Jpbi4KKwogMjAwOS0wOC0xMiAgS2V2aW4gT2xsaXZpZXIgIDxrZXZpbm9AdGhl
b2xsaXZpZXJzLmNvbT4KIAogICAgICAgICB3eCB3YWYgYnVpbGQgZml4LCBhZGQgbmV3IGRpcmVj
dG9yaWVzIHRvIHRoZSBidWlsZC4KSW5kZXg6IFdlYktpdFRvb2xzL1NjcmlwdHMvY2hlY2std2Vi
a2l0LXN0eWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktpdFRvb2xzL1NjcmlwdHMvY2hlY2std2Via2l0
LXN0eWxlCShyZXZpc2lvbiA0NzEzMSkKKysrIFdlYktpdFRvb2xzL1NjcmlwdHMvY2hlY2std2Vi
a2l0LXN0eWxlCSh3b3JraW5nIGNvcHkpCkBAIC0xLDQgKzEsNCBAQAotIyEvdXNyL2Jpbi9weXRo
b24KKyMhL3Vzci9iaW4vZW52IHB5dGhvbgogIwogIyBDb3B5cmlnaHQgKEMpIDIwMDkgR29vZ2xl
IEluYy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KICMK
</data>
<flag name="review"
          id="19519"
          type_id="1"
          status="-"
          setter="eric"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>38831</attachid>
            <date>2009-08-31 13:28:23 -0700</date>
            <delta_ts>2009-09-02 01:01:30 -0700</delta_ts>
            <desc>This is the second patch attempt for this problem</desc>
            <filename>patchFor28225.txt</filename>
            <type>text/plain</type>
            <size>2572</size>
            <attacher name="Carol Szabo">carol</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDQ3OTAxKQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBA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MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0VG9vbHMvU2NyaXB0cy9ydW4td2Via2l0LXVuaXR0
ZXN0cwkocmV2aXNpb24gNDc4OTYpCisrKyBXZWJLaXRUb29scy9TY3JpcHRzL3J1bi13ZWJraXQt
dW5pdHRlc3RzCSh3b3JraW5nIGNvcHkpCkBAIC0xLDQgKzEsNCBAQAotIyEvdXNyL2Jpbi9weXRo
b24KKyMhL3Vzci9iaW4vZW52IHB5dGhvbgogIyBDb3B5cmlnaHQgKGMpIDIwMDkgR29vZ2xlIElu
Yy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KICMKICMgUmVkaXN0cmlidXRpb24gYW5kIHVzZSBpbiBz
b3VyY2UgYW5kIGJpbmFyeSBmb3Jtcywgd2l0aCBvciB3aXRob3V0CkluZGV4OiBXZWJLaXRUb29s
cy9TY3JpcHRzL3VwZGF0ZS1zb3VyY2VzLWxpc3QucHkKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0VG9v
bHMvU2NyaXB0cy91cGRhdGUtc291cmNlcy1saXN0LnB5CShyZXZpc2lvbiA0Nzg5NikKKysrIFdl
YktpdFRvb2xzL1NjcmlwdHMvdXBkYXRlLXNvdXJjZXMtbGlzdC5weQkod29ya2luZyBjb3B5KQpA
QCAtMSw0ICsxLDQgQEAKLSMhL3Vzci9iaW4vcHl0aG9uCisjIS91c3IvYmluL2VudiBweXRob24K
IAogIyBDb3B5cmlnaHQgKEMpIDIwMDcgS2V2aW4gT2xsaXZpZXIgIEFsbCByaWdodHMgcmVzZXJ2
ZWQuCiAjCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>