svn commit: r323330 - in head/www/chromium: . files

Jung-uk Kim jkim at FreeBSD.org
Fri Jul 19 23:39:45 UTC 2013


Author: jkim
Date: Fri Jul 19 23:39:43 2013
New Revision: 323330
URL: http://svnweb.freebsd.org/changeset/ports/323330

Log:
  Fix build with Clang and make it default again.
  
  Tested by:	Mike Jakubik <mike.jakubik at intertainservices.com>, RedPorts

Added:
  head/www/chromium/files/patch-base__allocator__allocator_extension.cc   (contents, props changed)
  head/www/chromium/files/patch-base__profiler__alternate_timer.cc   (contents, props changed)
  head/www/chromium/files/patch-base__tracked_objects.cc   (contents, props changed)
  head/www/chromium/files/patch-chrome__browser__metrics__thread_watcher.cc   (contents, props changed)
  head/www/chromium/files/patch-chrome__browser__sync__glue__synced_session_tracker.cc   (contents, props changed)
  head/www/chromium/files/patch-third_party__WebKit__Source__wtf__TypeTraits.h   (contents, props changed)
  head/www/chromium/files/patch-third_party__hunspell__src__hunspell__affentry.hxx   (contents, props changed)
  head/www/chromium/files/patch-third_party__libjingle__source__talk__base__taskrunner.cc   (contents, props changed)
  head/www/chromium/files/patch-third_party__sfntly__cpp__src__sfntly__table__core__cmap_table.cc   (contents, props changed)
  head/www/chromium/files/patch-v8__src__stub-cache.cc   (contents, props changed)
Modified:
  head/www/chromium/Makefile

Modified: head/www/chromium/Makefile
==============================================================================
--- head/www/chromium/Makefile	Fri Jul 19 21:38:37 2013	(r323329)
+++ head/www/chromium/Makefile	Fri Jul 19 23:39:43 2013	(r323330)
@@ -92,7 +92,7 @@ OPTIONS_DEFINE=	CODECS GCONF PULSEAUDIO 
 CODECS_DESC=	Compile and enable patented codecs like H.264
 CLANG_DESC=	Build Chromium with Clang instead of GCC 4.6+
 
-OPTIONS_DEFAULT=	CODECS GCONF
+OPTIONS_DEFAULT=	CODECS GCONF CLANG
 
 .include <bsd.port.options.mk>
 

Added: head/www/chromium/files/patch-base__allocator__allocator_extension.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-base__allocator__allocator_extension.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,26 @@
+--- base/allocator/allocator_extension.cc	2013-07-03 23:39:54.000000000 -0400
++++ base/allocator/allocator_extension.cc	2013-07-19 00:39:26.000000000 -0400
+@@ -35,20 +35,20 @@
+ void SetGetAllocatorWasteSizeFunction(
+     thunks::GetAllocatorWasteSizeFunction get_allocator_waste_size_function) {
+   DCHECK_EQ(thunks::GetGetAllocatorWasteSizeFunction(),
+-            reinterpret_cast<thunks::GetAllocatorWasteSizeFunction>(NULL));
++            static_cast<thunks::GetAllocatorWasteSizeFunction>(0));
+   thunks::SetGetAllocatorWasteSizeFunction(get_allocator_waste_size_function);
+ }
+ 
+ void SetGetStatsFunction(thunks::GetStatsFunction get_stats_function) {
+   DCHECK_EQ(thunks::GetGetStatsFunction(),
+-            reinterpret_cast<thunks::GetStatsFunction>(NULL));
++            static_cast<thunks::GetStatsFunction>(0));
+   thunks::SetGetStatsFunction(get_stats_function);
+ }
+ 
+ void SetReleaseFreeMemoryFunction(
+     thunks::ReleaseFreeMemoryFunction release_free_memory_function) {
+   DCHECK_EQ(thunks::GetReleaseFreeMemoryFunction(),
+-            reinterpret_cast<thunks::ReleaseFreeMemoryFunction>(NULL));
++            static_cast<thunks::ReleaseFreeMemoryFunction>(0));
+   thunks::SetReleaseFreeMemoryFunction(release_free_memory_function);
+ }
+ 

Added: head/www/chromium/files/patch-base__profiler__alternate_timer.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-base__profiler__alternate_timer.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,11 @@
+--- base/profiler/alternate_timer.cc	2013-07-03 23:39:54.000000000 -0400
++++ base/profiler/alternate_timer.cc	2013-07-19 00:41:06.000000000 -0400
+@@ -21,7 +21,7 @@
+ // Set an alternate timer function to replace the OS time function when
+ // profiling.
+ void SetAlternateTimeSource(NowFunction* now_function, TimeSourceType type) {
+-  DCHECK_EQ(reinterpret_cast<NowFunction*>(NULL), g_time_function);
++  DCHECK_EQ(static_cast<NowFunction*>(0), g_time_function);
+   g_time_function = now_function;
+   g_time_source_type = type;
+ }

