From 54be57527f5818d912479535c357d5be94465a2e5dce3c68ee16310468858b95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 15 Feb 2018 20:19:31 +0000 Subject: [PATCH] Accepting request 576958 from home:Andreas_Schwab:gcc8 - gcc8.patch: return correct value from stream operator OBS-URL: https://build.opensuse.org/request/show/576958 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/graphite2?expand=0&rev=56 --- gcc8.patch | 13 +++++++++++++ graphite2.changes | 5 +++++ graphite2.spec | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 gcc8.patch diff --git a/gcc8.patch b/gcc8.patch new file mode 100644 index 0000000..81b7051 --- /dev/null +++ b/gcc8.patch @@ -0,0 +1,13 @@ +Index: graphite-1.3.10/tests/bittwiddling/bits.cpp +=================================================================== +--- graphite-1.3.10.orig/tests/bittwiddling/bits.cpp ++++ graphite-1.3.10/tests/bittwiddling/bits.cpp +@@ -81,7 +81,7 @@ namespace + { + if (!std::numeric_limits::is_signed) o.put('u'); + o << "int" << std::dec << sizeof(T)*8; +- return 0; ++ return o; + } + + template diff --git a/graphite2.changes b/graphite2.changes index 519de48..aa58dea 100644 --- a/graphite2.changes +++ b/graphite2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 15 11:02:52 UTC 2018 - schwab@suse.de + +- gcc8.patch: return correct value from stream operator + ------------------------------------------------------------------- Thu Jan 18 13:58:56 UTC 2018 - tchvatal@suse.com diff --git a/graphite2.spec b/graphite2.spec index 8c837fc..cb389cd 100644 --- a/graphite2.spec +++ b/graphite2.spec @@ -21,7 +21,7 @@ Name: graphite2 Version: 1.3.10 Release: 0 Summary: Font rendering capabilities for complex non-Roman writing systems -License: LGPL-2.1+ OR MPL-2.0+ +License: LGPL-2.1-or-later OR MPL-2.0+ Group: Productivity/Publishing/Word Url: http://graphite.sil.org/ Source0: https://github.com/silnrsi/graphite/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -31,6 +31,7 @@ Patch1: graphite-nonvoid-return.patch Patch2: link-gcc-shared.diff Patch3: graphite2-python3_tests.patch Patch4: graphite2-python3_tests_cornercases.patch +Patch5: gcc8.patch BuildRequires: cmake BuildRequires: fontconfig-devel # Required for tests @@ -88,6 +89,7 @@ This package contains the %{name} development files. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build # Make sure to use python3 everywhere