Bug 118367 - Nix upstreaming - Adding build files and supporting scripts
Summary: Nix upstreaming - Adding build files and supporting scripts
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Marcelo Lira
URL:
Keywords:
Depends on: 118326 118331 118358 118368
Blocks: 117658
  Show dependency treegraph
 
Reported: 2013-07-03 12:47 PDT by Marcelo Lira
Modified: 2013-11-26 22:02 PST (History)
16 users (show)

See Also:


Attachments
Patch (69.69 KB, patch)
2013-07-03 13:12 PDT, Marcelo Lira
no flags Details | Formatted Diff | Diff
Patch (69.72 KB, patch)
2013-07-05 06:40 PDT, Marcelo Lira
no flags Details | Formatted Diff | Diff
Patch (69.13 KB, patch)
2013-07-15 15:31 PDT, Lauro Moura Maranhao Neto
no flags Details | Formatted Diff | Diff
Patch (64.56 KB, patch)
2013-10-30 10:44 PDT, Lauro Moura Maranhao Neto
no flags Details | Formatted Diff | Diff
Patch (68.09 KB, patch)
2013-11-25 14:31 PST, Thiago de Barros Lacerda
no flags Details | Formatted Diff | Diff
Fixing wrong dates in ChangeLogs (68.06 KB, patch)
2013-11-25 19:01 PST, Thiago de Barros Lacerda
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Lira 2013-07-03 12:47:51 PDT
All the cmake files needed to build Nix's WebCore, plus helper scripts.
Comment 1 Marcelo Lira 2013-07-03 13:12:54 PDT
Created attachment 206019 [details]
Patch
Comment 2 Gyuyoung Kim 2013-07-04 18:53:03 PDT
Comment on attachment 206019 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=206019&action=review

It looks you need to take care of placing files by alphabetic order first.

> Source/WebCore/PlatformNix.cmake:2
> +    "${WEBCORE_DIR}/platform/nix"

Please place files according to alphabetic order.

> Source/WebCore/PlatformNix.cmake:20
> +    page/nix/EventHandlerNix.cpp

It would be good if you do grouping as below,

page/nix/EventHandlerNix.cpp
page/TouchAdjustment.cpp

platform/Cursor.cpp
platform/ContextMenuNone.cpp

> Source/cmake/OptionsCommon.cmake:6
> +

Unneeded line.

> Tools/Scripts/build-webkit:153
> +  --nix                             Build the Nix port

Wrong alphabetic order.

> Tools/Scripts/run-javascriptcore-tests:60
> +    # Tests failing when running in BRT timezone

I'm not sure if you can skip these tests without considering other ports.

> Tools/Scripts/webkitdirs.pm:993
> +    # The presence of QTDIR only means Qt if --gtk or --efl or --blackberry or --wincairo or --nix are not on the command-line

Wrong line ?

> Tools/Scripts/webkitdirs.pm:1154
> +}

Missing a new line.
Comment 3 Marcelo Lira 2013-07-05 06:40:07 PDT
Created attachment 206146 [details]
Patch
Comment 4 Benjamin Poulain 2013-07-05 16:44:16 PDT
Comment on attachment 206146 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=206146&action=review

> Source/WebCore/ChangeLog:8
> +        No new tests (OOPS!).

Remove this line.

> Tools/Scripts/build-webkit:92
> +# Update defaults for the Nix port

Period.

> Tools/Scripts/run-javascriptcore-tests:60
> +    # Tests failing when running in BRT timezone

period.

> Tools/Scripts/run-javascriptcore-tests:63
> +    "ecma/Date/15.9.5.28-1.js",
> +    "ecma/Date/15.9.5.29-1.js",
> +    "ecma/Date/15.9.5.35-1.js",

What The Fuck?

> Tools/Scripts/webkitdirs.pm:993
> +    # The presence of QTDIR only means Qt if --gtk or --efl or --blackberry or --wincairo or --nix are not on the command-line

