<?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>152959</bug_id>
          
          <creation_ts>2016-01-10 09:47:34 -0800</creation_ts>
          <short_desc>[webkitdirs] Use CMake to determine architecture on isCMakeBuild()</short_desc>
          <delta_ts>2016-01-11 17:30:29 -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>WebKit Local 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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Konstantin Tokarev">annulen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1154223</commentid>
    <comment_count>0</comment_count>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-10 09:47:34 -0800</bug_when>
    <thetext>Use isCMakeBuild() condition instead of isEfl() || isGtk()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154229</commentid>
    <comment_count>1</comment_count>
      <attachid>268653</attachid>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-10 10:32:31 -0800</bug_when>
    <thetext>Created attachment 268653
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154231</commentid>
    <comment_count>2</comment_count>
      <attachid>268655</attachid>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-10 10:34:44 -0800</bug_when>
    <thetext>Created attachment 268655
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154240</commentid>
    <comment_count>3</comment_count>
      <attachid>268655</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-01-10 11:28:53 -0800</bug_when>
    <thetext>Comment on attachment 268655
Patch

I think this looks good. I would like Alex to double-check, but if the Windows EWW passes I think it&apos;s appropriate to land this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154309</commentid>
    <comment_count>4</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-01-10 21:21:13 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Comment on attachment 268655 [details]
&gt; Patch
&gt; 
&gt; I think this looks good. I would like Alex to double-check, but if the
&gt; Windows EWW passes I think it&apos;s appropriate to land this.

LGTM too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154360</commentid>
    <comment_count>5</comment_count>
      <attachid>268655</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-01-11 06:15:42 -0800</bug_when>
    <thetext>Comment on attachment 268655
Patch

This patch passes win-ews which is built using cmake. I think this change is fine for win port as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154363</commentid>
    <comment_count>6</comment_count>
      <attachid>268655</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-11 07:01:54 -0800</bug_when>
    <thetext>Comment on attachment 268655
Patch

Clearing flags on attachment: 268655

Committed r194849: &lt;http://trac.webkit.org/changeset/194849&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154364</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-01-11 07:01:59 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154453</commentid>
    <comment_count>8</comment_count>
      <attachid>268655</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-01-11 12:48:21 -0800</bug_when>
    <thetext>Comment on attachment 268655
Patch

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

&gt; Tools/Scripts/webkitdirs.pm:342
&gt;          $host_processor = `cmake --system-information | grep CMAKE_SYSTEM_PROCESSOR`;

We must not be running this on Windows.  I don&apos;t think we require grep to be installed.  If this doesn&apos;t break anything, then I guess it can stay, but I don&apos;t think this was a beneficial change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154461</commentid>
    <comment_count>9</comment_count>
      <attachid>268655</attachid>
    <who name="Konstantin Tokarev">annulen</who>
    <bug_when>2016-01-11 13:09:37 -0800</bug_when>
    <thetext>Comment on attachment 268655
Patch

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

&gt;&gt; Tools/Scripts/webkitdirs.pm:342
&gt;&gt;          $host_processor = `cmake --system-information | grep CMAKE_SYSTEM_PROCESSOR`;
&gt; 
&gt; We must not be running this on Windows.  I don&apos;t think we require grep to be installed.  If this doesn&apos;t break anything, then I guess it can stay, but I don&apos;t think this was a beneficial change.

If you want, I can fix it to avoid grep invocation, with pure perl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154465</commentid>
    <comment_count>10</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-01-11 13:16:06 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; If you want, I can fix it to avoid grep invocation, with pure perl.
Perl is definitely a requirement.  That would be nice, although I&apos;m not sure what if anything that would fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154466</commentid>
    <comment_count>11</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-01-11 13:17:35 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; Comment on attachment 268655 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=268655&amp;action=review
&gt; 
&gt; &gt;&gt; Tools/Scripts/webkitdirs.pm:342
&gt; &gt;&gt;          $host_processor = `cmake --system-information | grep CMAKE_SYSTEM_PROCESSOR`;
&gt; &gt; 
&gt; &gt; We must not be running this on Windows.  I don&apos;t think we require grep to be installed.  If this doesn&apos;t break anything, then I guess it can stay, but I don&apos;t think this was a beneficial change.
&gt; 
&gt; If you want, I can fix it to avoid grep invocation, with pure perl.

Yes -- we must be running this and just not noticing the failure. Or, Cygwin &apos;grep&apos; is getting used. We&apos;d like to move off of Cygwin in the future, so making this a pure Perl implementation would be much better.

Could you do that as a separate bug, though?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154519</commentid>
    <comment_count>12</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-11 15:48:21 -0800</bug_when>
    <thetext>One good solution would be to change this condition to:

