[114189] trunk/dports/lang/v8
cal at macports.org
cal at macports.org
Sun Dec 1 16:01:29 PST 2013
Revision: 114189
https://trac.macports.org/changeset/114189
Author: cal at macports.org
Date: 2013-12-01 16:01:29 -0800 (Sun, 01 Dec 2013)
Log Message:
-----------
v8: fix build by really disabling -Werror, closes #41626
Modified Paths:
--------------
trunk/dports/lang/v8/Portfile
Added Paths:
-----------
trunk/dports/lang/v8/files/
trunk/dports/lang/v8/files/patch-no-werror.diff
Modified: trunk/dports/lang/v8/Portfile
===================================================================
--- trunk/dports/lang/v8/Portfile 2013-12-01 19:32:30 UTC (rev 114188)
+++ trunk/dports/lang/v8/Portfile 2013-12-02 00:01:29 UTC (rev 114189)
@@ -27,6 +27,8 @@
variant universal {}
+patchfiles patch-no-werror.diff
+
post-patch {
# checkout fails on the buildbot without --trust-server-cert
reinplace "s#svn checkout --force#svn checkout --force --non-interactive --trust-server-cert#g" ${worksrcpath}/Makefile
Added: trunk/dports/lang/v8/files/patch-no-werror.diff
===================================================================
--- trunk/dports/lang/v8/files/patch-no-werror.diff (rev 0)
+++ trunk/dports/lang/v8/files/patch-no-werror.diff 2013-12-02 00:01:29 UTC (rev 114189)
@@ -0,0 +1,40 @@
+--- build/toolchain.gypi.orig 2013-12-02 00:36:49.000000000 +0100
++++ build/toolchain.gypi 2013-12-02 00:37:27.000000000 +0100
+@@ -71,7 +71,7 @@
+ 'want_separate_host_toolset%': 1,
+
+ 'host_os%': '<(OS)',
+- 'werror%': '-Werror',
++ 'werror%': '',
+ # For a shared library build, results in "libv8-<(soname_version).so".
+ 'soname_version%': '',
+
+--- build/standalone.gypi.orig 2013-12-02 00:36:43.000000000 +0100
++++ build/standalone.gypi 2013-12-02 00:37:20.000000000 +0100
+@@ -70,7 +70,7 @@
+ 'host_arch%': '<(host_arch)',
+ 'target_arch%': '<(target_arch)',
+ 'v8_target_arch%': '<(v8_target_arch)',
+- 'werror%': '-Werror',
++ 'werror%': '',
+
+ # .gyp files or targets should set v8_code to 1 if they build V8 specific
+ # code, as opposed to external code. This variable is used to control such
+@@ -144,7 +144,7 @@
+ 'conditions': [
+ ['os_posix == 1 and OS != "mac"', {
+ 'cflags!': [
+- '-Werror',
++ '',
+ ],
+ }],
+ ['OS == "mac"', {
+@@ -273,7 +273,7 @@
+ 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
+ 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
+ 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
+- 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror
++ 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror
+ 'GCC_VERSION': 'com.apple.compilers.llvmgcc42',
+ 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
+ 'GCC_WARN_NON_VIRTUAL_DESTRUCTOR': 'YES', # -Wnon-virtual-dtor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131201/a501bca1/attachment.html>
More information about the macports-changes
mailing list