[Pkg-javascript-devel] Bug#667257: fix ftbfs with GCC 4.7

Matthias Klose doko at debian.org
Tue Apr 17 06:48:38 UTC 2012


tags 667257 + patch
thanks

-------------- next part --------------
diff -Nru libv8-3.8.9.16/debian/changelog libv8-3.8.9.16/debian/changelog
--- libv8-3.8.9.16/debian/changelog	2012-04-07 14:26:16.000000000 +0000
+++ libv8-3.8.9.16/debian/changelog	2012-04-17 06:44:05.000000000 +0000
@@ -1,3 +1,11 @@
+libv8 (3.8.9.16-3.1) unstable; urgency=low
+
+  * Non maintainer upload.
+  * Don't fail the build with strict overflow warnings (GCC 4.7).
+    Closes: #667257.
+
+ -- Matthias Klose <doko at debian.org>  Tue, 17 Apr 2012 08:43:14 +0200
+
 libv8 (3.8.9.16-3) unstable; urgency=low
 
   * mipsel build fixes :
diff -Nru libv8-3.8.9.16/debian/patches/fix-ftbfs-gcc4.7.diff libv8-3.8.9.16/debian/patches/fix-ftbfs-gcc4.7.diff
--- libv8-3.8.9.16/debian/patches/fix-ftbfs-gcc4.7.diff	1970-01-01 00:00:00.000000000 +0000
+++ libv8-3.8.9.16/debian/patches/fix-ftbfs-gcc4.7.diff	2012-04-17 06:43:10.000000000 +0000
@@ -0,0 +1,47 @@
+Index: libv8-3.8.9.16/SConstruct
+===================================================================
+--- libv8-3.8.9.16.orig/SConstruct	2012-01-19 15:36:35.000000000 +0000
++++ libv8-3.8.9.16/SConstruct	2012-04-17 06:42:51.491890075 +0000
+@@ -294,6 +294,7 @@
+     'all': {
+       'WARNINGFLAGS': ['-Wall',
+                        '-Werror',
++                       '-Wno-error=strict-overflow',
+                        '-W',
+                        '-Wno-unused-parameter',
+                        '-Wnon-virtual-dtor']
+@@ -390,7 +391,7 @@
+ DTOA_EXTRA_FLAGS = {
+   'gcc': {
+     'all': {
+-      'WARNINGFLAGS': ['-Werror', '-Wno-uninitialized'],
++      'WARNINGFLAGS': ['-Werror', '-Wno-error=strict-overflow', '-Wno-uninitialized'],
+       'CCFLAGS': GCC_DTOA_EXTRA_CCFLAGS
+     }
+   },
+Index: libv8-3.8.9.16/build/common.gypi
+===================================================================
+--- libv8-3.8.9.16.orig/build/common.gypi	2012-02-20 16:38:35.000000000 +0000
++++ libv8-3.8.9.16/build/common.gypi	2012-04-17 06:42:09.723891108 +0000
+@@ -83,7 +83,7 @@
+     'v8_use_snapshot%': 'true',
+     'host_os%': '<(OS)',
+     'v8_use_liveobjectlist%': 'false',
+-    'werror%': '-Werror',
++    'werror%': '-Werror -Wno-error=strict-overflow',
+ 
+     # For a shared library build, results in "libv8-<(soname_version).so".
+     'soname_version%': '',
+Index: libv8-3.8.9.16/build/standalone.gypi
+===================================================================
+--- libv8-3.8.9.16.orig/build/standalone.gypi	2012-01-19 15:36:35.000000000 +0000
++++ libv8-3.8.9.16/build/standalone.gypi	2012-04-17 06:42:19.411890874 +0000
+@@ -61,7 +61,7 @@
+     'host_arch%': '<(host_arch)',
+     'target_arch%': '<(target_arch)',
+     'v8_target_arch%': '<(v8_target_arch)',
+-    'werror%': '-Werror',
++    'werror%': '-Werror -Wno-error=strict-overflow',
+     'conditions': [
+       ['(v8_target_arch=="arm" and host_arch!="arm") or \
+         (v8_target_arch=="mips" and host_arch!="mips") or \
diff -Nru libv8-3.8.9.16/debian/patches/series libv8-3.8.9.16/debian/patches/series
--- libv8-3.8.9.16/debian/patches/series	2012-04-02 16:16:09.000000000 +0000
+++ libv8-3.8.9.16/debian/patches/series	2012-04-17 06:40:58.000000000 +0000
@@ -2,3 +2,4 @@
 0011_use_system_gyp.patch
 0014_disable_cross_build.patch
 issue9316131_5001.diff
+fix-ftbfs-gcc4.7.diff


More information about the Pkg-javascript-devel mailing list