Period.
Comment 5 Lauro Moura Maranhao Neto 2013-07-15 15:31:51 PDT
Created attachment 206691 [details]
Patch

Updated patch after last comments. The JSC test was a local commit related to timezone problems and will be fixed in another bug.
Comment 6 Lauro Moura Maranhao Neto 2013-10-30 10:44:14 PDT
Created attachment 215523 [details]
Patch

Updated patch after some files were removed and making check-webkit-style happier.
Comment 7 Thiago de Barros Lacerda 2013-11-25 14:31:42 PST
Created attachment 217833 [details]
Patch
Comment 8 WebKit Commit Bot 2013-11-25 14:34:32 PST
Attachment 217833 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'CMakeLists.txt', u'ChangeLog', u'Source/CMakeLists.txt', u'Source/Platform/CMakeLists.txt', u'Source/Platform/ChangeLog', u'Source/Platform/PlatformNix.cmake', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/FeatureDefines.h', u'Source/WTF/wtf/Platform.h', u'Source/WTF/wtf/PlatformNix.cmake', u'Source/WebCore/CMakeLists.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/PlatformNix.cmake', u'Source/cmake/FindEGL.cmake', u'Source/cmake/FindOpenGLES2.cmake', u'Source/cmake/OptionsCommon.cmake', u'Source/cmake/OptionsNix.cmake', u'Tools/ChangeLog', u'Tools/Scripts/build-webkit', u'Tools/Scripts/run-nix-tests', u'Tools/Scripts/run-webkit-tests', u'Tools/Scripts/update-webkit-libs-jhbuild', u'Tools/Scripts/update-webkitnix-libs', u'Tools/Scripts/webkitdirs.pm', u'Tools/Scripts/webkitpy/common/config/ports.py', u'Tools/Scripts/webkitpy/port/factory.py', u'Tools/Scripts/webkitpy/port/nix.py', u'Tools/Scripts/webkitpy/port/nix_unittest.py', u'Tools/jhbuild/jhbuild-wrapper', u'Tools/nix/common.py', u'Tools/nix/jhbuild.modules', u'Tools/nix/jhbuildrc']" exit_code: 1
Source/WebCore/PlatformNix.cmake:316:  Alphabetical sorting problem. "# Uncomment it after https://bugs.webkit.org/show_bug.cgi?id=118598 is fixed and merged to Nix." should be before "platform/network/soup/SynchronousLoaderClientSoup.cpp".  [list/order] [5]
Source/WebCore/PlatformNix.cmake:317:  There should be exactly one empty line instead of 0 between "# Uncomment it after https://bugs.webkit.org/show_bug.cgi?id=118598 is fixed and merged to Nix." and "# platform/soup/SharedBufferSoup.cpp".  [list/emptyline] [5]
Source/Platform/PlatformNix.cmake:3:  Alphabetical sorting problem. "${CMAKE_BINARY_DIR} # For cmakeconfig.h" should be before "nix".  [list/order] [5]
Source/Platform/PlatformNix.cmake:4:  There should be exactly one empty line instead of 0 between "${CMAKE_BINARY_DIR} # For cmakeconfig.h" and "${WEBCORE_DIR}/platform/graphics/ # For IntRect.h".  [list/emptyline] [5]
Source/Platform/PlatformNix.cmake:5:  Alphabetical sorting problem. "${WTF_DIR} # For config.h" should be before "${WEBCORE_DIR}/platform/graphics/ # For IntRect.h".  [list/order] [5]
Source/WTF/wtf/PlatformNix.cmake:11:  Alphabetical sorting problem. "${GLIB_LIBRARIES}" should be before "pthread".  [list/order] [5]
Source/WTF/wtf/PlatformNix.cmake:12:  Alphabetical sorting problem. "${GLIB_GIO_LIBRARIES}" should be before "${GLIB_LIBRARIES}".  [list/order] [5]
Total errors found: 7 in 32 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Thiago de Barros Lacerda 2013-11-25 19:01:37 PST
Created attachment 217858 [details]
Fixing wrong dates in ChangeLogs
Comment 10 WebKit Commit Bot 2013-11-25 19:03:14 PST
Attachment 217858 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'CMakeLists.txt', u'ChangeLog', u'Source/CMakeLists.txt', u'Source/Platform/CMakeLists.txt', u'Source/Platform/ChangeLog', u'Source/Platform/PlatformNix.cmake', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/FeatureDefines.h', u'Source/WTF/wtf/Platform.h', u'Source/WTF/wtf/PlatformNix.cmake', u'Source/WebCore/CMakeLists.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/PlatformNix.cmake', u'Source/cmake/FindEGL.cmake', u'Source/cmake/FindOpenGLES2.cmake', u'Source/cmake/OptionsCommon.cmake', u'Source/cmake/OptionsNix.cmake', u'Tools/ChangeLog', u'Tools/Scripts/build-webkit', u'Tools/Scripts/run-nix-tests', u'Tools/Scripts/run-webkit-tests', u'Tools/Scripts/update-webkit-libs-jhbuild', u'Tools/Scripts/update-webkitnix-libs', u'Tools/Scripts/webkitdirs.pm', u'Tools/Scripts/webkitpy/common/config/ports.py', u'Tools/Scripts/webkitpy/port/factory.py', u'Tools/Scripts/webkitpy/port/nix.py', u'Tools/Scripts/webkitpy/port/nix_unittest.py', u'Tools/jhbuild/jhbuild-wrapper', u'Tools/nix/common.py', u'Tools/nix/jhbuild.modules', u'Tools/nix/jhbuildrc']" exit_code: 1
Source/WebCore/PlatformNix.cmake:316:  Alphabetical sorting problem. "# Uncomment it after https://bugs.webkit.org/show_bug.cgi?id=118598 is fixed and merged to Nix." should be before "platform/network/soup/SynchronousLoaderClientSoup.cpp".  [list/order] [5]
Source/WebCore/PlatformNix.cmake:317:  There should be exactly one empty line instead of 0 between "# Uncomment it after https://bugs.webkit.org/show_bug.cgi?id=118598 is fixed and merged to Nix." and "# platform/soup/SharedBufferSoup.cpp".  [list/emptyline] [5]
Source/Platform/PlatformNix.cmake:3:  Alphabetical sorting problem. "${CMAKE_BINARY_DIR} # For cmakeconfig.h" should be before "nix".  [list/order] [5]
Source/Platform/PlatformNix.cmake:4:  There should be exactly one empty line instead of 0 between "${CMAKE_BINARY_DIR} # For cmakeconfig.h" and "${WEBCORE_DIR}/platform/graphics/ # For IntRect.h".  [list/emptyline] [5]
Source/Platform/PlatformNix.cmake:5:  Alphabetical sorting problem. "${WTF_DIR} # For config.h" should be before "${WEBCORE_DIR}/platform/graphics/ # For IntRect.h".  [list/order] [5]
Source/WTF/wtf/PlatformNix.cmake:11:  Alphabetical sorting problem. "${GLIB_LIBRARIES}" should be before "pthread".  [list/order] [5]
Source/WTF/wtf/PlatformNix.cmake:12:  Alphabetical sorting problem. "${GLIB_GIO_LIBRARIES}" should be before "${GLIB_LIBRARIES}".  [list/order] [5]
Total errors found: 7 in 32 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 11 Ryosuke Niwa 2013-11-26 21:34:52 PST
Comment on attachment 217858 [details]
Fixing wrong dates in ChangeLogs

rs=me.
Comment 12 WebKit Commit Bot 2013-11-26 22:02:53 PST
Comment on attachment 217858 [details]
Fixing wrong dates in ChangeLogs

Clearing flags on attachment: 217858

Committed r159806: <http://trac.webkit.org/changeset/159806>
Comment 13 WebKit Commit Bot 2013-11-26 22:02:59 PST
All reviewed patches have been landed.  Closing bug.