summaryrefslogtreecommitdiff
path: root/app-text/tesseract/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-02 09:07:02 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-02 09:07:02 +0000
commit68f980204de6c2d69eed8748edc90282879326a6 (patch)
treeeb74f0bcca207f547c8ababe0f82e65e16b30ce1 /app-text/tesseract/files
parentc8273339188289fe8571e5a8cb9e00e59a46aaaf (diff)
gentoo auto-resync : 02:02:2023 - 09:07:02
Diffstat (limited to 'app-text/tesseract/files')
-rw-r--r--app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch b/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch
new file mode 100644
index 000000000000..959948aa677c
--- /dev/null
+++ b/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch
@@ -0,0 +1,25 @@
+https://github.com/tesseract-ocr/tesseract/commit/2025b53de6b3d97285d7c5f80497493007c586c3
+
+From 2025b53de6b3d97285d7c5f80497493007c586c3 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 30 Jan 2023 11:27:07 -0800
+Subject: [PATCH] Fix build with gcc 13 by including <cstdint>
+
+gcc 13 moved some includes around and as a result <cstdint> is
+no longer transitively included [1]. Explicitly include it for
+int32_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/src/ccutil/params.h
++++ b/src/ccutil/params.h
+@@ -21,6 +21,7 @@
+
+ #include <tesseract/export.h> // for TESS_API
+
++#include <cstdint>
+ #include <cstdio>
+ #include <cstring>
+ #include <string>
+