<?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>199212</bug_id>
          
          <creation_ts>2019-06-25 16:47:49 -0700</creation_ts>
          <short_desc>Script which adjusts include paths in ANGLE&apos;s copied headers breaks incremental builds</short_desc>
          <delta_ts>2020-06-01 19:53:14 -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>ANGLE</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>169861</dependson>
    
    <dependson>197755</dependson>
          <blocked>198948</blocked>
    
    <blocked>212444</blocked>
    
    <blocked>212623</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kenneth Russell">kbr</reporter>
          <assigned_to name="Kenneth Russell">kbr</assigned_to>
          <cc>darin</cc>
    
    <cc>dino</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>graouts</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>krollin</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1547886</commentid>
    <comment_count>0</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2019-06-25 16:47:49 -0700</bug_when>
    <thetext>Per this discussion on webkit-dev:
https://lists.webkit.org/pipermail/webkit-dev/2019-June/030707.html

and turning on the additional build logging:
defaults write com.apple.dt.Xcode ExplainWhyBuildCommandsAreRun -bool YES

it&apos;s clear that the adjust-angle-include-paths.sh script which was added as a build phase in Issue 197755 is causing ANGLE&apos;s headers (specifically ShaderLang.h, but soon others) to be modified every time the build runs, causing excessive recompilation.

The necessary fix will be similar to that from Issue 169861.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547911</commentid>
    <comment_count>1</comment_count>
      <attachid>372886</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2019-06-25 17:52:39 -0700</bug_when>
    <thetext>Created attachment 372886
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547912</commentid>
    <comment_count>2</comment_count>
    <who name="EWS Watchlist">ews-watchlist</who>
    <bug_when>2019-06-25 17:54:46 -0700</bug_when>
    <thetext>Note that there are important steps to take when updating ANGLE. See http://trac.webkit.org/wiki/UpdatingANGLE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547913</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2019-06-25 17:55:32 -0700</bug_when>
    <thetext>Tested this modification locally. Works correctly on the first and subsequent builds.

Note that the fix from bug 169861 didn&apos;t really apply. These headers are copied out as part of the &quot;Headers&quot; build phase, and it wasn&apos;t feasible to try to prevent running the adjust-angle-include-paths.sh script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547926</commentid>
    <comment_count>4</comment_count>
      <attachid>372886</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2019-06-25 18:31:06 -0700</bug_when>
    <thetext>Comment on attachment 372886
Patch

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

&gt; Source/ThirdParty/ANGLE/ChangeLog:11
&gt; +	* adjust-angle-include-paths.sh:

I think there’s a tab here instead of spaces and the pre-commit Subversion hook will reject this patch as-is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547934</commentid>
    <comment_count>5</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-06-25 18:45:07 -0700</bug_when>
    <thetext>Committed r246825: &lt;https://trac.webkit.org/changeset/246825&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547969</commentid>
    <comment_count>6</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2019-06-25 20:57:05 -0700</bug_when>
    <thetext>Reverted r246825 for reason:

Breaks internal builds.

Committed r246832: &lt;https://trac.webkit.org/changeset/246832&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547970</commentid>
    <comment_count>7</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2019-06-25 20:58:57 -0700</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #6)
&gt; Reverted r246825 for reason:
&gt; 
&gt; Breaks internal builds.
&gt; 
&gt; Committed r246832: &lt;https://trac.webkit.org/changeset/246832&gt;
Emailed Dean the build failure log.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548053</commentid>
    <comment_count>8</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2019-06-26 10:26:09 -0700</bug_when>
    <thetext>(In reply to Darin Adler from comment #4)
&gt; Comment on attachment 372886 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=372886&amp;action=review
&gt; 
&gt; &gt; Source/ThirdParty/ANGLE/ChangeLog:11
&gt; &gt; +	* adjust-angle-include-paths.sh:
&gt; 
&gt; I think there’s a tab here instead of spaces and the pre-commit Subversion
&gt; hook will reject this patch as-is.

Sorry about that. I&apos;ll fix that up when attempting to reland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548074</commentid>
    <comment_count>9</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-06-26 11:28:19 -0700</bug_when>
    <thetext>\&lt;Root&gt;./usr/local/include/ANGLE/angle.timestamp
**** buildit [INFO ] 2019-06-25T19:03:34-0700 ****                  File appears to be empty which is not allowed.
**** buildit [INFO ] 2019-06-25T19:03:34-0700 ****  
**** buildit [INFO ] 2019-06-25T19:03:34-0700 ****          &lt;SDKContentRoot&gt;./usr/local/include/ANGLE/angle.timestamp
**** buildit [INFO ] 2019-06-25T19:03:34-0700 ****                  File appears to be empty which is not allowed.

Simple fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548075</commentid>
    <comment_count>10</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-06-26 11:28:56 -0700</bug_when>
    <thetext>Ken, I&apos;ll make the edit and re-land. Don&apos;t worry about submitting a new patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548079</commentid>
    <comment_count>11</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-06-26 11:37:30 -0700</bug_when>
    <thetext>Landed again in r246842</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548081</commentid>
    <comment_count>12</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2019-06-26 11:40:19 -0700</bug_when>
    <thetext>Thank you Dean for fixing up this patch and relanding it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1548208</commentid>
    <comment_count>13</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-06-26 16:40:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/52218406&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>372886</attachid>
            <date>2019-06-25 17:52:39 -0700</date>
            <delta_ts>2019-06-25 18:31:06 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-199212-20190625175238.patch</filename>
            <type>text/plain</type>
            <size>1812</size>
            <attacher name="Kenneth Russell">kbr</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQ2ODIxCmRpZmYgLS1naXQgYS9Tb3VyY2UvVGhpcmRQYXJ0
eS9BTkdMRS9DaGFuZ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ZSAiXChlZ2xleHRfYW5nbGVcfGds
MmV4dF9hbmdsZVx8U2hhZGVyVmFyc1wpLmgiLyNpbmNsdWRlIDxBTkdMRVwvXDEuaD4vCiAnIC1p
ICIiICRpCisgICAgICAgIGVjaG8gUG9zdHByb2Nlc3NlZCBBTkdMRSBoZWFkZXIgJGkKKyAgICBm
aQogZG9uZQorCit0b3VjaCAkb3V0cHV0X2Rpci9hbmdsZS50aW1lc3RhbXAK
</data>
<flag name="review"
          id="388678"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>