liborcus: added patch for gcc 11

This commit is contained in:
Tim Biermann 2022-01-03 14:30:33 +01:00
parent d172fa088e
commit 67f83a120e
Signed by: tb
GPG Key ID: 42F8B4E30B673606
5 changed files with 84 additions and 3 deletions

View File

@ -1,5 +1,8 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3x+NJr0N+BeIoAmKJNQpW45npQ+q7MqRJfvrxZzG6giuQndPsk5Lfl3LdZfWKtT6lML3AHPxPSPq7G9rs7q56gU=
SHA256 (Pkgfile) = d9941d2167bf1e376795e018015400bbbae5e51c337568fe5fa34e21f75c8354
RWSagIOpLGJF33ai1DvgON/cdxFplmBiBEq8MuT6P+rxBKHuQjBZRj6a0sUmtACPoKksgQpc7oQBJ3/bHfcYhvOM4J9TMaVevA8=
SHA256 (Pkgfile) = ef8a2514b01af873baade66134053dd04fda65307b8e80d6edc341ef8c664954
SHA256 (.footprint) = fc6a013b9d9a866ca22333d2d96212db2d8c668f0cb6f18058e1070706a6556a
SHA256 (liborcus-0.16.1.tar.xz) = a4b26b320d00bdfc769c3a03ed22bd5ad7e54a93dc6b1d00cd949f8f3519faae
SHA256 (gcc11-1.patch) = 59a08e0935f2474e4b9fa63d2508455c819127a152368724eec468cd3f390849
SHA256 (gcc11-2.patch) = 2a12c3a0c9f70e138cd6224cd75372aeffcca74418ddccbc65674de8c81c5cf3
SHA256 (gcc11-3.patch) = 4b15b495beafe343ad39d1468c179c399cac3b9381392ae0e66c1e92a8dc9064

View File

@ -6,10 +6,16 @@
name=liborcus
version=0.16.1
release=1
source=(https://kohei.us/files/orcus/src/$name-$version.tar.xz)
source=(https://kohei.us/files/orcus/src/$name-$version.tar.xz
gcc11-1.patch gcc11-2.patch gcc11-3.patch)
build() {
cd $name-$version
patch -Np1 -i $SRC/gcc11-1.patch
patch -Np1 -i $SRC/gcc11-2.patch
patch -Np1 -i $SRC/gcc11-3.patch
./configure --prefix=/usr --disable-python
make
make DESTDIR=$PKG install

24
liborcus/gcc11-1.patch Normal file
View File

@ -0,0 +1,24 @@
From 50506d534230d90de2b0a2af3fb072428c942a4e Mon Sep 17 00:00:00 2001
From: hedmo <hedmoo@yahoo.com>
Date: Fri, 8 Jan 2021 07:30:16 +0000
Subject: [PATCH] Update orcus_xlsx.cpp to build with gcc-11
---
src/liborcus/orcus_xlsx.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/liborcus/orcus_xlsx.cpp b/src/liborcus/orcus_xlsx.cpp
index 6df72a32..a59b2b9d 100644
--- a/src/liborcus/orcus_xlsx.cpp
+++ b/src/liborcus/orcus_xlsx.cpp
@@ -32,6 +32,7 @@
#include <cstdlib>
#include <iostream>
+#include <limits>
#include <string>
#include <cstring>
#include <sstream>
--
GitLab

24
liborcus/gcc11-2.patch Normal file
View File

@ -0,0 +1,24 @@
From 3bfa1a000e4639fe68781c584356ceea7c6b1a72 Mon Sep 17 00:00:00 2001
From: hedmo <hedmoo@yahoo.com>
Date: Fri, 8 Jan 2021 07:32:53 +0000
Subject: [PATCH] Update xls_xml_context.cpp to build with gcc-11
---
src/liborcus/xls_xml_context.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/liborcus/xls_xml_context.cpp b/src/liborcus/xls_xml_context.cpp
index 538f5607..ca3dc4d0 100644
--- a/src/liborcus/xls_xml_context.cpp
+++ b/src/liborcus/xls_xml_context.cpp
@@ -16,6 +16,7 @@
#include <mdds/sorted_string_map.hpp>
#include <iostream>
+#include <limits>
using namespace std;
namespace ss = orcus::spreadsheet;
--
GitLab

24
liborcus/gcc11-3.patch Normal file
View File

@ -0,0 +1,24 @@
From 5e8fb255dc6bc9b7084a05b8dc24f31417542e5e Mon Sep 17 00:00:00 2001
From: hedmo <hedmoo@yahoo.com>
Date: Fri, 8 Jan 2021 07:34:17 +0000
Subject: [PATCH] Update xlsx_revision_context.cpp to build with gcc-11
---
src/liborcus/xlsx_revision_context.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/liborcus/xlsx_revision_context.cpp b/src/liborcus/xlsx_revision_context.cpp
index edfd9eed..0b6ec0af 100644
--- a/src/liborcus/xlsx_revision_context.cpp
+++ b/src/liborcus/xlsx_revision_context.cpp
@@ -16,6 +16,7 @@
#include "orcus/global.hpp"
#include <iostream>
+#include <limits>
using namespace std;
--
GitLab