Skip to content

Commit

Permalink
app-office/libreoffice: Fix build with GCC-11
Browse files Browse the repository at this point in the history
Reported-by: Geoff Leach <[email protected]>
Closes: https://bugs.gentoo.org/766656
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Jan 24, 2021
1 parent 3d1c1e1 commit 5d807db
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions app-office/libreoffice/files/libreoffice-7.0.4.2-gcc11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From 8830cf86b146b1252ac37f351a23246088d569b0 Mon Sep 17 00:00:00 2001
From: Jeff Law <[email protected]>
Date: Tue, 3 Nov 2020 08:05:03 -0700
Subject: include cstddef for gcc11
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: I2f845ce9bb660ad6c1eea80ea81dd71add2c0db1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107191
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
---
include/o3tl/lru_map.hxx | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx
index c7132fd079c4..96fb3161782d 100644
--- a/include/o3tl/lru_map.hxx
+++ b/include/o3tl/lru_map.hxx
@@ -14,6 +14,7 @@
#include <cassert>
#include <list>
#include <unordered_map>
+#include <cstddef>

namespace o3tl
{
--
cgit v1.2.1

3 changes: 3 additions & 0 deletions app-office/libreoffice/libreoffice-7.0.4.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ PATCHES=(
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
"${FILESDIR}/${PN}-7.0.3.1-qt5detect.patch"

# 7.0 branch
"${FILESDIR}/${PN}-7.0.4.2-gcc11.patch"
)

S="${WORKDIR}/${PN}-${MY_PV}"
Expand Down

0 comments on commit 5d807db

Please sign in to comment.