Accepting request 878960 from LibreOffice:Factory
OBS-URL: https://build.opensuse.org/request/show/878960 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libwpd?expand=0&rev=44
This commit is contained in:
37
0001-Fix-build-with-GCC11.patch
Normal file
37
0001-Fix-build-with-GCC11.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
From c5f3105230b383ebf31237b11d28b67c7498e900 Mon Sep 17 00:00:00 2001
|
||||
From: Christophe Giboudeaux <christophe@krop.fr>
|
||||
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 <cstddef>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
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 <cstddef>
|
||||
#include <vector>
|
||||
|
||||
struct WPXTableCell
|
||||
--
|
||||
2.30.1
|
||||
|
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 10 22:38:24 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user