<?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>67035</bug_id>
          
          <creation_ts>2011-08-26 06:17:46 -0700</creation_ts>
          <short_desc>Modify the build bot master&apos;s script to pass --chromium-android where appropriate</short_desc>
          <delta_ts>2011-08-27 12:05:31 -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>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>
          
          <blocked>67032</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Beverloo">peter</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>aroben</cc>
    
    <cc>steveblock</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>457538</commentid>
    <comment_count>0</comment_count>
      <attachid>105356</attachid>
    <who name="Peter Beverloo">peter</who>
    <bug_when>2011-08-26 06:17:46 -0700</bug_when>
    <thetext>Created attachment 105356
Patch

In order to invoke the script changes from bug 67034, the build bot master has to be able to pass the --chromium-android argument for the update-webkit-chromium and build-webkit scripts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457698</commentid>
    <comment_count>1</comment_count>
      <attachid>105356</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-26 12:17:44 -0700</bug_when>
    <thetext>Comment on attachment 105356
Patch

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

&gt; Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:91
&gt; +def appendCustomBuildFlags(step, platform, fullPlatform=&quot;&quot;):

I see.  The issue here is that we&apos;re cross-compiling.  Maybe rather than &quot;fullPlatform&quot; we should say target_os ?

&gt; Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg:92
&gt; +    if fullPlatform == &quot;chromium-android&quot;:

This this becomes platform == &quot;chromium&quot; &amp;&amp; target_os == &quot;android&quot;.

That will generalize better if we want to support other sorts of cross compiling (e.g., building on Linux but targeting Mac).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457700</commentid>
    <comment_count>2</comment_count>
      <attachid>105356</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-26 12:21:37 -0700</bug_when>
    <thetext>Comment on attachment 105356
Patch

3434        self.platform = platform.split(&apos;-&apos;, 1)[0]
3535        self.fullPlatform = platform

^^ maybe put self.target_os = platform.split(&apos;-&apos;, 2)[1] ?

You can also leave this as fullPlatform if you think that&apos;s better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457951</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Beverloo">peter</who>
    <bug_when>2011-08-27 10:16:13 -0700</bug_when>
    <thetext>There are naming issues with generalizing it to a target OS.  Various other ports (e.g. win, qt and efl) don&apos;t use such a suffix, so we&apos;d have to check for the presence of a dash first, as an IndexError would occur otherwise.  Furthermore, Chromium&apos;s Mac bots use &quot;chromium-cg-mac&quot; as their platform, meaning that the target OS would be &quot;cg&quot;.

I agree that generalizing the approach would be desirable, but don&apos;t really see a way to do that without either loosing chromium-cg-mac&apos;s history by renaming it, or rather, adding an exception for their naming scheme and specifying future platform strings to be [port]-[target_os].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457954</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-27 10:54:17 -0700</bug_when>
    <thetext>Yeah, you&apos;re right that we&apos;re not consistent enough to make this work well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457956</commentid>
    <comment_count>5</comment_count>
      <attachid>105356</attachid>
    <who name="Peter Beverloo">peter</who>
    <bug_when>2011-08-27 11:02:40 -0700</bug_when>
    <thetext>Comment on attachment 105356
Patch

Ok. I&apos;m marking this as cq? then, thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457965</commentid>
    <comment_count>6</comment_count>
      <attachid>105356</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-27 12:05:27 -0700</bug_when>
    <thetext>Comment on attachment 105356
Patch

Clearing flags on attachment: 105356

Committed r93942: &lt;http://trac.webkit.org/changeset/93942&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>457966</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-27 12:05:31 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105356</attachid>
            <date>2011-08-26 06:17:46 -0700</date>
            <delta_ts>2011-08-27 12:05:27 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>patch-buildbot-master.patch</filename>
            <type>text/plain</type>
            <size>2999</size>
            <attacher name="Peter Beverloo">peter</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0J1aWxkU2xhdmVTdXBwb3J0L2J1aWxkLndlYmtpdC5vcmctY29u
ZmlnL21hc3Rlci5jZmcgYi9Ub29scy9CdWlsZFNsYXZlU3VwcG9ydC9idWlsZC53ZWJraXQub3Jn
LWNvbmZpZy9tYXN0ZXIuY2ZnCmluZGV4IDRmZWFhZjEuLmJkNDIxYmEgMTAwNjQ0Ci0tLSBhL1R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