<?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>93258</bug_id>
          
          <creation_ts>2012-08-06 04:40:00 -0700</creation_ts>
          <short_desc>[Qt][WK2] Fix the --minimal build</short_desc>
          <delta_ts>2012-09-12 05:55:28 -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>New Bugs</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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>96494</dependson>
    
    <dependson>96495</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>hausmann</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>688006</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-06 04:40:00 -0700</bug_when>
    <thetext>Now the --minimal build is broken with Qt 5 with the following errors:
/home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginProcess.cpp: In member function &apos;void WebKit::PluginProcess::initialize(int, WebCore::RunLoop*)&apos;:
/home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginProcess.cpp:95: error: &apos;NetscapePlugin&apos; has not been declared
...
/home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginControllerProxy.cpp:88: error: &apos;releaseNPObject&apos; was not declared in this scope
/home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginControllerProxy.cpp:91: error: &apos;releaseNPObject&apos; was not declared in this scope
...
/home/oszi/WebKit/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp:59: error: ‘QLibrary’ was not declared in this scope

Do we want to support --minial build for Qt 5 WK2? 
Or should we do --minimal --no-webkit2 build on the minimal bot? (It works fine.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>688019</commentid>
    <comment_count>1</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-08-06 04:58:23 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Now the --minimal build is broken with Qt 5 with the following errors:
&gt; /home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginProcess.cpp: In member function &apos;void WebKit::PluginProcess::initialize(int, WebCore::RunLoop*)&apos;:
&gt; /home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginProcess.cpp:95: error: &apos;NetscapePlugin&apos; has not been declared
&gt; ...
&gt; /home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginControllerProxy.cpp:88: error: &apos;releaseNPObject&apos; was not declared in this scope
&gt; /home/oszi/WebKit/Source/WebKit2/PluginProcess/PluginControllerProxy.cpp:91: error: &apos;releaseNPObject&apos; was not declared in this scope
&gt; ...
&gt; /home/oszi/WebKit/Source/WebKit2/PluginProcess/qt/PluginProcessMainQt.cpp:59: error: ‘QLibrary’ was not declared in this scope

These look like a guard is missing somewhere. Is the revision which broke the build known?

&gt; 
&gt; Do we want to support --minial build for Qt 5 WK2? 
&gt; Or should we do --minimal --no-webkit2 build on the minimal bot? (It works fine.)

I personally think the minimal build is still valuable for testing at least one set of feature guards and as far as I remember the maintenance cost is not that high since the breakages were considerable rare.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>688975</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-08-07 02:19:57 -0700</bug_when>
    <thetext>I personally don&apos;t see much value in a minimal build, I never use it myself. So from my perspective it adds cost (maintenance) without any concrete value.

If you guys would like to maintain such a combination, then that&apos;s fine with me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>689006</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-08-07 03:30:39 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I personally don&apos;t see much value in a minimal build, I never use it myself. So from my perspective it adds cost (maintenance) without any concrete value.
&gt; 
&gt; If you guys would like to maintain such a combination, then that&apos;s fine with me.

Of course nobody use --minimal build, because it is too lightweight to be
useful in a real world application. But it is useful to prevent breaking
ENABLE(...)/USE(...) guards.

If somebody try to use a function outside ENABLE(FOO) guard which is defined inside ENABLE(FOO) guard, it will cause link fail on the --minimal bot.

The maintanance cost of it is minimal. Usually it&apos;s more than 
enough to ping the author and he/she will fix the breakage.

The question is now if we want to fix Qt-WK2 build with 
disabled ENABLE_NETSCAPE_PLUGIN_API or not. If no, we
can simple use minimal bot with --minimal --no-webkit2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>689042</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2012-08-07 04:42:36 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; The question is now if we want to fix Qt-WK2 build with 
&gt; disabled ENABLE_NETSCAPE_PLUGIN_API or not. If no, we
&gt; can simple use minimal bot with --minimal --no-webkit2.

I think supporting a build configuration for platforms that do not have NPAPI support makes sense. Any non-X11 linux based mobile platform for example falls into that category right now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>