libwpd: added patch for gcc 11

This commit is contained in:
Tim Biermann 2022-01-03 14:29:26 +01:00
parent 560ac428be
commit d2c8747fde
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 33 additions and 3 deletions

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF39P5EoXfTKWPXAjp+S1DGxK5pYOcM3seJaOTHwnocvBNKZ8FKRrWEsZ/N8TKTpvAT5OUGAGYLXuXTOCwPZkBLgc=
SHA256 (Pkgfile) = 933769bd594a84e1c09237aa528827d7eed8d3d7823223b27db1d2c748562be2
RWSagIOpLGJF36gvZOaQ8VzgKoTeRblbHtU85tMkouznqdkkI7OqgVEtWUGiwWkt+tUXS5CKTDtQntLr3Q1kFKIBUzQGnBEhcAI=
SHA256 (Pkgfile) = 01efaad6072f7870b6c64a6f3eed65859a3412355a0bca1ec31a22044cefeb29
SHA256 (.footprint) = f618b3f2517df0f6b5ea1affa828d4a7491ef95541fa3eb7a6e5c8c60e348952
SHA256 (libwpd-0.10.3.tar.xz) = 2465b0b662fdc5d4e3bebcdc9a79027713fb629ca2bff04a3c9251fdec42dd09
SHA256 (gcc11.patch) = 7612c36e5e16df2b786fc4c905f096a6e7d600aade292e91950607bfbfba6c32

View File

@ -6,10 +6,14 @@
name=libwpd
version=0.10.3
release=1
source=(https://downloads.sourceforge.net/project/libwpd/libwpd/$name-$version/$name-$version.tar.xz)
source=(https://downloads.sourceforge.net/project/libwpd/libwpd/$name-$version/$name-$version.tar.xz
gcc11.patch)
build() {
cd $name-$version
patch -Np1 -i $SRC/gcc11.patch
./configure --prefix=/usr \
--without-docs
make

25
libwpd/gcc11.patch Normal file
View File

@ -0,0 +1,25 @@
diff --git a/src/lib/WPXContentListener.cpp b/src/lib/WPXContentListener.cpp
index ab0f9b1..0b559e6 100644
--- a/src/lib/WPXContentListener.cpp
+++ b/src/lib/WPXContentListener.cpp
@@ -23,6 +23,7 @@
* Corel Corporation or Corel Corporation Limited."
*/
+#include <cstddef>
#include "WPXContentListener.h"
#include "WPXPageSpan.h"
#include "libwpd_internal.h"
diff --git a/src/lib/WPXTable.cpp b/src/lib/WPXTable.cpp
index 0ad202a..3ff35e1 100644
--- a/src/lib/WPXTable.cpp
+++ b/src/lib/WPXTable.cpp
@@ -25,6 +25,8 @@
* Corel Corporation or Corel Corporation Limited."
*/
+#include <cstddef>
+
#include "WPXTable.h"
#include "libwpd_internal.h"