diff --git a/0001-Fix-build-with-GCC11.patch b/0001-Fix-build-with-GCC11.patch new file mode 100644 index 0000000..702346e --- /dev/null +++ b/0001-Fix-build-with-GCC11.patch @@ -0,0 +1,37 @@ +From c5f3105230b383ebf31237b11d28b67c7498e900 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Wed, 10 Mar 2021 23:37:49 +0100 +Subject: [PATCH] Fix build with GCC11 + +--- + src/lib/WPXContentListener.h | 1 + + src/lib/WPXTable.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/lib/WPXContentListener.h b/src/lib/WPXContentListener.h +index cf7a93e..376a98c 100644 +--- a/src/lib/WPXContentListener.h ++++ b/src/lib/WPXContentListener.h +@@ -32,6 +32,7 @@ + #include "WPXSubDocument.h" + #include "WPXPageSpan.h" + #include "WPXListener.h" ++#include + #include + #include + #include +diff --git a/src/lib/WPXTable.h b/src/lib/WPXTable.h +index bdbaf79..b2975c4 100644 +--- a/src/lib/WPXTable.h ++++ b/src/lib/WPXTable.h +@@ -36,6 +36,7 @@ + #ifndef _WPXTABLE_H + #define _WPXTABLE_H + ++#include + #include + + struct WPXTableCell +-- +2.30.1 + diff --git a/libwpd.changes b/libwpd.changes index 1b9bdea..c009cdb 100644 --- a/libwpd.changes +++ b/libwpd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 10 22:38:24 UTC 2021 - Christophe Giboudeaux + +- Add patch to fix build with GCC11 (boo#1181873) + * 0001-Fix-build-with-GCC11.patch + ------------------------------------------------------------------- Sat Aug 15 22:00:33 UTC 2020 - Dirk Mueller diff --git a/libwpd.spec b/libwpd.spec index aaac5f1..a0ad070 100644 --- a/libwpd.spec +++ b/libwpd.spec @@ -1,7 +1,7 @@ # # spec file for package libwpd # -# 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 @@ -25,6 +25,8 @@ License: LGPL-2.1-or-later AND MPL-2.0+ Group: Productivity/Publishing/Word URL: http://libwpd.sourceforge.net Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM +Patch0: 0001-Fix-build-with-GCC11.patch BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ @@ -84,7 +86,7 @@ Tools to transform WordPerfect Documents into other formats. Currently supported: html, raw, text %prep -%setup -q +%autosetup -p1 %build export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"