<?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>77112</bug_id>
          
          <creation_ts>2012-01-26 10:03:37 -0800</creation_ts>
          <short_desc>If the QTDIR environment variable is set, the build system fails to compile WinCairo</short_desc>
          <delta_ts>2012-02-13 12:55:15 -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>PC</rep_platform>
          <op_sys>Windows 7</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="David Delaune">david.delaune</reporter>
          <assigned_to name="Csaba Osztrogonác">ossy</assigned_to>
          <cc>aroben</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dbates</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>543226</commentid>
    <comment_count>0</comment_count>
    <who name="David Delaune">david.delaune</who>
    <bug_when>2012-01-26 10:03:37 -0800</bug_when>
    <thetext>Hi,

When the environment variable QTDIR is defined the build system fails to compile the WinCairo branch. The problem is in the perl module:

WebKit\Tools\Scripts\webkitdirs.pm

The sub determineIsQt() function contains the line:  $isQt = defined($ENV{&apos;QTDIR&apos;});

It could easily be fixed by adding a check for isWinCairo()

Best Wishes,
-David Delaune</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>544999</commentid>
    <comment_count>1</comment_count>
      <attachid>124522</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-30 04:08:58 -0800</bug_when>
    <thetext>Created attachment 124522
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>545171</commentid>
    <comment_count>2</comment_count>
      <attachid>124522</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2012-01-30 09:43:10 -0800</bug_when>
    <thetext>Comment on attachment 124522
Patch

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

&gt; Tools/Scripts/webkitdirs.pm:882
&gt;      # The presence of QTDIR only means Qt if --gtk or --wx or --efl or --blackberry or --chromium are not on the command-line

This comment should be updated to mention that we ignore the QTDIR environment variable when --wincairo is specified on the command line.

On another note, this exclusion list of ports is long. Maybe we should consider only building for Qt when the --qt command line option is explicitly specified. That is, don&apos;t check for a set QTDIR environment variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>546155</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-31 09:19:21 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 124522 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=124522&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/webkitdirs.pm:882
&gt; &gt;      # The presence of QTDIR only means Qt if --gtk or --wx or --efl or --blackberry or --chromium are not on the command-line
&gt; 
&gt; This comment should be updated to mention that we ignore the QTDIR environment variable when --wincairo is specified on the command line.

Good point, fixed.

&gt; On another note, this exclusion list of ports is long. Maybe we should consider only building for Qt when the --qt command line option is explicitly specified. That is, don&apos;t check for a set QTDIR environment variable.

I agree with you more or less ...

But in my opinion requiring from developer to use explicit --qt for build-webkit, run-javascriptcore-tests, run-webkit-tests isn&apos;t a good idea.

What do you think if we add an evironment for example DEFAULT_WEBKIT_PLATFORM, and developers can define a default platform on they work, but can be overriden with command line options: --gtk, --efl, ...

I think it can be useful for all WebKit developer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>546157</commentid>
    <comment_count>4</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-31 09:20:36 -0800</bug_when>
    <thetext>I think with this change we can expect that the developer set DEFAULT_WEBKIT_PLATFORM or add platform explicitly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>546158</commentid>
    <comment_count>5</comment_count>
      <attachid>124522</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-01-31 09:21:18 -0800</bug_when>
    <thetext>Comment on attachment 124522
Patch

Landed in http://trac.webkit.org/changeset/106363 with fixed comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>547110</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2012-02-01 09:04:24 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; [...]
&gt; What do you think if we add an evironment for example DEFAULT_WEBKIT_PLATFORM, and developers can define a default platform on they work, but can be overriden with command line options: --gtk, --efl, ...
&gt;

I don&apos;t have a strong opinion on this at this time.  Maybe other people have an opinion on this.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>124522</attachid>
            <date>2012-01-30 04:08:58 -0800</date>
            <delta_ts>2012-01-31 09:21:18 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-77112-20120130040856.patch</filename>
            <type>text/plain</type>
            <size>1382</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA2MjI5CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggN2M5YzNkZjU3ZGFjMGNmYjIzMTY4MGY1MDhiOTJkMjE1
ZTk4NzMxMC4uYTNkMjFhODFmMzhhZjBmNzhjODJlZWVjMjQ0OGIx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