[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/25: gnu: libwpd: Fix build with newer GCC.
From: |
guix-commits |
Subject: |
24/25: gnu: libwpd: Fix build with newer GCC. |
Date: |
Sat, 23 Jul 2022 13:44:50 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 0c7cfbb82b3e500795952acaba56e9ede37c8600
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jul 23 06:27:30 2022 +0200
gnu: libwpd: Fix build with newer GCC.
* gnu/packages/patches/libwpd-gcc-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly
* gnu/packages/libreoffice.scm (libwpd)[source](patches): New field.
---
gnu/local.mk | 1 +
gnu/packages/libreoffice.scm | 1 +
gnu/packages/patches/libwpd-gcc-compat.patch | 17 +++++++++++++++++
3 files changed, 19 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 774f735d5a..2654b7309f 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1422,6 +1422,7 @@ dist_patch_DATA =
\
%D%/packages/patches/libvpx-CVE-2016-2818.patch \
%D%/packages/patches/libxml2-xpath0-Add-option-xpath0.patch \
%D%/packages/patches/libxmlb-install-xb-tool-into-bindir.patch \
+ %D%/packages/patches/libwpd-gcc-compat.patch \
%D%/packages/patches/libxslt-generated-ids.patch \
%D%/packages/patches/libxt-guix-search-paths.patch \
%D%/packages/patches/lierolibre-check-unaligned-access.patch \
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index b17a144f7c..77527b909a 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -236,6 +236,7 @@ spreadsheets and presentations.")
(method url-fetch)
(uri (string-append "mirror://sourceforge/libwpd/libwpd/"
"libwpd-" version "/libwpd-" version ".tar.xz"))
+ (patches (search-patches "libwpd-gcc-compat.patch"))
(sha256 (base32
"02fx8bngslcj7i5g1gx2kiign4vp09wrmp5wpvix9igxcavb0r94"))))
(build-system gnu-build-system)
diff --git a/gnu/packages/patches/libwpd-gcc-compat.patch
b/gnu/packages/patches/libwpd-gcc-compat.patch
new file mode 100644
index 0000000000..ee206beafe
--- /dev/null
+++ b/gnu/packages/patches/libwpd-gcc-compat.patch
@@ -0,0 +1,17 @@
+Fix build with newer GCC.
+
+Taken from upstream:
+
+
https://sourceforge.net/p/libwpd/code/ci/333c8a26f231bea26ec3d56245315041bbf5577f/
+
+--- a/src/lib/WPXTable.h
++++ b/src/lib/WPXTable.h
+@@ -53,7 +53,7 @@
+ ~WPXTable();
+ void insertRow();
+ void insertCell(unsigned char colSpan, unsigned char rowSpan, unsigned
char borderBits);
+- const WPXTableCell *getCell(size_t i, size_t j)
++ const WPXTableCell *getCell(std::size_t i, std::size_t j)
+ {
+ return &(m_tableRows[i])[j];
+ }
- 04/25: gnu: autoconf: Remove input labels., (continued)
- 04/25: gnu: autoconf: Remove input labels., guix-commits, 2022/07/23
- 17/25: gnu: source-highlight: Fix build with newer GCC., guix-commits, 2022/07/23
- 18/25: gnu: gdk-pixbuf: Update to 2.42.8., guix-commits, 2022/07/23
- 21/25: gnu: python-markupsafe: Update to 2.1.1., guix-commits, 2022/07/23
- 25/25: gnu: pcsc-lite: Add missing Python input., guix-commits, 2022/07/23
- 12/25: gnu: cyrus-sasl: Do not propagate Kerberos., guix-commits, 2022/07/23
- 13/25: gnu: elfutils: Update to 0.187., guix-commits, 2022/07/23
- 16/25: gnu: glib: Build with Elfutils instead of libelf., guix-commits, 2022/07/23
- 19/25: gnu: mesa: Build with the default LLVM., guix-commits, 2022/07/23
- 23/25: gnu: python-cffi: Disable tests that fail with newer glibc., guix-commits, 2022/07/23
- 24/25: gnu: libwpd: Fix build with newer GCC.,
guix-commits <=
- 15/25: gnu: GCC: Build with Elfutils instead of libelf., guix-commits, 2022/07/23
- 22/25: gnu: python-mako: Update to 1.2.1., guix-commits, 2022/07/23
- 14/25: gnu: elfutils: Explicitly depend on xz., guix-commits, 2022/07/23
- 10/25: gnu: cyrus-sasl: Update to 2.1.28., guix-commits, 2022/07/23