summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch34
-rw-r--r--meta-oe/recipes-graphics/tesseract/tesseract_5.2.0.bb (renamed from meta-oe/recipes-graphics/tesseract/tesseract_4.1.3.bb)6
2 files changed, 2 insertions, 38 deletions
diff --git a/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch b/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch
deleted file mode 100644
index de1fa75b7c..0000000000
--- a/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From b47fa9532a7090d76521603dbc818bdec100085f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 15 Sep 2020 17:04:27 -0700
4Subject: [PATCH] include sys/time.h
5
6This provides missing definitions of timeval stuct
7
8Fixes
9| ../../../git/src/ccutil/ocrclass.h:154:7: error: member access into
10incomplete type 'struct timeval'
11| tv->tv_usec = (millisecs.count() % 1000) * 1000;
12
13Upstream-Status: Pending
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 src/ccutil/ocrclass.h | 2 ++
17 1 file changed, 2 insertions(+)
18
19diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h
20index d39a6dd6..96395c9b 100644
21--- a/src/ccutil/ocrclass.h
22+++ b/src/ccutil/ocrclass.h
23@@ -28,6 +28,8 @@
24
25 #include <chrono>
26 #include <ctime>
27+#include <sys/time.h>
28+
29 #ifdef _WIN32
30 #include <winsock2.h> // for timeval
31 #endif
32--
332.28.0
34
diff --git a/meta-oe/recipes-graphics/tesseract/tesseract_4.1.3.bb b/meta-oe/recipes-graphics/tesseract/tesseract_5.2.0.bb
index 6f92679682..8eb2073563 100644
--- a/meta-oe/recipes-graphics/tesseract/tesseract_4.1.3.bb
+++ b/meta-oe/recipes-graphics/tesseract/tesseract_5.2.0.bb
@@ -5,10 +5,8 @@ BUGTRACKER = "https://github.com/tesseract-ocr/tesseract/issues"
5LICENSE = "Apache-2.0" 5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
7 7
8BRANCH = "4.1" 8SRCREV = "5ad5325a0aa8effc47ca033625b6a51682f82767"
9SRCREV = "f38e7a7ba850b668d4505dd4c712238d7ec63ca8" 9SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=main;protocol=https \
10SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=${BRANCH};protocol=https \
11 file://0001-include-sys-time.h.patch \
12 " 10 "
13 11
14S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"