<?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>131756</bug_id>
          
          <creation_ts>2014-04-16 13:39:05 -0700</creation_ts>
          <short_desc>Fix CodeGenerator.pm to only write files if the generated content has changed</short_desc>
          <delta_ts>2016-11-10 19:03:07 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</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="Bem Jones-Bey">bjonesbe</reporter>
          <assigned_to name="Bem Jones-Bey">bjonesbe</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fujii</cc>
    
    <cc>mjs</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1001305</commentid>
    <comment_count>0</comment_count>
    <who name="Bem Jones-Bey">bjonesbe</who>
    <bug_when>2014-04-16 13:39:05 -0700</bug_when>
    <thetext>Fix CodeGenerator.pm to only write files if the generated content has changed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001307</commentid>
    <comment_count>1</comment_count>
      <attachid>229475</attachid>
    <who name="Bem Jones-Bey">bjonesbe</who>
    <bug_when>2014-04-16 13:41:32 -0700</bug_when>
    <thetext>Created attachment 229475
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001308</commentid>
    <comment_count>2</comment_count>
      <attachid>229475</attachid>
    <who name="Sam Weinig">sam</who>
    <bug_when>2014-04-16 13:42:49 -0700</bug_when>
    <thetext>Comment on attachment 229475
Patch

Sweet!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001326</commentid>
    <comment_count>3</comment_count>
      <attachid>229475</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-16 14:14:52 -0700</bug_when>
    <thetext>Comment on attachment 229475
Patch

Clearing flags on attachment: 229475

Committed r167384: &lt;http://trac.webkit.org/changeset/167384&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001327</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-16 14:14:56 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001583</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-04-17 09:38:44 -0700</bug_when>
    <thetext>I thought that we decided against this approach several times before, because it means that input files will always be newer than the outputs, so we will be running CodeGenerator.pm on most inputs every time.

Am I missing something?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001620</commentid>
    <comment_count>6</comment_count>
    <who name="Bem Jones-Bey">bjonesbe</who>
    <bug_when>2014-04-17 11:31:10 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; I thought that we decided against this approach several times before, because it means that input files will always be newer than the outputs, so we will be running CodeGenerator.pm on most inputs every time.
&gt; 
&gt; Am I missing something?

You&apos;re right, that is a problem with this change. I believe I can fix that problem, however. I&apos;ll work on a fix for that today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001711</commentid>
    <comment_count>7</comment_count>
    <who name="Bem Jones-Bey">bjonesbe</who>
    <bug_when>2014-04-17 15:11:22 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; I thought that we decided against this approach several times before, because it means that input files will always be newer than the outputs, so we will be running CodeGenerator.pm on most inputs every time.
&gt; &gt; 
&gt; &gt; Am I missing something?
&gt; 
&gt; You&apos;re right, that is a problem with this change. I believe I can fix that problem, however. I&apos;ll work on a fix for that today.

I have a fix for the Mac build in Bug 131820.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001787</commentid>
    <comment_count>8</comment_count>
    <who name="Bem Jones-Bey">bjonesbe</who>
    <bug_when>2014-04-17 18:05:50 -0700</bug_when>
    <thetext>Reverted r167384 for reason:

Sounds like this isn&apos;t the right fix, and causes generation to run far too often.

Committed r167474: &lt;http://trac.webkit.org/changeset/167474&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1004794</commentid>
    <comment_count>9</comment_count>
    <who name="Bem Jones-Bey">bjonesbe</who>
    <bug_when>2014-04-28 17:30:31 -0700</bug_when>
    <thetext>I have no brilliant ideas on fixing this in the near term, so closing for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1250116</commentid>
    <comment_count>10</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2016-11-10 19:03:07 -0800</bug_when>
    <thetext>generate-bindings-all.pl solves the original problem in a different approach.

* Bug 161433 – [CMake] CMake does not support the dep files for implicit dependency
* Bug 164054 – generate-bindings-all.pl should recompile supplemented IDL if its supplemental IDL are added or removed
* Bug 164121 – [CMake] Changing enabled features should trigger recompiling all IDL</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>229475</attachid>
            <date>2014-04-16 13:41:32 -0700</date>
            <delta_ts>2014-04-16 14:14:52 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-131756-20140416134110.patch</filename>
            <type>text/plain</type>
            <size>1777</size>
            <attacher name="Bem Jones-Bey">bjonesbe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vbGRjb250ZW50czsKKyAgICB9
CisKKyAgICBvcGVuIG15ICRmaCwgIj4iLCAkZmlsZU5hbWUgb3IgZGllICJDb3VsZG4ndCBvcGVu
ICRmaWxlTmFtZTogJCFcbiI7CisgICAgcHJpbnQgJGZoICRjb250ZW50czsKKyAgICBjbG9zZSAk
Zmggb3IgZGllICJDb3VsZG4ndCBjbG9zZSAkZmlsZU5hbWU6ICQhXG4iCiB9CiAKIHN1YiBGb3JB
bGxQYXJlbnRzCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>