<?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>111147</bug_id>
          
          <creation_ts>2013-02-28 23:41:33 -0800</creation_ts>
          <short_desc>[chromium] Use lipo(1) rather than file(1) to list library architectures.</short_desc>
          <delta_ts>2013-03-12 12:45:59 -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>New Bugs</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gavin Peters">gavinp</reporter>
          <assigned_to name="Gavin Peters">gavinp</assigned_to>
          <cc>eric</cc>
    
    <cc>japhet</cc>
    
    <cc>rsesek</cc>
    
    <cc>thakis</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>844859</commentid>
    <comment_count>0</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2013-02-28 23:41:33 -0800</bug_when>
    <thetext>[chromium] Use lipo(1) rather than file(1) to list library architectures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>844867</commentid>
    <comment_count>1</comment_count>
      <attachid>190894</attachid>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2013-02-28 23:50:48 -0800</bug_when>
    <thetext>Created attachment 190894
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>844868</commentid>
    <comment_count>2</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2013-02-28 23:55:56 -0800</bug_when>
    <thetext>japhet,

You have no idea how sad this build failure made me. I will not, except under duress, tell you how much time I wasted trying to figure this out.

WDYT? (of the patch, not my bad attitude)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>844869</commentid>
    <comment_count>3</comment_count>
      <attachid>190894</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-03-01 00:02:57 -0800</bug_when>
    <thetext>Comment on attachment 190894
Patch

otool also works.  nm might too. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853454</commentid>
    <comment_count>4</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2013-03-12 07:50:14 -0700</bug_when>
    <thetext>japhet? seidel?

Any chance at a review?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853537</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Chapin">japhet</who>
    <bug_when>2013-03-12 09:15:25 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; japhet? seidel?
&gt; 
&gt; Any chance at a review?

Not it. I don&apos;t speak .sh well enough to review it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853539</commentid>
    <comment_count>6</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2013-03-12 09:19:11 -0700</bug_when>
    <thetext>Thanks for getting back to me japhet. I found you using blame on that file, I guess you&apos;d reformatted it... I am aware of this curse. :D

thakis or rsesek, can either of you review this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853549</commentid>
    <comment_count>7</comment_count>
      <attachid>190894</attachid>
    <who name="Nico Weber">thakis</who>
    <bug_when>2013-03-12 09:31:32 -0700</bug_when>
    <thetext>Comment on attachment 190894
Patch

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

&gt; Source/WebCore/ChangeLog:6
&gt; +        Parsing file(1) output can be fragile; this patch replaces a use of file(1) to get

Which problem are you seeing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853574</commentid>
    <comment_count>8</comment_count>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2013-03-12 10:14:58 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 190894 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=190894&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:6
&gt; &gt; +        Parsing file(1) output can be fragile; this patch replaces a use of file(1) to get
&gt; 
&gt; Which problem are you seeing?

On my mac, I couldn&apos;t build Chromium. I have MacPorts, and the file(1) installed with that had incompatible output, which made ARCHS not get loaded correctly.

Since the script already uses lipo(1) later, and since it can output the data that&apos;s being looked for, that seemed the way to go, rather than coding /usr/bin/file or adding a more flexible parser of file(1)&apos;s output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853585</commentid>
    <comment_count>9</comment_count>
      <attachid>190894</attachid>
    <who name="Nico Weber">thakis</who>
    <bug_when>2013-03-12 10:24:37 -0700</bug_when>
    <thetext>Comment on attachment 190894
Patch

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

&gt;&gt;&gt; Source/WebCore/ChangeLog:6
&gt;&gt;&gt; +        Parsing file(1) output can be fragile; this patch replaces a use of file(1) to get
&gt;&gt; 
&gt;&gt; Which problem are you seeing?
&gt; 
&gt; On my mac, I couldn&apos;t build Chromium. I have MacPorts, and the file(1) installed with that had incompatible output, which made ARCHS not get loaded correctly.
&gt; 
&gt; Since the script already uses lipo(1) later, and since it can output the data that&apos;s being looked for, that seemed the way to go, rather than coding /usr/bin/file or adding a more flexible parser of file(1)&apos;s output.

Hm, ok. MacPorts breaks other stuff too (see e.g. the thread on chromium-dev from yesterday night), but if you&apos;re happy with being on the hook if the output of lipo varies over time, I can live with this :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853699</commentid>
    <comment_count>10</comment_count>
      <attachid>190894</attachid>
    <who name="Gavin Peters">gavinp</who>
    <bug_when>2013-03-12 12:31:57 -0700</bug_when>
    <thetext>Comment on attachment 190894
Patch

Thanks Nico.

If lipo changes, I assume I will be hearing about it quick fast.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853709</commentid>
    <comment_count>11</comment_count>
      <attachid>190894</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-12 12:45:56 -0700</bug_when>
    <thetext>Comment on attachment 190894
Patch

Clearing flags on attachment: 190894

Committed r145574: &lt;http://trac.webkit.org/changeset/145574&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>853710</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-12 12:45:59 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>190894</attachid>
            <date>2013-02-28 23:50:48 -0800</date>
            <delta_ts>2013-03-12 12:45:56 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-111147-20130301154659.patch</filename>
            <type>text/plain</type>
            <size>1607</size>
            <attacher name="Gavin Peters">gavinp</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTQ0MDg1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNmU1NzcyOGVjY2JlMmI4
MjIyZjBiZDhkMTk5N2ZiM2Y4ZjgzMDhiOC4uNWQ4YWJjOWFlNDgwZWJjYTg1NWY3MDcwMDQ1Mjdk
NTMwMjA5MDkyMCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE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