isCMakeBuild() &amp;&amp; !isWindows()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154571</commentid>
    <comment_count>13</comment_count>
      <attachid>268655</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-01-11 17:25:36 -0800</bug_when>
    <thetext>Comment on attachment 268655
Patch

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

&gt;&gt;&gt;&gt; Tools/Scripts/webkitdirs.pm:342
&gt;&gt;&gt;&gt;          $host_processor = `cmake --system-information | grep CMAKE_SYSTEM_PROCESSOR`;
&gt;&gt;&gt; 
&gt;&gt;&gt; We must not be running this on Windows.  I don&apos;t think we require grep to be installed.  If this doesn&apos;t break anything, then I guess it can stay, but I don&apos;t think this was a beneficial change.
&gt;&gt; 
&gt;&gt; If you want, I can fix it to avoid grep invocation, with pure perl.
&gt; 
&gt; Yes -- we must be running this and just not noticing the failure. Or, Cygwin &apos;grep&apos; is getting used. We&apos;d like to move off of Cygwin in the future, so making this a pure Perl implementation would be much better.
&gt; 
&gt; Could you do that as a separate bug, though?

I thought that win port is using Cygwin. Sorry for missing the plan. Anyway I just file a new bug for this instead - https://bugs.webkit.org/show_bug.cgi?id=152998.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154572</commentid>
    <comment_count>14</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-01-11 17:27:43 -0800</bug_when>
    <thetext>(In reply to comment #13)
&gt; I thought that win port is using Cygwin. Sorry for missing the plan.
No problem.  Most of our builders do use Cygwin, but we don&apos;t require it and we&apos;re trying to (slowly) move away from using it.  The WinCairo bot doesn&apos;t use Cygwin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154573</commentid>
    <comment_count>15</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-01-11 17:30:29 -0800</bug_when>
    <thetext>(In reply to comment #14)
&gt; (In reply to comment #13)
&gt; &gt; I thought that win port is using Cygwin. Sorry for missing the plan.
&gt; No problem.  Most of our builders do use Cygwin, but we don&apos;t require it and
&gt; we&apos;re trying to (slowly) move away from using it.  The WinCairo bot doesn&apos;t
&gt; use Cygwin.

I see. I will support the plan as well.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>268653</attachid>
            <date>2016-01-10 10:32:31 -0800</date>
            <delta_ts>2016-01-10 10:34:37 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-152959-20160110213159.patch</filename>
            <type>text/plain</type>
            <size>2254</size>
            <attacher name="Konstantin Tokarev">annulen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk0ODI2CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKa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CBpZiBpdCBpcyBwcmVzZW50LgorICAgICAgICAg
ICAgJGFyY2hpdGVjdHVyZSA9IGBhcmNoYDsKKyAgICAgICAgICAgIGNob21wICRhcmNoaXRlY3R1
cmU7CisgICAgICAgIH0KIAotICAgIGlmICghJGFyY2hpdGVjdHVyZSAmJiAoaXNHdGsoKSB8fCBp
c0FwcGxlTWFjV2ViS2l0KCkgfHwgaXNFZmwoKSkpIHsKLSAgICAgICAgIyBGYWxsIGJhY2sgdG8g
b3V0cHV0IG9mIGB1bmFtZSAtbScsIGlmIGl0IGlzIHByZXNlbnQuCi0gICAgICAgICRhcmNoaXRl
Y3R1cmUgPSBgdW5hbWUgLW1gOwotICAgICAgICBjaG9tcCAkYXJjaGl0ZWN0dXJlOworICAgICAg
ICBpZiAoISRhcmNoaXRlY3R1cmUpIHsKKyAgICAgICAgICAgICMgRmFsbCBiYWNrIHRvIG91dHB1
dCBvZiBgdW5hbWUgLW0nLCBpZiBpdCBpcyBwcmVzZW50LgorICAgICAgICAgICAgJGFyY2hpdGVj
dHVyZSA9IGB1bmFtZSAtbWA7CisgICAgICAgICAgICBjaG9tcCAkYXJjaGl0ZWN0dXJlOworICAg
ICAgICB9CiAgICAgfQogCiAgICAgJGFyY2hpdGVjdHVyZSA9ICd4ODZfNjQnIGlmICgkYXJjaGl0
ZWN0dXJlID1+IC9hbWQ2NC8gJiYgaXNCU0QoKSk7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>268655</attachid>
            <date>2016-01-10 10:34:44 -0800</date>
            <delta_ts>2016-01-11 07:01:54 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-152959-20160110213411.patch</filename>
            <type>text/plain</type>
            <size>1323</size>
            <attacher name="Konstantin Tokarev">annulen</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTk0ODI2CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy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