From 1fd8a1dc86008db4d9f0f1cbcc2b9b52f2a97591 Mon Sep 17 00:00:00 2001 From: Link Dupont Date: Tue, 1 Nov 2016 07:41:55 -0700 Subject: [PATCH] Patch to fix FTBFS on ppc64le --- endless-sky-0.9.4-std-gnu++11.patch | 11 +++++++++++ endless-sky.spec | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 endless-sky-0.9.4-std-gnu++11.patch diff --git a/endless-sky-0.9.4-std-gnu++11.patch b/endless-sky-0.9.4-std-gnu++11.patch new file mode 100644 index 0000000..1d06db7 --- /dev/null +++ b/endless-sky-0.9.4-std-gnu++11.patch @@ -0,0 +1,11 @@ +--- SConstruct.orig2 2016-10-04 05:44:52.000000000 -0700 ++++ SConstruct 2016-10-31 23:09:20.880648829 -0700 +@@ -22,7 +22,7 @@ + + Help(opts.GenerateHelpText(env)) + +-flags = ["-std=c++11", "-Wall"] ++flags = ["-std=gnu++11", "-Wall"] + if env["mode"] != "debug": + flags += ["-O3"] + if env["mode"] == "debug": diff --git a/endless-sky.spec b/endless-sky.spec index b1b123b..ef01af8 100644 --- a/endless-sky.spec +++ b/endless-sky.spec @@ -13,6 +13,9 @@ Source0: https://github.com/%{name}/%{name}/archive/%{gittag0}.tar.gz#/%{name}-% # Patch not submitted upstream. Upstream conforms to Debian packaging # standards where the use of /usr/games is acceptable. Patch0: endless-sky-0.8.10-remove-games-path.patch +# Use gnu++11 standard instead of c++11. Fixes a FTBFS issue on ppc64le. +# https://github.com/endless-sky/endless-sky/pull/1804 +Patch1: endless-sky-0.9.4-std-gnu++11.patch Requires: %{name}-data = %{version}-%{release} BuildRequires: scons