Added: head/www/chromium/files/patch-base__tracked_objects.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-base__tracked_objects.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,11 @@
+--- base/tracked_objects.cc	2013-07-03 23:39:54.000000000 -0400
++++ base/tracked_objects.cc	2013-07-19 00:42:10.000000000 -0400
+@@ -346,7 +346,7 @@
+   }
+   // We must NOT do any allocations during this callback.
+   // Using the simple linked lists avoids all allocations.
+-  DCHECK_EQ(this->next_retired_worker_, reinterpret_cast<ThreadData*>(NULL));
++  DCHECK_EQ(this->next_retired_worker_, static_cast<ThreadData*>(0));
+   this->next_retired_worker_ = first_retired_worker_;
+   first_retired_worker_ = this;
+ }

Added: head/www/chromium/files/patch-chrome__browser__metrics__thread_watcher.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-chrome__browser__metrics__thread_watcher.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,11 @@
+--- chrome/browser/metrics/thread_watcher.cc	2013-07-03 23:45:55.000000000 -0400
++++ chrome/browser/metrics/thread_watcher.cc	2013-07-19 01:38:45.000000000 -0400
+@@ -40,7 +40,7 @@
+ MSVC_PUSH_DISABLE_WARNING(4748)
+ 
+ int* NullPointer() {
+-  return reinterpret_cast<int*>(NULL);
++  return static_cast<int*>(0);
+ }
+ 
+ void NullPointerCrash(int line_number) {

Added: head/www/chromium/files/patch-chrome__browser__sync__glue__synced_session_tracker.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-chrome__browser__sync__glue__synced_session_tracker.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,11 @@
+--- chrome/browser/sync/glue/synced_session_tracker.cc	2013-07-03 23:46:07.000000000 -0400
++++ chrome/browser/sync/glue/synced_session_tracker.cc	2013-07-19 01:50:13.000000000 -0400
+@@ -232,7 +232,7 @@
+   }
+   DCHECK(window_ptr);
+   DCHECK_EQ(window_ptr->window_id.id(), window_id);
+-  DCHECK_EQ(reinterpret_cast<SessionWindow*>(NULL),
++  DCHECK_EQ(static_cast<SessionWindow*>(0),
+             GetSession(session_tag)->windows[window_id]);
+   GetSession(session_tag)->windows[window_id] = window_ptr;
+ }

Added: head/www/chromium/files/patch-third_party__WebKit__Source__wtf__TypeTraits.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-third_party__WebKit__Source__wtf__TypeTraits.h	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,11 @@
+--- third_party/WebKit/Source/wtf/TypeTraits.h	2013-07-04 00:14:12.000000000 -0400
++++ third_party/WebKit/Source/wtf/TypeTraits.h	2013-07-19 01:29:01.000000000 -0400
+@@ -24,7 +24,7 @@
+ 
+ #include <wtf/Platform.h>
+ 
+-#if (defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
++#if !COMPILER(CLANG) && ((defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && (_MSC_VER >= 1600)))
+ #include <type_traits>
+ #if defined(__GLIBCXX__) && (__GLIBCXX__ >= 20070724) && defined(__GXX_EXPERIMENTAL_CXX0X__)
+ #include <tr1/memory>

Added: head/www/chromium/files/patch-third_party__hunspell__src__hunspell__affentry.hxx
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-third_party__hunspell__src__hunspell__affentry.hxx	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,20 @@
+--- third_party/hunspell/src/hunspell/affentry.hxx	2013-07-03 23:52:32.000000000 -0400
++++ third_party/hunspell/src/hunspell/affentry.hxx	2013-07-19 01:31:57.000000000 -0400
+@@ -27,7 +27,7 @@
+   struct hentry *      checkword(const char * word, int len, char in_compound, 
+                             const FLAG needflag = FLAG_NULL);
+ 
+-  struct hentry *      check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL);
++  struct hentry *      check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = 0);
+ 
+   char *      check_morph(const char * word, int len, char in_compound,
+                             const FLAG needflag = FLAG_NULL);
+@@ -90,7 +90,7 @@
+ //                    const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL, char in_compound=IN_CPD_NOT);
+                     const FLAG cclass = FLAG_NULL, const FLAG needflag = FLAG_NULL, const FLAG badflag = 0);
+ 
+-  struct hentry *   check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL);
++  struct hentry *   check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = 0);
+ 
+   char *      check_twosfx_morph(const char * word, int len, int optflags,
+                  PfxEntry* ppfx, const FLAG needflag = FLAG_NULL);

