The package rpms/v8.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/v8.git/commit/?id=bbc0e064fe77ff0....
Change:
+%ifarch s390x
Thanks.
Full change:
============
commit bbc0e064fe77ff0a6939b70c7f39f220fc77513d
Author: Tom Callaway <spot(a)fedoraproject.org>
Date: Fri Aug 4 10:41:09 2017 -0400
more weird arch fixes
diff --git a/v8-6.2.91-nounused-function.patch b/v8-6.2.91-nounused-function.patch
new file mode 100644
index 0000000..e3e6108
--- /dev/null
+++ b/v8-6.2.91-nounused-function.patch
@@ -0,0 +1,11 @@
+diff -up v8-6.2.91/build/config/compiler/BUILD.gn.nounused
v8-6.2.91/build/config/compiler/BUILD.gn
+--- v8-6.2.91/build/config/compiler/BUILD.gn.nounused 2017-08-04 10:35:44.212100721
-0400
++++ v8-6.2.91/build/config/compiler/BUILD.gn 2017-08-04 10:36:25.554097933 -0400
+@@ -1740,6 +1740,7 @@ config("symbols") {
+ cflags += [ "-gdwarf-3" ]
+ }
+ cflags += [ "-g2" ]
++ cflags += [ "-Wno-unused-function" ]
+ }
+ if (use_debug_fission) {
+ cflags += [ "-gsplit-dwarf" ]
diff --git a/v8.spec b/v8.spec
index a0b2194..da5419d 100644
--- a/v8.spec
+++ b/v8.spec
@@ -64,11 +64,15 @@ Patch7: v8-6.2.91-noxlocale.patch
# do not assume we are cross compiling
# silly google
Patch8: v8-6.2.91-notcross.patch
-# On i686, use -g1 to avoid mem exhaust
+# On i686 and armv7hl, use -g1 to avoid mem exhaust
Patch9: v8-6.2.91-i686-g1-to-avoid-mem-exhaust.patch
+# On s390x
+Patch10: v8-6.2.91-nounused-function.patch
+
# PPC64 doesn't like libcxx code.
# error: '(9.223372036854775807e+18 / 1.0e+9)' is not a constant expression
-ExclusiveArch: %{ix86} x86_64 %{arm} ppc aarch64 mipsel mips64el s390 s390x
+# aarch64 doesn't work either.
+ExclusiveArch: %{ix86} x86_64 %{arm} ppc mipsel mips64el s390 s390x
BuildRequires: readline-devel, libicu-devel, ninja-build
BuildRequires: python2-devel, glib2-devel, libatomic
BuildRequires: clang, llvm
@@ -103,9 +107,12 @@ Python libraries from v8.
%patch6 -p1 -b .sover
%patch7 -p1 -b .noxlocale
%patch8 -p1 -b .notcross
-%ifarch i686
+%ifarch i686 armv7hl
%patch9 -p1 -b .memexhaust
%endif
+%ifarch s390x
+%patch10 -p1 -b .nounused
+%endif
cp -a %{SOURCE2} third_party/icu/BUILD.gn