Bug 51394 - [GTK] minimal build with --database fails
Summary: [GTK] minimal build with --database fails
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-21 06:57 PST by Philippe Normand
Modified: 2010-12-24 02:13 PST (History)
1 user (show)

See Also:


Attachments
proposed patch (1.50 KB, patch)
2010-12-21 07:09 PST, Philippe Normand
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2010-12-21 06:57:01 PST
../../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.
Comment 1 Philippe Normand 2010-12-21 07:09:59 PST
Created attachment 77109 [details]
proposed patch
Comment 2 Eric Seidel (no email) 2010-12-23 19:30:37 PST
Comment on attachment 77109 [details]
proposed patch

OK.
Comment 3 Eric Seidel (no email) 2010-12-23 19:30:59 PST
Does this need both DATABASE and OFFLINE_WEB_APPLICATIONS?
Comment 4 Philippe Normand 2010-12-24 01:05:22 PST
(In reply to comment #3)
> 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!
Comment 5 Philippe Normand 2010-12-24 01:37:24 PST
I'll guard the webkit_set_web_database_directory_path() call with ENABLE(DATABASE) and the cacheStorage() stuff with ENABLE(OFFLINE_WEB_APPLICATIONS)
Comment 6 Philippe Normand 2010-12-24 01:40:55 PST
(In reply to comment #5)
> I'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't think it's needed in webkitprivate.cpp
Comment 7 Philippe Normand 2010-12-24 02:13:14 PST
Committed r74620: <http://trac.webkit.org/changeset/74620>