<?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>39567</bug_id>
          
          <creation_ts>2010-05-23 07:49:29 -0700</creation_ts>
          <short_desc>[GTK] Configure script should check the required GTK+ version</short_desc>
          <delta_ts>2010-06-01 17:10:15 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Joone Hur">joone</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bunk</cc>
    
    <cc>commit-queue</cc>
    
    <cc>gustavo</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>229480</commentid>
    <comment_count>0</comment_count>
      <attachid>56824</attachid>
    <who name="Joone Hur">joone</who>
    <bug_when>2010-05-23 07:49:29 -0700</bug_when>
    <thetext>Created attachment 56824
modified configure.ac

The current configure script doesn&apos;t check the required GTK+ version to 2.18
If the installed GTK+ is prior to 2.18, you can see the following build break message.

WebCore/platform/gtk/ScrollbarGtk.cpp:211: error: ‘gtk_widget_get_has_window’ was not declared in this scope

gtk_widget_get_has_window API has been introduced since 2.18
Therefore we need to modify configure.ac as follows,

diff --git a/configure.ac b/configure.ac
index 9757541..a076e35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,7 +205,7 @@ LIBXML_REQUIRED_VERSION=2.6
 
 # minimum GTK+ base dependencies
 PANGO_REQUIRED_VERSION=1.12
-GTK_REQUIRED_VERSION=2.10
+GTK_REQUIRED_VERSION=2.18</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229660</commentid>
    <comment_count>1</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-05-24 02:08:35 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Created an attachment (id=56824) [details]
&gt; modified configure.ac
&gt; 
&gt; The current configure script doesn&apos;t check the required GTK+ version to 2.18
&gt; If the installed GTK+ is prior to 2.18, you can see the following build break message.
&gt; 
&gt; WebCore/platform/gtk/ScrollbarGtk.cpp:211: error: ‘gtk_widget_get_has_window’ was not declared in this scope
&gt; 
&gt; gtk_widget_get_has_window API has been introduced since 2.18
&gt; Therefore we need to modify configure.ac as follows,
&gt; 
&gt; diff --git a/configure.ac b/configure.ac
&gt; index 9757541..a076e35 100644
&gt; --- a/configure.ac
&gt; +++ b/configure.ac
&gt; @@ -205,7 +205,7 @@ LIBXML_REQUIRED_VERSION=2.6
&gt; 
&gt;  # minimum GTK+ base dependencies
&gt;  PANGO_REQUIRED_VERSION=1.12
&gt; -GTK_REQUIRED_VERSION=2.10
&gt; +GTK_REQUIRED_VERSION=2.18

The required GTK+ version is 2.10, not 2.18. If we fail to compile with it then it&apos;s just a mistake, not intentional. In the case of gtk_widget_get_has_window this should be fixed in WebCore/platform/gtk/GtkVersioning.h, so not sure what&apos;s going on. Are you using svn trunk?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229730</commentid>
    <comment_count>2</comment_count>
    <who name="Joone Hur">joone</who>
    <bug_when>2010-05-24 07:05:47 -0700</bug_when>
    <thetext>I&apos;m using git trunk.

I think that GtkVersioning.h should be included in WebCore/platform/gtk/ScrollbarGtk.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>229870</commentid>
    <comment_count>3</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2010-05-24 13:30:54 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;m using git trunk.
&gt; 
&gt; I think that GtkVersioning.h should be included in WebCore/platform/gtk/ScrollbarGtk.cpp

That sounds right to me. Want to make a patch with a changelog? =)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230183</commentid>
    <comment_count>4</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-05-25 02:24:14 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;m using git trunk.
&gt; 
&gt; I think that GtkVersioning.h should be included in WebCore/platform/gtk/ScrollbarGtk.cpp

Duh, of course. As Gustavo says, a patch is welcome :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230243</commentid>
    <comment_count>5</comment_count>
      <attachid>57012</attachid>
    <who name="Joone Hur">joone</who>
    <bug_when>2010-05-25 06:32:30 -0700</bug_when>
    <thetext>Created attachment 57012
Proposed patch

Hi~

