diff options
| -rw-r--r-- | meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch | 34 | ||||
| -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 @@ | |||
| 1 | From b47fa9532a7090d76521603dbc818bdec100085f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 15 Sep 2020 17:04:27 -0700 | ||
| 4 | Subject: [PATCH] include sys/time.h | ||
| 5 | |||
| 6 | This provides missing definitions of timeval stuct | ||
| 7 | |||
| 8 | Fixes | ||
| 9 | | ../../../git/src/ccutil/ocrclass.h:154:7: error: member access into | ||
| 10 | incomplete type 'struct timeval' | ||
| 11 | | tv->tv_usec = (millisecs.count() % 1000) * 1000; | ||
| 12 | |||
| 13 | Upstream-Status: Pending | ||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | src/ccutil/ocrclass.h | 2 ++ | ||
| 17 | 1 file changed, 2 insertions(+) | ||
| 18 | |||
| 19 | diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h | ||
| 20 | index 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 | -- | ||
| 33 | 2.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" | |||
| 5 | LICENSE = "Apache-2.0" | 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 7 | 7 | ||
| 8 | BRANCH = "4.1" | 8 | SRCREV = "5ad5325a0aa8effc47ca033625b6a51682f82767" |
| 9 | SRCREV = "f38e7a7ba850b668d4505dd4c712238d7ec63ca8" | 9 | SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=main;protocol=https \ |
| 10 | SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=${BRANCH};protocol=https \ | ||
| 11 | file://0001-include-sys-time.h.patch \ | ||
| 12 | " | 10 | " |
| 13 | 11 | ||
| 14 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
