<?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>75863</bug_id>
          
          <creation_ts>2012-01-09 09:25:55 -0800</creation_ts>
          <short_desc>[Qt] REGRESSION(r100130): Clean build feature is broken.</short_desc>
          <delta_ts>2012-01-10 03:30:53 -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>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>Qt, QtTriaged</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>75777</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>hausmann</cc>
    
    <cc>kenneth</cc>
    
    <cc>noam</cc>
    
    <cc>ossy</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>532237</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-09 09:25:55 -0800</bug_when>
    <thetext>This bug is revealed by http://trac.webkit.org/changeset/104403 .

r104402 - everything is OK: http://build.webkit.sed.hu/builders/x86-32%20Linux%20Qt%20Release%20-%20Qt5-WebKit1/builds/2048
r104403 - everything is broken: http://build.webkit.sed.hu/builders/x86-32%20Linux%20Qt%20Release%20-%20Qt5-WebKit1/builds/2049

The build log said that &quot;Feature ENABLE_CSS_FILTERS added, clean build needed!&quot;, but somehow 
all layout tests fails. After removing WebKitBuild manually, everything is OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532240</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-09 09:31:28 -0800</bug_when>
    <thetext>You can easily reproduce this bug:
- update to r104402
- build
- update to r104403
- build
- run layout tests on css2.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532276</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-09 10:25:39 -0800</bug_when>
    <thetext>I dig a little bit and it seems HAVE_FONTCONFIG=1 is absolutely missing during the second build and it makes all tests fail, because webkit testsfonts aren&apos;t used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532305</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-09 10:40:07 -0800</bug_when>
    <thetext>I think the problem is in webkitdirs.pm - sub qtFeatureDefaults.
configure.pro is only called in build phase to determine if we have fontconfig or not. But feauteres.prf is called by build-webkit to set all defines passed to the build before build phase.

I&apos;ll continue digging tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532552</commentid>
    <comment_count>4</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2012-01-09 15:12:04 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I think the problem is in webkitdirs.pm - sub qtFeatureDefaults.
&gt; configure.pro is only called in build phase to determine if we have fontconfig or not. But feauteres.prf is called by build-webkit to set all defines passed to the build before build phase.
&gt; 
&gt; I&apos;ll continue digging tomorrow.

The configure-checks run by configure.pro cache their results in Tools/qmake/.qmake.cache, which should get loaded by features.prf on subsequent runs. I&apos;ll help you dig tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532923</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-10 02:58:05 -0800</bug_when>
    <thetext>The original change caused this regression:
http://trac.webkit.org/changeset/100130?format=diff&amp;new=100130

I managed to catch what cause this bug.
Now the build phases are the following if a feature define changes:
- configure.pro is called to determine feature defines (and config tests too which generates Tools/qmake/.qmake.cache)
- clean build triggered because a feature define changes (rmtree WebKitBuild)
- make, which will be incorrect, because Tools/qmake/.qmake.cache is non-existent and HAVE_FONTCONFIG=1 macro doesn&apos;t exist, but it should be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532929</commentid>
    <comment_count>6</comment_count>
      <attachid>121820</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-10 03:14:13 -0800</bug_when>
    <thetext>Created attachment 121820
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532931</commentid>
    <comment_count>7</comment_count>
      <attachid>121820</attachid>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2012-01-10 03:18:43 -0800</bug_when>
    <thetext>Comment on attachment 121820
Patch

cool, thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532939</commentid>
    <comment_count>8</comment_count>
      <attachid>121820</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-10 03:30:45 -0800</bug_when>
    <thetext>Comment on attachment 121820
Patch

Clearing flags on attachment: 121820

Committed r104548: &lt;http://trac.webkit.org/changeset/104548&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>532940</commentid>
    <comment_count>9</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-10 03:30:53 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>121820</attachid>
            <date>2012-01-10 03:14:13 -0800</date>
            <delta_ts>2012-01-10 03:30:45 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-75863-20120110121411.patch</filename>
            <type>text/plain</type>
            <size>1297</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA0NTQ2CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYmQ1OTgwMjc4MzQ0MDhlOWZmYTEwMTRiZGM5NDY3MTA0
YTQyZWZhYS4uM2QxOTNlOTkzMjNhOTkwMWU1NGQ2Y2U2MTFhNjNkNTA3ZmE2ZjY3ZiAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDEyLTAxLTEwICBDc2FiYSBPc3p0cm9nb27DoWMgIDxvc3N5QHdlYmtpdC5vcmc+CisK
KyAgICAgICAgW1F0XSBSRUdSRVNTSU9OKHIxMDAxMzApOiBDbGVhbiBidWlsZCBmZWF0dXJlIGlz
IGJyb2tlbi4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTc1ODYzCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
KiBTY3JpcHRzL3dlYmtpdGRpcnMucG06CisgICAgICAgIChidWlsZFFNYWtlUHJvamVjdCk6CisK
IDIwMTItMDEtMTAgIFplbm8gQWxiaXNzZXIgIDx6ZW5vQHdlYmtpdC5vcmc+CiAKICAgICAgICAg
W1F0XVtXSzJdIEZpeCBrZXlib2FyZCBzaG9ydGN1dHMgaW4gTWluaUJyb3dzZXIuCmRpZmYgLS1n
aXQgYS9Ub29scy9TY3JpcHRzL3dlYmtpdGRpcnMucG0gYi9Ub29scy9TY3JpcHRzL3dlYmtpdGRp
cnMucG0KaW5kZXggZWMwZDQzZjlhYzY4NmMyOTI2OGNmNTk3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