I made a patch.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230372</commentid>
    <comment_count>6</comment_count>
      <attachid>57012</attachid>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2010-05-25 11:14:47 -0700</bug_when>
    <thetext>Comment on attachment 57012
Proposed patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>230479</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian Bunk">bunk</who>
    <bug_when>2010-05-25 15:02:56 -0700</bug_when>
    <thetext>(In reply to comment #1)

&gt; The required GTK+ version is 2.10, not 2.18. If we fail to compile with it then it&apos;s just a mistake, not intentional. In the case of gtk_widget_get_has_window this should be fixed in WebCore/platform/gtk/GtkVersioning.h, so not sure what&apos;s going on. Are you using svn trunk?

Please have a look at #37085 where I try to explain why GTK+ versions &lt; 2.18 are unlikely to be used in practice due to the high glib dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231207</commentid>
    <comment_count>8</comment_count>
      <attachid>57012</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-05-27 03:39:42 -0700</bug_when>
    <thetext>Comment on attachment 57012
Proposed patch

Clearing flags on attachment: 57012

Committed r60288: &lt;http://trac.webkit.org/changeset/60288&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>231208</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-05-27 03:39:47 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232750</commentid>
    <comment_count>10</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2010-06-01 07:57:17 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Please have a look at #37085 where I try to explain why GTK+ versions &lt; 2.18 are unlikely to be used in practice due to the high glib dependency.

I said exactly that some time ago, and someone then explained to me that the reason we try to support 2.10 is because that&apos;s what Maemo had, and people saw it as a good thing to have (given it was not too complex). Maemo5 has moved to GTK+ 2.14, it seems, so the reasons to support something older than 2.14 may soon be gone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232996</commentid>
    <comment_count>11</comment_count>
    <who name="Adrian Bunk">bunk</who>
    <bug_when>2010-06-01 17:10:15 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #7)
&gt; &gt; Please have a look at #37085 where I try to explain why GTK+ versions &lt; 2.18 are unlikely to be used in practice due to the high glib dependency.
&gt; 
&gt; I said exactly that some time ago, and someone then explained to me that the reason we try to support 2.10 is because that&apos;s what Maemo had, and people saw it as a good thing to have (given it was not too complex). Maemo5 has moved to GTK+ 2.14, it seems, so the reasons to support something older than 2.14 may soon be gone.

Supporting GTK+ 2.14 alone won&apos;t help you for Maemo.

Maemo 5 ships with glib 2.20, and that is too old for the libsoup versions required by WebKitGTK+, and for WebKitGTK+ itself.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>56824</attachid>
            <date>2010-05-23 07:49:29 -0700</date>
            <delta_ts>2010-05-23 07:49:29 -0700</delta_ts>
            <desc>modified configure.ac</desc>
            <filename>gtk_version.diff</filename>
            <type>text/plain</type>
            <size>330</size>
            <attacher name="Joone Hur">joone</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2NvbmZpZ3VyZS5hYyBiL2NvbmZpZ3VyZS5hYwppbmRleCA5NzU3NTQxLi5h
MDc2ZTM1IDEwMDY0NAotLS0gYS9jb25maWd1cmUuYWMKKysrIGIvY29uZmlndXJlLmFjCkBAIC0y
MDUsNyArMjA1LDcgQEAgTElCWE1MX1JFUVVJUkVEX1ZFUlNJT049Mi42CiAKICMgbWluaW11bSBH
VEsrIGJhc2UgZGVwZW5kZW5jaWVzCiBQQU5HT19SRVFVSVJFRF9WRVJTSU9OPTEuMTIKLUdUS19S
RVFVSVJFRF9WRVJTSU9OPTIuMTAKK0dUS19SRVFVSVJFRF9WRVJTSU9OPTIuMTgKIAogIyBvcHRp
b25hbCBtb2R1bGVzCiBMSUJYU0xUX1JFUVVJUkVEX1ZFUlNJT049MS4xLjcK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>57012</attachid>
            <date>2010-05-25 06:32:30 -0700</date>
            <delta_ts>2010-05-27 03:39:41 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>webkitGtk.diff</filename>
            <type>text/plain</type>
            <size>922</size>
            <attacher name="Joone Hur">joone</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
ZTk4MTIzMC4uMGY5NGE0ZiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGI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