<?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>94914</bug_id>
          
          <creation_ts>2012-08-24 01:51:41 -0700</creation_ts>
          <short_desc>[Qt] WebKit fails to detect QtQuick2 if Qt is built with -prefix</short_desc>
          <delta_ts>2012-09-11 10:56:51 -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>Platform</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>76773</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Hausmann">hausmann</reporter>
          <assigned_to name="Tor Arne Vestbø">vestbo</assigned_to>
          <cc>ossy</cc>
    
    <cc>rafael.lobo</cc>
    
    <cc>vestbo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>703895</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-08-24 01:51:41 -0700</bug_when>
    <thetext>In a top-level Qt build, a .qmake.super file provides QMAKEMODULES += /path/to/modules/mkspecs lines that allow qmake to locate other Qt modules prior to their installation to the target prefix, allowing for example WebKit to link compile and link against QtQuick2.

When build-webkit calls qmake on configure.pro to detect modules and system features, qmake is invoked with -nocache, which disables the reading of the .qmake.super file and therefore results in WebKit failing to detect the presense of QtQuick2 and other modules.


One possible solution would be to manually remove the .qmake.cache file that the -nocache parameter tries to circumvent prior to calling qmake on configure.pro, another solution would be to get rid of this step altogether and always use configure.pro from within the top-level WebKit.pro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>703898</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-08-24 01:55:17 -0700</bug_when>
    <thetext>It seems to me that removing the extra call to qmake -nocache configure.pro from build-wekbit would be the preferred solution.

I wonder how that would look like in practice, including the elimintation of .webkit.config. How do we detect that the defines changed and that we need a clean build?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>703901</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-08-24 01:58:13 -0700</bug_when>
    <thetext>CC&apos;ing Ossy as this may possibly affect the bot operations, depending on the solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>704018</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-24 05:49:10 -0700</bug_when>
    <thetext>I don&apos;t know too much about these feature detection things 
inside Qt, Tor Arne and Ossi are better choice. :)

But we should preserve this quick/full-incremental/clean build feature
somehow, it is the one of the most useful thing in our build system.

Triggering clean build on the bots manually because of a changed 
define day by day was terrible. I don&apos;t want to do it again. :)

If there isn&apos;t better solution, can&apos;t we differentiate somehow the 
standalone WebKit builds (developer build) and the top-level Qt builds?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>711205</commentid>
    <comment_count>4</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2012-09-04 10:10:01 -0700</bug_when>
    <thetext>Taking</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>717384</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-09-11 10:56:51 -0700</bug_when>
    <thetext>Committed r128174: &lt;http://trac.webkit.org/changeset/128174&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>