commit:     e71067dbade539090be50e3ddfc9fac889efc34e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 23 02:14:18 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 02:32:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e71067db

sys-fs/cryfs: fix build w/ gcc 13

Closes: https://bugs.gentoo.org/890847
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/cryfs/cryfs-0.10.3-r1.ebuild         |  1 +
 sys-fs/cryfs/files/cryfs-0.10.3-gcc13.patch | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/sys-fs/cryfs/cryfs-0.10.3-r1.ebuild 
b/sys-fs/cryfs/cryfs-0.10.3-r1.ebuild
index 6416dfd23725..e3ce120c5ff7 100644
--- a/sys-fs/cryfs/cryfs-0.10.3-r1.ebuild
+++ b/sys-fs/cryfs/cryfs-0.10.3-r1.ebuild
@@ -39,6 +39,7 @@ PATCHES=(
        # TODO upstream:
        "${FILESDIR}/${PN}-0.10.2-unbundle-libs.patch"
        "${FILESDIR}/${PN}-0.10.2-install-targets.patch"
+       "${FILESDIR}/${PN}-0.10.3-gcc13.patch"
        # From upstream
        "${FILESDIR}/${PN}-0.10.3-gcc11.patch"
        "${FILESDIR}/${PN}-0.10.3-fix-build-with-boost-1-77.patch"

diff --git a/sys-fs/cryfs/files/cryfs-0.10.3-gcc13.patch 
b/sys-fs/cryfs/files/cryfs-0.10.3-gcc13.patch
new file mode 100644
index 000000000000..33b6e95d1cea
--- /dev/null
+++ b/sys-fs/cryfs/files/cryfs-0.10.3-gcc13.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/890847
+--- a/src/cpp-utils/thread/LeftRight.h
++++ b/src/cpp-utils/thread/LeftRight.h
+@@ -2,6 +2,7 @@
+ #include <functional>
+ #include <mutex>
+ #include <thread>
++#include <stdexcept>
+ #include <cpp-utils/macros.h>
+ #include <array>
+ 

Reply via email to