Added: head/www/chromium/files/patch-third_party__libjingle__source__talk__base__taskrunner.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-third_party__libjingle__source__talk__base__taskrunner.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,11 @@
+--- third_party/libjingle/source/talk/base/taskrunner.cc	2013-07-03 23:54:05.000000000 -0400
++++ third_party/libjingle/source/talk/base/taskrunner.cc	2013-07-19 00:46:25.000000000 -0400
+@@ -119,7 +119,7 @@
+   std::vector<Task *>::iterator it;
+   it = std::remove(tasks_.begin(),
+                    tasks_.end(),
+-                   reinterpret_cast<Task *>(NULL));
++                   static_cast<Task *>(0));
+ 
+   tasks_.erase(it, tasks_.end());
+ 

Added: head/www/chromium/files/patch-third_party__sfntly__cpp__src__sfntly__table__core__cmap_table.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-third_party__sfntly__cpp__src__sfntly__table__core__cmap_table.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,47 @@
+--- third_party/sfntly/cpp/src/sfntly/table/core/cmap_table.cc	2013-07-03 23:54:15.000000000 -0400
++++ third_party/sfntly/cpp/src/sfntly/table/core/cmap_table.cc	2013-07-19 00:44:09.000000000 -0400
+@@ -439,7 +439,7 @@
+ }
+ 
+ CMapTable::CMapFormat0::Builder::Builder(const CMapId& cmap_id)
+-    : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
++    : CMap::Builder(static_cast<ReadableFontData*>(0),
+                     CMapFormat::kFormat0,
+                     cmap_id) {
+ }
+@@ -563,7 +563,7 @@
+     : CMapTable::CMap::Builder(data ? down_cast<WritableFontData*>(
+                                    data->Slice(offset, data->ReadUShort(
+                                        offset + Offset::kFormat0Length)))
+-                               : reinterpret_cast<WritableFontData*>(NULL),
++                               : static_cast<WritableFontData*>(0),
+                                CMapFormat::kFormat2, cmap_id) {
+   // TODO(arthurhsu): FIXIT: heavy lifting and leak, need fix.
+ }
+@@ -574,7 +574,7 @@
+     : CMapTable::CMap::Builder(data ? down_cast<ReadableFontData*>(
+                                    data->Slice(offset, data->ReadUShort(
+                                        offset + Offset::kFormat0Length)))
+-                               : reinterpret_cast<ReadableFontData*>(NULL),
++                               : static_cast<ReadableFontData*>(0),
+                                CMapFormat::kFormat2, cmap_id) {
+   // TODO(arthurhsu): FIXIT: heavy lifting and leak, need fix.
+ }
+@@ -958,7 +958,7 @@
+ CMapTable::CMapFormat4::Builder::Builder(SegmentList* segments,
+                                          IntegerList* glyph_id_array,
+                                          const CMapId& cmap_id)
+-    : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
++    : CMap::Builder(static_cast<ReadableFontData*>(0),
+                     CMapFormat::kFormat4, cmap_id),
+       segments_(segments->begin(), segments->end()),
+       glyph_id_array_(glyph_id_array->begin(), glyph_id_array->end()) {
+@@ -966,7 +966,7 @@
+ }
+ 
+ CMapTable::CMapFormat4::Builder::Builder(const CMapId& cmap_id)
+-    : CMap::Builder(reinterpret_cast<ReadableFontData*>(NULL),
++    : CMap::Builder(static_cast<ReadableFontData*>(0),
+                     CMapFormat::kFormat4, cmap_id) {
+ }
+ 

Added: head/www/chromium/files/patch-v8__src__stub-cache.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/chromium/files/patch-v8__src__stub-cache.cc	Fri Jul 19 23:39:43 2013	(r323330)
@@ -0,0 +1,11 @@
+--- v8/src/stub-cache.cc	2013-07-03 23:56:49.000000000 -0400
++++ v8/src/stub-cache.cc	2013-07-19 00:35:10.000000000 -0400
+@@ -1476,7 +1476,7 @@
+                                             Handle<Name> name) {
+   return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
+       ? GetCodeWithFlags(flags, *Handle<String>::cast(name)->ToCString())
+-      : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
++      : GetCodeWithFlags(flags, static_cast<char*>(0));
+ }
+ 
+ 


More information about the svn-ports-all mailing list