RESOLVED FIXED 192541
Build failure due to missing include of APIWebsiteDataStore.h
https://bugs.webkit.org/show_bug.cgi?id=192541
Summary Build failure due to missing include of APIWebsiteDataStore.h
Adrian Perez
Reported 2018-12-09 08:10:20 PST
Found this while making a WPE build with -DCMAKE_BUILD_TYPE=Debug and it looks like a missing #include which went unnoticed due to the usage of unified sources. We really should have a way of disabling unified sources and have at least one EWS do builds with them disabled to catch this kind of issues ~_~ --- In file included from DerivedSources/WebKit/unified-sources/UnifiedSource47.cpp:1: ../Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp: In constructor WebKit::WebsiteDataStoreConfiguration::WebsiteDataStoreConfiguration()’: ../Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp:33:46: error: ‘API::WebsiteDataStore’ has not been declared : m_resourceLoadStatisticsDirectory(API::WebsiteDataStore::defaultResourceLoadStatisticsDirectory()) ^~~~~~~~~~~~~~~~
Attachments
Patch (1.35 KB, patch)
2018-12-09 08:21 PST, Adrian Perez
no flags
Patch for landing (1.34 KB, patch)
2018-12-09 11:40 PST, Adrian Perez
no flags
Adrian Perez
Comment 1 2018-12-09 08:21:22 PST
youenn fablet
Comment 2 2018-12-09 09:19:14 PST
Comment on attachment 356922 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=356922&action=review > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp:27 > + We usually do not put a line between config.h and the header of the corresponding cpp.
Michael Catanzaro
Comment 3 2018-12-09 10:19:46 PST
(In reply to Adrian Perez from comment #0) > We really should have a way of disabling unified sources and have > at least one EWS do builds with them disabled to catch this kind > of issues ~_~ The answer will always be: if there's a way to disable unified sources, people will use it, and they will introduce build failures that only occur with unified sources enabled. What I don't understand is why you hit this build failure when none of the bots did. I presume a different set of build flags somehow results in different unified source bundles, which is a worrisome prospect.
Adrian Perez
Comment 4 2018-12-09 11:35:34 PST
(In reply to Michael Catanzaro from comment #3) > (In reply to Adrian Perez from comment #0) > > We really should have a way of disabling unified sources and have > > at least one EWS do builds with them disabled to catch this kind > > of issues ~_~ > > The answer will always be: if there's a way to disable unified sources, > people will use it, and they will introduce build failures that only occur > with unified sources enabled. Wrong: people will use whatever is the default. If we have EWS bots which build both *with* and *without* unified sources, breaking any of them would prevent patches from going in, which would ensure that both modes are always working. > What I don't understand is why you hit this build failure when none of the > bots did. I presume a different set of build flags somehow results in > different unified source bundles, which is a worrisome prospect. Yes, I am working on having content extensions working for the WPE and GTK+ ports, so on top of having the option enabled there are additional files added to the list of sources to build ;-)
Adrian Perez
Comment 5 2018-12-09 11:36:28 PST
(In reply to youenn fablet from comment #2) > Comment on attachment 356922 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=356922&action=review > > > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp:27 > > + > > We usually do not put a line between config.h and the header of the > corresponding cpp. I think the style checker complained, but I'll double-check before landing. Thanks for the review!
Adrian Perez
Comment 6 2018-12-09 11:40:21 PST
Created attachment 356927 [details] Patch for landing
Adrian Perez
Comment 7 2018-12-09 11:43:32 PST
(In reply to Adrian Perez from comment #5) > (In reply to youenn fablet from comment #2) > > Comment on attachment 356922 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=356922&action=review > > > > > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp:27 > > > + > > > > We usually do not put a line between config.h and the header of the > > corresponding cpp. > > I think the style checker complained, but I'll double-check before > landing. Thanks for the review! You were right -- the style checker complained about a different thing (I still had the message in the scrollback of my terminal emulator!). I have removed the empty line as suggested and re-sent the patch for landing. :)
WebKit Commit Bot
Comment 8 2018-12-09 12:17:28 PST
Comment on attachment 356927 [details] Patch for landing Clearing flags on attachment: 356927 Committed r239022: <https://trac.webkit.org/changeset/239022>
WebKit Commit Bot
Comment 9 2018-12-09 12:17:29 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10 2018-12-09 12:18:46 PST
Note You need to log in before you can comment on or make changes to this bug.