<?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>51394</bug_id>
          
          <creation_ts>2010-12-21 06:57:01 -0800</creation_ts>
          <short_desc>[GTK] minimal build with --database fails</short_desc>
          <delta_ts>2010-12-24 02:13:14 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>324987</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-12-21 06:57:01 -0800</bug_when>
    <thetext>../../WebKit/gtk/webkit/webkitprivate.cpp: In function ‘void webkit_init()’:
../../WebKit/gtk/webkit/webkitprivate.cpp:137: error: ‘cacheStorage’ is not a member of ‘WebCore’
make[1]: *** [WebKit/gtk/webkit/libwebkitgtk_3_0_la-webkitprivate.lo] Error 1

cacheStorage usage there should be guarded with ENABLE(OFFLINE_WEB_APPLICATIONS) as in ApplicationCacheStorage.cpp where it is implemented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324991</commentid>
    <comment_count>1</comment_count>
      <attachid>77109</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-12-21 07:09:59 -0800</bug_when>
    <thetext>Created attachment 77109
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326442</commentid>
    <comment_count>2</comment_count>
      <attachid>77109</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-23 19:30:37 -0800</bug_when>
    <thetext>Comment on attachment 77109
proposed patch

OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326443</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-23 19:30:59 -0800</bug_when>
    <thetext>Does this need both DATABASE and OFFLINE_WEB_APPLICATIONS?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326503</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-12-24 01:05:22 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Does this need both DATABASE and OFFLINE_WEB_APPLICATIONS?

Right webkit_set_web_database indeed needs DATABASE. Will fix up and commit, thanks for the review Eric!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326507</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-12-24 01:37:24 -0800</bug_when>
    <thetext>I&apos;ll guard the webkit_set_web_database_directory_path() call with ENABLE(DATABASE) and the cacheStorage() stuff with ENABLE(OFFLINE_WEB_APPLICATIONS)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326510</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-12-24 01:40:55 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; I&apos;ll guard the webkit_set_web_database_directory_path() call with ENABLE(DATABASE) and the cacheStorage() stuff with ENABLE(OFFLINE_WEB_APPLICATIONS)

Oh well ENABLE(DATABASE) is already checked in webkit_set_web_database_directory_path() code, so in the end I don&apos;t think it&apos;s needed in webkitprivate.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326527</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2010-12-24 02:13:14 -0800</bug_when>
    <thetext>Committed r74620: &lt;http://trac.webkit.org/changeset/74620&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77109</attachid>
            <date>2010-12-21 07:09:59 -0800</date>
            <delta_ts>2010-12-23 19:30:37 -0800</delta_ts>
            <desc>proposed patch</desc>
            <filename>proposed-patch.patch</filename>
            <type>text/plain</type>
            <size>1536</size>
            <attacher name="Philippe Normand">pnormand</attacher>
            
              <data encoding="base64">RnJvbSAwZjk2MWEwN2YyZDBlOGEzNjU2ODhkYzZmYzY4NTEzNzI2OTA2MTYwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXBwZSBOb3JtYW5kIDxwbm9ybWFuZEBpZ2FsaWEuY29t
PgpEYXRlOiBUdWUsIDIxIERlYyAyMDEwIDE2OjA5OjMzICswMTAwClN1YmplY3Q6IFtQQVRDSF0g
cHJvcG9zZWQgcGF0Y2gKCi0tLQogV2ViS2l0L2d0ay9DaGFuZ2VMb2cgICAgICAgICAgICAgICAg
fCAgIDExICsrKysrKysrKysrCiBXZWJLaXQvZ3RrL3dlYmtpdC93ZWJraXRwcml2YXRlLmNwcCB8
ICAgIDIgKy0KIDIgZmlsZXMgY2hhbmdlZCwgMTIgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbnMo
LSkKCmRpZmYgLS1naXQgYS9XZWJLaXQvZ3RrL0NoYW5nZUxvZyBiL1dlYktpdC9ndGsvQ2hhbmdl
TG9nCmluZGV4IDEzOTNjMmEuLmY3Mzk3NzkgMTAwNjQ0Ci0tLSBhL1dlYktpdC9ndGsvQ2hhbmdl
TG9nCisrKyBiL1dlYktpdC9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KCJVVEYtOCIpOwogCi0jaWYgRU5BQkxFKERB
VEFCQVNFKQorI2lmIEVOQUJMRShPRkZMSU5FX1dFQl9BUFBMSUNBVElPTlMpCiAgICAgZ2NoYXIq
IGRhdGFiYXNlRGlyZWN0b3J5ID0gZ19idWlsZF9maWxlbmFtZShnX2dldF91c2VyX2RhdGFfZGly
KCksICJ3ZWJraXQiLCAiZGF0YWJhc2VzIiwgTlVMTCk7CiAgICAgd2Via2l0X3NldF93ZWJfZGF0
YWJhc2VfZGlyZWN0b3J5X3BhdGgoZGF0YWJhc2VEaXJlY3RvcnkpOwogCi0tIAoxLjcuMi4z
</data>
<flag name="review"
          id="68154"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>