[packages/liborcus] upstream fixes for gcc 13

atler atler at pld-linux.org
Thu Jun 29 22:28:38 CEST 2023


commit 6f4df4751a6325d3e63d7bec4a96a8137b1d528d
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jun 29 22:21:02 2023 +0200

    upstream fixes for gcc 13

 gcc-13.patch  | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 liborcus.spec |  2 ++
 2 files changed, 54 insertions(+)
---
diff --git a/liborcus.spec b/liborcus.spec
index 3b047ce..1bd5596 100644
--- a/liborcus.spec
+++ b/liborcus.spec
@@ -17,6 +17,7 @@ Group:		Libraries
 Source0:	https://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
 # Source0-md5:	4df3646ca736fa0d04965e25fee4898e
 Patch0:		%{name}-flags.patch
+Patch1:		gcc-13.patch
 URL:		https://gitlab.com/orcus/orcus
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake >= 1:1.11
@@ -149,6 +150,7 @@ Wiązanie Pythona 3 do biblioteki liborcus.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/gcc-13.patch b/gcc-13.patch
new file mode 100644
index 0000000..ada4416
--- /dev/null
+++ b/gcc-13.patch
@@ -0,0 +1,52 @@
+From fa68d6a76778df26e41108e3400f4a907e351203 Mon Sep 17 00:00:00 2001
+From: Kohei Yoshida <kohei.yoshida at gmail.com>
+Date: Tue, 19 Jul 2022 21:11:16 -0400
+Subject: [PATCH] Explicitly include <cstdint> header with GCC 13 (#162)
+
+c.f. https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+---
+ include/orcus/types.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/orcus/types.hpp b/include/orcus/types.hpp
+index f5ec320de..46edd1ca0 100644
+--- a/include/orcus/types.hpp
++++ b/include/orcus/types.hpp
+@@ -8,6 +8,7 @@
+ #ifndef INCLUDED_ORCUS_TYPES_HPP
+ #define INCLUDED_ORCUS_TYPES_HPP
+ 
++#include <cstdint>
+ #include <cstdlib>
+ #include <vector>
+ #include <string>
+-- 
+GitLab
+
+From ce66c0fb64c667e78476f8611eb5f097ec572f0a Mon Sep 17 00:00:00 2001
+From: WANG Xuerui <xen0n at gentoo.org>
+Date: Tue, 23 Aug 2022 15:35:38 +0800
+Subject: [PATCH] Include <cstdint> in base64.hpp too
+
+This is also necessary for building with gcc-13.
+
+Signed-off-by: WANG Xuerui <xen0n at gentoo.org>
+---
+ include/orcus/base64.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/orcus/base64.hpp b/include/orcus/base64.hpp
+index f880b7fe7..44c70175d 100644
+--- a/include/orcus/base64.hpp
++++ b/include/orcus/base64.hpp
+@@ -9,6 +9,7 @@
+ #define __ORCUS_BASE64_HPP__
+ 
+ #include "env.hpp"
++#include <cstdint>
+ #include <vector>
+ #include <string>
+ 
+-- 
+GitLab
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liborcus.git/commitdiff/6f4df4751a6325d3e63d7bec4a96a8137b1d528d



More information about the pld-cvs-commit mailing list