Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package flatbuffers for openSUSE:Factory checked in at 2021-02-04 20:24:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/flatbuffers (Old) and /work/SRC/openSUSE:Factory/.flatbuffers.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "flatbuffers" Thu Feb 4 20:24:48 2021 rev:7 rq:869522 version:1.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/flatbuffers/flatbuffers.changes 2020-05-15 23:52:11.417529537 +0200 +++ /work/SRC/openSUSE:Factory/.flatbuffers.new.28504/flatbuffers.changes 2021-02-04 20:25:15.642934652 +0100 @@ -1,0 +2,9 @@ +Thu Feb 4 10:38:57 UTC 2021 - Guillaume GARDET <[email protected]> + +- Fix build on Tumbleweed: + - Backport patches: + * 5938.patch + * 6020.patch + - Disable LTO + +------------------------------------------------------------------- New: ---- 5938.patch 6020.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ flatbuffers.spec ++++++ --- /var/tmp/diff_new_pack.cmZI0u/_old 2021-02-04 20:25:16.182935474 +0100 +++ /var/tmp/diff_new_pack.cmZI0u/_new 2021-02-04 20:25:16.182935474 +0100 @@ -1,7 +1,7 @@ # # spec file for package flatbuffers # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,8 @@ # +%define _lto_cflags %{nil} + %define sonum 1 Name: flatbuffers Version: 1.12.0 @@ -25,6 +27,10 @@ Group: Development/Libraries/C and C++ URL: https://google.github.io/flatbuffers/ Source0: https://github.com/google/flatbuffers/archive/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM - https://github.com/google/flatbuffers/pull/5938 but dropped src/idl_gen_cpp.cpp parts +Patch1: 5938.patch +# PATCH-FIX-UPSTREAM - https://github.com/google/flatbuffers/pull/6020 +Patch2: 6020.patch BuildRequires: cmake >= 2.8.11.2 BuildRequires: gcc-c++ ++++++ python-flatbuffers.spec ++++++ --- /var/tmp/diff_new_pack.cmZI0u/_old 2021-02-04 20:25:16.214935522 +0100 +++ /var/tmp/diff_new_pack.cmZI0u/_new 2021-02-04 20:25:16.218935529 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-flatbuffers # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++++++ 5938.patch ++++++ ++++ 740 lines (skipped) ++++++ 6020.patch ++++++ >From 44c7a4cf439b0a298720b5a448bcc243a882b0c9 Mon Sep 17 00:00:00 2001 From: Vasyl Gello <[email protected]> Date: Tue, 23 Jun 2020 09:08:33 +0000 Subject: [PATCH] Silence false positive "-Wstringop-overflow" on GCC 10.0 to 11.0 --- include/flatbuffers/base.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/flatbuffers/base.h b/include/flatbuffers/base.h index bfa02666d6..d83c7756e5 100644 --- a/include/flatbuffers/base.h +++ b/include/flatbuffers/base.h @@ -381,6 +381,13 @@ T ReadScalar(const void *p) { return EndianScalar(*reinterpret_cast<const T *>(p)); } +// See https://github.com/google/flatbuffers/issues/5950 + +#if (FLATBUFFERS_GCC >= 100000) && (FLATBUFFERS_GCC < 110000) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstringop-overflow" +#endif + template<typename T> // UBSAN: C++ aliasing type rules, see std::bit_cast<> for details. __supress_ubsan__("alignment") @@ -393,6 +400,10 @@ template<typename T> __supress_ubsan__("alignment") void WriteScalar(void *p, Of *reinterpret_cast<uoffset_t *>(p) = EndianScalar(t.o); } +#if (FLATBUFFERS_GCC >= 100000) && (FLATBUFFERS_GCC < 110000) + #pragma GCC diagnostic pop +#endif + // Computes how many bytes you'd have to pad to be able to write an // "scalar_size" scalar if the buffer had grown to "buf_size" (downwards in // memory).
