Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] leptonica: update to 1.83.1, adopt.
@ 2023-02-16 22:31 Eloitor
  2023-02-16 22:58 ` Eloitor
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Eloitor @ 2023-02-16 22:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

There is a new pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages leptonica
https://github.com/void-linux/void-packages/pull/42322

leptonica: update to 1.83.1, adopt.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/42322.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-leptonica-42322.patch --]
[-- Type: text/x-diff, Size: 5661 bytes --]

From 711749766f34cc1b85c979573761578128c72538 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 16 Feb 2023 18:37:44 +0100
Subject: [PATCH] leptonica: update to 1.83.1.

---
 .../patches/fix-flaky-test-on-i686.patch      | 70 -------------------
 srcpkgs/leptonica/template                    | 24 +++++--
 2 files changed, 18 insertions(+), 76 deletions(-)
 delete mode 100644 srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch

diff --git a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch b/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
deleted file mode 100644
index bec1a2482f41..000000000000
--- a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d Mon Sep 17 00:00:00 2001
-From: danblooomberg <dan.bloomberg@gmail.com>
-Date: Sun, 14 Nov 2021 14:52:24 -0800
-Subject: [PATCH] Fix flaky hash_reg test on i686 * The sets that are generated
- from *SelectRange() functions can depend on   the platform, resulting in
- intersection sizes that differ by 1. * So, loosen the comparison to allow a
- difference of 1.
-
----
- prog/hash_reg.c | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/prog/hash_reg.c b/prog/hash_reg.c
-index 8b408d6d..3414ba90 100644
---- a/prog/hash_reg.c
-+++ b/prog/hash_reg.c
-@@ -100,7 +100,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 2 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 2 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     sarrayUnionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -123,7 +123,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 6 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 6 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     sarrayUnionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -160,7 +160,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 10 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 10 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     ptaUnionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -182,7 +182,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 14 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 14 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     ptaUnionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -220,7 +220,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 18 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 18 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     l_dnaUnionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-@@ -242,7 +242,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 22 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 22 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     l_dnaUnionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
diff --git a/srcpkgs/leptonica/template b/srcpkgs/leptonica/template
index 53e939a255ff..f143504de677 100644
--- a/srcpkgs/leptonica/template
+++ b/srcpkgs/leptonica/template
@@ -1,18 +1,18 @@
 # Template file for 'leptonica'
 pkgname=leptonica
-version=1.82.0
+version=1.83.1
 revision=1
-build_style=gnu-configure
+build_style=cmake
 hostmakedepends="pkg-config"
 makedepends="libopenjpeg2-devel libwebp-devel"
 checkdepends="which gnuplot"
 short_desc="Image processing and analysis library"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
 license="BSD-2-Clause"
 homepage="http://leptonica.org/"
 changelog="http://leptonica.org/source/version-notes.html"
-distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
-checksum=155302ee914668c27b6fe3ca9ff2da63b245f6d62f3061c8f27563774b8ae2d6
+distfiles="https://github.com/DanBloomberg/leptonica/archive/refs/tags/${version}.tar.gz"
+checksum=4289d0a4224b614010072253531c0455a33a4d7c7a0017fe7825ed382290c0da
 
 post_install() {
 	vdoc moller52.jpg
@@ -27,7 +27,6 @@ leptonica-devel_package() {
 		vmove usr/include/leptonica
 		vmove usr/lib/cmake
 		vmove usr/lib/pkgconfig
-		vmove "usr/lib/*.so"
 		vdoc style-guide.txt
 	}
 }
@@ -39,5 +38,18 @@ leptonica-examples_package() {
 		rm -f -r prog/*.{l,}o prog/.deps prog/.libs
 		# binaries, example source, images and data
 		vcopy prog usr/share/leptonica
+		vbin prog/ps2png
+		vbin prog/pdf2mtiff
+		vbin prog/ps2jpeg
+		vbin prog/ps2png-color
+		vbin prog/ps2png-binary
+		vbin prog/pdf2tiff
+		vbin prog/pdf2jpeg
+		vbin prog/pdf2png-gray
+		vbin prog/pdf2png
+		vbin prog/ps2tiff
+		vbin prog/pdf2png-color
+		vbin prog/ps2png-gray
+		vbin prog/pdf2png-binary
 	}
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
@ 2023-02-16 22:58 ` Eloitor
  2023-02-17 12:58 ` icp1994
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-02-16 22:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

New comment by Eloitor on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#issuecomment-1433850170

Comment:
What should I do with this?

```
ccextractor-0.93_1: broken, unresolvable shlib `liblept.so.5'
tesseract-ocr-4.1.1_7: broken, unresolvable shlib `liblept.so.5'
Transaction aborted due to unresolved shlibs.
Failed to install 'leptonica' and 'ccextractor-0.93_1'
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
  2023-02-16 22:58 ` Eloitor
@ 2023-02-17 12:58 ` icp1994
  2023-02-17 13:19 ` [PR PATCH] [Updated] " Eloitor
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: icp1994 @ 2023-02-17 12:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#issuecomment-1434614946

Comment:
From the changelog
> Increase the .so number from 5.4.0 to 6.0.0.

As per my understanding, you need to update common/shlibs file accordingly and rebuild the packages from `xrevshlib leptonica`

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
  2023-02-16 22:58 ` Eloitor
  2023-02-17 12:58 ` icp1994
@ 2023-02-17 13:19 ` Eloitor
  2023-02-17 13:25 ` Eloitor
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-02-17 13:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages leptonica
https://github.com/void-linux/void-packages/pull/42322

leptonica: update to 1.83.1, adopt.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/42322.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-leptonica-42322.patch --]
[-- Type: text/x-diff, Size: 6199 bytes --]

From 134ace7a4460ff9039e78c99813c6ad1e2fb27d2 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 16 Feb 2023 18:37:44 +0100
Subject: [PATCH] leptonica: update to 1.83.1.

---
 common/shlibs                                 |  2 +-
 .../patches/fix-flaky-test-on-i686.patch      | 70 -------------------
 srcpkgs/leptonica/template                    | 24 +++++--
 3 files changed, 19 insertions(+), 77 deletions(-)
 delete mode 100644 srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch

diff --git a/common/shlibs b/common/shlibs
index 0c1d545fbe27..17babe282848 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2300,7 +2300,7 @@ libOkteta3Gui.so.0 okteta-0.26.0_1
 libhttp_parser.so.2.9 http-parser-2.9.0_1
 libmaa.so.4 libmaa-1.4.2_1
 libcodeblocks.so.0 codeblocks-13.12_1
-liblept.so.5 leptonica-1.73_1
+liblept.so.6 leptonica-1.73_1
 libtesseract.so.4 tesseract-ocr-4.0.0_1
 libffmpegthumbnailer.so.4 ffmpegthumbnailer-2.0.10_1
 libopenraw.so.7 libopenraw-0.1.0_1
diff --git a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch b/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
deleted file mode 100644
index bec1a2482f41..000000000000
--- a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d Mon Sep 17 00:00:00 2001
-From: danblooomberg <dan.bloomberg@gmail.com>
-Date: Sun, 14 Nov 2021 14:52:24 -0800
-Subject: [PATCH] Fix flaky hash_reg test on i686 * The sets that are generated
- from *SelectRange() functions can depend on   the platform, resulting in
- intersection sizes that differ by 1. * So, loosen the comparison to allow a
- difference of 1.
-
----
- prog/hash_reg.c | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/prog/hash_reg.c b/prog/hash_reg.c
-index 8b408d6d..3414ba90 100644
---- a/prog/hash_reg.c
-+++ b/prog/hash_reg.c
-@@ -100,7 +100,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 2 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 2 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     sarrayUnionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -123,7 +123,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 6 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 6 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     sarrayUnionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -160,7 +160,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 10 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 10 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     ptaUnionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -182,7 +182,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 14 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 14 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     ptaUnionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -220,7 +220,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 18 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 18 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     l_dnaUnionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-@@ -242,7 +242,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 22 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 22 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     l_dnaUnionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
diff --git a/srcpkgs/leptonica/template b/srcpkgs/leptonica/template
index 53e939a255ff..f143504de677 100644
--- a/srcpkgs/leptonica/template
+++ b/srcpkgs/leptonica/template
@@ -1,18 +1,18 @@
 # Template file for 'leptonica'
 pkgname=leptonica
-version=1.82.0
+version=1.83.1
 revision=1
-build_style=gnu-configure
+build_style=cmake
 hostmakedepends="pkg-config"
 makedepends="libopenjpeg2-devel libwebp-devel"
 checkdepends="which gnuplot"
 short_desc="Image processing and analysis library"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
 license="BSD-2-Clause"
 homepage="http://leptonica.org/"
 changelog="http://leptonica.org/source/version-notes.html"
-distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
-checksum=155302ee914668c27b6fe3ca9ff2da63b245f6d62f3061c8f27563774b8ae2d6
+distfiles="https://github.com/DanBloomberg/leptonica/archive/refs/tags/${version}.tar.gz"
+checksum=4289d0a4224b614010072253531c0455a33a4d7c7a0017fe7825ed382290c0da
 
 post_install() {
 	vdoc moller52.jpg
@@ -27,7 +27,6 @@ leptonica-devel_package() {
 		vmove usr/include/leptonica
 		vmove usr/lib/cmake
 		vmove usr/lib/pkgconfig
-		vmove "usr/lib/*.so"
 		vdoc style-guide.txt
 	}
 }
@@ -39,5 +38,18 @@ leptonica-examples_package() {
 		rm -f -r prog/*.{l,}o prog/.deps prog/.libs
 		# binaries, example source, images and data
 		vcopy prog usr/share/leptonica
+		vbin prog/ps2png
+		vbin prog/pdf2mtiff
+		vbin prog/ps2jpeg
+		vbin prog/ps2png-color
+		vbin prog/ps2png-binary
+		vbin prog/pdf2tiff
+		vbin prog/pdf2jpeg
+		vbin prog/pdf2png-gray
+		vbin prog/pdf2png
+		vbin prog/ps2tiff
+		vbin prog/pdf2png-color
+		vbin prog/ps2png-gray
+		vbin prog/pdf2png-binary
 	}
 }

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (2 preceding siblings ...)
  2023-02-17 13:19 ` [PR PATCH] [Updated] " Eloitor
@ 2023-02-17 13:25 ` Eloitor
  2023-02-17 14:25 ` [PR REVIEW] " icp1994
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-02-17 13:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages leptonica
https://github.com/void-linux/void-packages/pull/42322

leptonica: update to 1.83.1, adopt.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/42322.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-leptonica-42322.patch --]
[-- Type: text/x-diff, Size: 7568 bytes --]

From e7d4eb89d7bda32da69bc79883ed56737b07cfff Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 16 Feb 2023 18:37:44 +0100
Subject: [PATCH 1/3] leptonica: update to 1.83.1.

---
 common/shlibs                                 |  2 +-
 .../patches/fix-flaky-test-on-i686.patch      | 70 -------------------
 srcpkgs/leptonica/template                    | 24 +++++--
 3 files changed, 19 insertions(+), 77 deletions(-)
 delete mode 100644 srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch

diff --git a/common/shlibs b/common/shlibs
index 0c1d545fbe27..9bdadc7f7b4f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2300,7 +2300,7 @@ libOkteta3Gui.so.0 okteta-0.26.0_1
 libhttp_parser.so.2.9 http-parser-2.9.0_1
 libmaa.so.4 libmaa-1.4.2_1
 libcodeblocks.so.0 codeblocks-13.12_1
-liblept.so.5 leptonica-1.73_1
+liblept.so.6 leptonica-1.83_1
 libtesseract.so.4 tesseract-ocr-4.0.0_1
 libffmpegthumbnailer.so.4 ffmpegthumbnailer-2.0.10_1
 libopenraw.so.7 libopenraw-0.1.0_1
diff --git a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch b/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
deleted file mode 100644
index bec1a2482f41..000000000000
--- a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d Mon Sep 17 00:00:00 2001
-From: danblooomberg <dan.bloomberg@gmail.com>
-Date: Sun, 14 Nov 2021 14:52:24 -0800
-Subject: [PATCH] Fix flaky hash_reg test on i686 * The sets that are generated
- from *SelectRange() functions can depend on   the platform, resulting in
- intersection sizes that differ by 1. * So, loosen the comparison to allow a
- difference of 1.
-
----
- prog/hash_reg.c | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/prog/hash_reg.c b/prog/hash_reg.c
-index 8b408d6d..3414ba90 100644
---- a/prog/hash_reg.c
-+++ b/prog/hash_reg.c
-@@ -100,7 +100,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 2 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 2 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     sarrayUnionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -123,7 +123,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 6 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 6 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     sarrayUnionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -160,7 +160,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 10 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 10 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     ptaUnionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -182,7 +182,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 14 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 14 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     ptaUnionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -220,7 +220,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 18 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 18 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     l_dnaUnionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-@@ -242,7 +242,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 22 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 22 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     l_dnaUnionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
diff --git a/srcpkgs/leptonica/template b/srcpkgs/leptonica/template
index 53e939a255ff..f143504de677 100644
--- a/srcpkgs/leptonica/template
+++ b/srcpkgs/leptonica/template
@@ -1,18 +1,18 @@
 # Template file for 'leptonica'
 pkgname=leptonica
-version=1.82.0
+version=1.83.1
 revision=1
-build_style=gnu-configure
+build_style=cmake
 hostmakedepends="pkg-config"
 makedepends="libopenjpeg2-devel libwebp-devel"
 checkdepends="which gnuplot"
 short_desc="Image processing and analysis library"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
 license="BSD-2-Clause"
 homepage="http://leptonica.org/"
 changelog="http://leptonica.org/source/version-notes.html"
-distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
-checksum=155302ee914668c27b6fe3ca9ff2da63b245f6d62f3061c8f27563774b8ae2d6
+distfiles="https://github.com/DanBloomberg/leptonica/archive/refs/tags/${version}.tar.gz"
+checksum=4289d0a4224b614010072253531c0455a33a4d7c7a0017fe7825ed382290c0da
 
 post_install() {
 	vdoc moller52.jpg
@@ -27,7 +27,6 @@ leptonica-devel_package() {
 		vmove usr/include/leptonica
 		vmove usr/lib/cmake
 		vmove usr/lib/pkgconfig
-		vmove "usr/lib/*.so"
 		vdoc style-guide.txt
 	}
 }
@@ -39,5 +38,18 @@ leptonica-examples_package() {
 		rm -f -r prog/*.{l,}o prog/.deps prog/.libs
 		# binaries, example source, images and data
 		vcopy prog usr/share/leptonica
+		vbin prog/ps2png
+		vbin prog/pdf2mtiff
+		vbin prog/ps2jpeg
+		vbin prog/ps2png-color
+		vbin prog/ps2png-binary
+		vbin prog/pdf2tiff
+		vbin prog/pdf2jpeg
+		vbin prog/pdf2png-gray
+		vbin prog/pdf2png
+		vbin prog/ps2tiff
+		vbin prog/pdf2png-color
+		vbin prog/ps2png-gray
+		vbin prog/pdf2png-binary
 	}
 }

From 0bfcc18ecbd19179e0be692b5984113c6c706c67 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:29 +0100
Subject: [PATCH 2/3] ccextractor: rebuild for leptonica.

---
 srcpkgs/ccextractor/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index 9abcd82852b2..7fe2ba4f27b6 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -1,7 +1,7 @@
 # Template file for 'ccextractor'
 pkgname=ccextractor
 version=0.93
-revision=1
+revision=2
 build_wrksrc="linux"
 build_style=gnu-configure
 configure_args="--enable-ocr --enable-hardsubx"

From 80bc1eb6327cb264cb164539b803334e74399067 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:39 +0100
Subject: [PATCH 3/3] tesseract-ocr: rebuild for leptonica.

---
 srcpkgs/tesseract-ocr/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 394f82aea2a8..9a1de9581262 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -1,7 +1,7 @@
 # Template file for 'tesseract-ocr'
 pkgname=tesseract-ocr
 version=4.1.1
-revision=7
+revision=8
 _tessdataver=4.0.0
 create_wrksrc=yes
 build_style=gnu-configure

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (3 preceding siblings ...)
  2023-02-17 13:25 ` Eloitor
@ 2023-02-17 14:25 ` icp1994
  2023-02-17 14:25 ` icp1994
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: icp1994 @ 2023-02-17 14:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

New review comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#discussion_r1109875013

Comment:
```suggestion
liblept.so.6 leptonica-1.83.1_1
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (4 preceding siblings ...)
  2023-02-17 14:25 ` [PR REVIEW] " icp1994
@ 2023-02-17 14:25 ` icp1994
  2023-02-17 14:25 ` icp1994
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: icp1994 @ 2023-02-17 14:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

New review comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#discussion_r1109875998

Comment:
```suggestion
build_style=cmake
configure_args="-DBUILD_PROG=ON -DBUILD_SHARED_LIBS=ON"
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR REVIEW] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (5 preceding siblings ...)
  2023-02-17 14:25 ` icp1994
@ 2023-02-17 14:25 ` icp1994
  2023-02-17 14:28 ` [PR PATCH] [Updated] " Eloitor
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: icp1994 @ 2023-02-17 14:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

New review comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#discussion_r1109883952

Comment:
revert this change

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (6 preceding siblings ...)
  2023-02-17 14:25 ` icp1994
@ 2023-02-17 14:28 ` Eloitor
  2023-02-17 14:31 ` Eloitor
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-02-17 14:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages leptonica
https://github.com/void-linux/void-packages/pull/42322

leptonica: update to 1.83.1, adopt.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/42322.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-leptonica-42322.patch --]
[-- Type: text/x-diff, Size: 7899 bytes --]

From e7d4eb89d7bda32da69bc79883ed56737b07cfff Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 16 Feb 2023 18:37:44 +0100
Subject: [PATCH 1/3] leptonica: update to 1.83.1.

---
 common/shlibs                                 |  2 +-
 .../patches/fix-flaky-test-on-i686.patch      | 70 -------------------
 srcpkgs/leptonica/template                    | 24 +++++--
 3 files changed, 19 insertions(+), 77 deletions(-)
 delete mode 100644 srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch

diff --git a/common/shlibs b/common/shlibs
index 0c1d545fbe27..9bdadc7f7b4f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2300,7 +2300,7 @@ libOkteta3Gui.so.0 okteta-0.26.0_1
 libhttp_parser.so.2.9 http-parser-2.9.0_1
 libmaa.so.4 libmaa-1.4.2_1
 libcodeblocks.so.0 codeblocks-13.12_1
-liblept.so.5 leptonica-1.73_1
+liblept.so.6 leptonica-1.83_1
 libtesseract.so.4 tesseract-ocr-4.0.0_1
 libffmpegthumbnailer.so.4 ffmpegthumbnailer-2.0.10_1
 libopenraw.so.7 libopenraw-0.1.0_1
diff --git a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch b/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
deleted file mode 100644
index bec1a2482f41..000000000000
--- a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d Mon Sep 17 00:00:00 2001
-From: danblooomberg <dan.bloomberg@gmail.com>
-Date: Sun, 14 Nov 2021 14:52:24 -0800
-Subject: [PATCH] Fix flaky hash_reg test on i686 * The sets that are generated
- from *SelectRange() functions can depend on   the platform, resulting in
- intersection sizes that differ by 1. * So, loosen the comparison to allow a
- difference of 1.
-
----
- prog/hash_reg.c | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/prog/hash_reg.c b/prog/hash_reg.c
-index 8b408d6d..3414ba90 100644
---- a/prog/hash_reg.c
-+++ b/prog/hash_reg.c
-@@ -100,7 +100,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 2 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 2 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     sarrayUnionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -123,7 +123,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 6 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 6 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     sarrayUnionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -160,7 +160,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 10 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 10 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     ptaUnionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -182,7 +182,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 14 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 14 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     ptaUnionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -220,7 +220,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 18 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 18 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     l_dnaUnionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-@@ -242,7 +242,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 22 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 22 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     l_dnaUnionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
diff --git a/srcpkgs/leptonica/template b/srcpkgs/leptonica/template
index 53e939a255ff..f143504de677 100644
--- a/srcpkgs/leptonica/template
+++ b/srcpkgs/leptonica/template
@@ -1,18 +1,18 @@
 # Template file for 'leptonica'
 pkgname=leptonica
-version=1.82.0
+version=1.83.1
 revision=1
-build_style=gnu-configure
+build_style=cmake
 hostmakedepends="pkg-config"
 makedepends="libopenjpeg2-devel libwebp-devel"
 checkdepends="which gnuplot"
 short_desc="Image processing and analysis library"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
 license="BSD-2-Clause"
 homepage="http://leptonica.org/"
 changelog="http://leptonica.org/source/version-notes.html"
-distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
-checksum=155302ee914668c27b6fe3ca9ff2da63b245f6d62f3061c8f27563774b8ae2d6
+distfiles="https://github.com/DanBloomberg/leptonica/archive/refs/tags/${version}.tar.gz"
+checksum=4289d0a4224b614010072253531c0455a33a4d7c7a0017fe7825ed382290c0da
 
 post_install() {
 	vdoc moller52.jpg
@@ -27,7 +27,6 @@ leptonica-devel_package() {
 		vmove usr/include/leptonica
 		vmove usr/lib/cmake
 		vmove usr/lib/pkgconfig
-		vmove "usr/lib/*.so"
 		vdoc style-guide.txt
 	}
 }
@@ -39,5 +38,18 @@ leptonica-examples_package() {
 		rm -f -r prog/*.{l,}o prog/.deps prog/.libs
 		# binaries, example source, images and data
 		vcopy prog usr/share/leptonica
+		vbin prog/ps2png
+		vbin prog/pdf2mtiff
+		vbin prog/ps2jpeg
+		vbin prog/ps2png-color
+		vbin prog/ps2png-binary
+		vbin prog/pdf2tiff
+		vbin prog/pdf2jpeg
+		vbin prog/pdf2png-gray
+		vbin prog/pdf2png
+		vbin prog/ps2tiff
+		vbin prog/pdf2png-color
+		vbin prog/ps2png-gray
+		vbin prog/pdf2png-binary
 	}
 }

From 0bfcc18ecbd19179e0be692b5984113c6c706c67 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:29 +0100
Subject: [PATCH 2/3] ccextractor: rebuild for leptonica.

---
 srcpkgs/ccextractor/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index 9abcd82852b2..7fe2ba4f27b6 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -1,7 +1,7 @@
 # Template file for 'ccextractor'
 pkgname=ccextractor
 version=0.93
-revision=1
+revision=2
 build_wrksrc="linux"
 build_style=gnu-configure
 configure_args="--enable-ocr --enable-hardsubx"

From bc1a70863230aa9ffca09e4452508b056adcb423 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:39 +0100
Subject: [PATCH 3/3] tesseract-ocr: rebuild for leptonica.

---
 srcpkgs/tesseract-ocr/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 394f82aea2a8..3aea6d24bfee 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -1,7 +1,7 @@
 # Template file for 'tesseract-ocr'
 pkgname=tesseract-ocr
 version=4.1.1
-revision=7
+revision=8
 _tessdataver=4.0.0
 create_wrksrc=yes
 build_style=gnu-configure
@@ -62,7 +62,6 @@ post_install() {
 	mv ${DESTDIR}/usr/share/man/man1/tesseract{,-ocr}.1
 	vdoc ChangeLog
 	vdoc README.md
-	vlicense ${FILESDIR}/COPYING LICENSE-tessdata
 	# Move the pseudo languges "equ" (math / equation detection) and
 	# "osd" (orientation and script detection) to the main package
 	for lang in equ osd; do

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (7 preceding siblings ...)
  2023-02-17 14:28 ` [PR PATCH] [Updated] " Eloitor
@ 2023-02-17 14:31 ` Eloitor
  2023-02-17 14:43 ` Eloitor
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-02-17 14:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages leptonica
https://github.com/void-linux/void-packages/pull/42322

leptonica: update to 1.83.1, adopt.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/42322.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-leptonica-42322.patch --]
[-- Type: text/x-diff, Size: 7776 bytes --]

From b86c891268704070aad6c5f020a45c54e3e319d6 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 16 Feb 2023 18:37:44 +0100
Subject: [PATCH 1/3] leptonica: update to 1.83.1.

---
 common/shlibs                                 |  2 +-
 .../patches/fix-flaky-test-on-i686.patch      | 70 -------------------
 srcpkgs/leptonica/template                    | 24 +++++--
 3 files changed, 20 insertions(+), 76 deletions(-)
 delete mode 100644 srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch

diff --git a/common/shlibs b/common/shlibs
index 0c1d545fbe27..3374f1b695bf 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2300,7 +2300,7 @@ libOkteta3Gui.so.0 okteta-0.26.0_1
 libhttp_parser.so.2.9 http-parser-2.9.0_1
 libmaa.so.4 libmaa-1.4.2_1
 libcodeblocks.so.0 codeblocks-13.12_1
-liblept.so.5 leptonica-1.73_1
+liblept.so.6 leptonica-1.83.1_1
 libtesseract.so.4 tesseract-ocr-4.0.0_1
 libffmpegthumbnailer.so.4 ffmpegthumbnailer-2.0.10_1
 libopenraw.so.7 libopenraw-0.1.0_1
diff --git a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch b/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
deleted file mode 100644
index bec1a2482f41..000000000000
--- a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d Mon Sep 17 00:00:00 2001
-From: danblooomberg <dan.bloomberg@gmail.com>
-Date: Sun, 14 Nov 2021 14:52:24 -0800
-Subject: [PATCH] Fix flaky hash_reg test on i686 * The sets that are generated
- from *SelectRange() functions can depend on   the platform, resulting in
- intersection sizes that differ by 1. * So, loosen the comparison to allow a
- difference of 1.
-
----
- prog/hash_reg.c | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/prog/hash_reg.c b/prog/hash_reg.c
-index 8b408d6d..3414ba90 100644
---- a/prog/hash_reg.c
-+++ b/prog/hash_reg.c
-@@ -100,7 +100,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 2 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 2 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     sarrayUnionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -123,7 +123,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 6 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 6 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     sarrayUnionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -160,7 +160,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 10 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 10 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     ptaUnionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -182,7 +182,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 14 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 14 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     ptaUnionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -220,7 +220,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 18 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 18 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     l_dnaUnionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-@@ -242,7 +242,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 22 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 22 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     l_dnaUnionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
diff --git a/srcpkgs/leptonica/template b/srcpkgs/leptonica/template
index 53e939a255ff..b7805c20c8bd 100644
--- a/srcpkgs/leptonica/template
+++ b/srcpkgs/leptonica/template
@@ -1,18 +1,19 @@
 # Template file for 'leptonica'
 pkgname=leptonica
-version=1.82.0
+version=1.83.1
 revision=1
-build_style=gnu-configure
+build_style=cmake
+configure_args="-DBUILD_PROG=ON -DBUILD_SHARED_LIBS=ON"
 hostmakedepends="pkg-config"
 makedepends="libopenjpeg2-devel libwebp-devel"
 checkdepends="which gnuplot"
 short_desc="Image processing and analysis library"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
 license="BSD-2-Clause"
 homepage="http://leptonica.org/"
 changelog="http://leptonica.org/source/version-notes.html"
-distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
-checksum=155302ee914668c27b6fe3ca9ff2da63b245f6d62f3061c8f27563774b8ae2d6
+distfiles="https://github.com/DanBloomberg/leptonica/archive/refs/tags/${version}.tar.gz"
+checksum=4289d0a4224b614010072253531c0455a33a4d7c7a0017fe7825ed382290c0da
 
 post_install() {
 	vdoc moller52.jpg
@@ -39,5 +40,18 @@ leptonica-examples_package() {
 		rm -f -r prog/*.{l,}o prog/.deps prog/.libs
 		# binaries, example source, images and data
 		vcopy prog usr/share/leptonica
+		vbin prog/ps2png
+		vbin prog/pdf2mtiff
+		vbin prog/ps2jpeg
+		vbin prog/ps2png-color
+		vbin prog/ps2png-binary
+		vbin prog/pdf2tiff
+		vbin prog/pdf2jpeg
+		vbin prog/pdf2png-gray
+		vbin prog/pdf2png
+		vbin prog/ps2tiff
+		vbin prog/pdf2png-color
+		vbin prog/ps2png-gray
+		vbin prog/pdf2png-binary
 	}
 }

From 5a83893623302754a2bfe70ce5c14a4be9912277 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:29 +0100
Subject: [PATCH 2/3] ccextractor: rebuild for leptonica.

---
 srcpkgs/ccextractor/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index 9abcd82852b2..7fe2ba4f27b6 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -1,7 +1,7 @@
 # Template file for 'ccextractor'
 pkgname=ccextractor
 version=0.93
-revision=1
+revision=2
 build_wrksrc="linux"
 build_style=gnu-configure
 configure_args="--enable-ocr --enable-hardsubx"

From 4276771e6cdc6c5f388ebbe78077de523768d259 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:39 +0100
Subject: [PATCH 3/3] tesseract-ocr: rebuild for leptonica.

---
 srcpkgs/tesseract-ocr/template | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 394f82aea2a8..3aea6d24bfee 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -1,7 +1,7 @@
 # Template file for 'tesseract-ocr'
 pkgname=tesseract-ocr
 version=4.1.1
-revision=7
+revision=8
 _tessdataver=4.0.0
 create_wrksrc=yes
 build_style=gnu-configure
@@ -62,7 +62,6 @@ post_install() {
 	mv ${DESTDIR}/usr/share/man/man1/tesseract{,-ocr}.1
 	vdoc ChangeLog
 	vdoc README.md
-	vlicense ${FILESDIR}/COPYING LICENSE-tessdata
 	# Move the pseudo languges "equ" (math / equation detection) and
 	# "osd" (orientation and script detection) to the main package
 	for lang in equ osd; do

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (8 preceding siblings ...)
  2023-02-17 14:31 ` Eloitor
@ 2023-02-17 14:43 ` Eloitor
  2023-02-17 14:44 ` icp1994
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-02-17 14:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

New comment by Eloitor on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#issuecomment-1434744180

Comment:
maybe I need to update tesseract-ocr to fix the build problem that I have now.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (9 preceding siblings ...)
  2023-02-17 14:43 ` Eloitor
@ 2023-02-17 14:44 ` icp1994
  2023-03-10 10:49 ` [PR PATCH] [Updated] [WIP] " Eloitor
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: icp1994 @ 2023-02-17 14:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#issuecomment-1434745349

Comment:
https://github.com/tesseract-ocr/tesseract/issues/3815#issuecomment-1123204962 yeah looks like it

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (10 preceding siblings ...)
  2023-02-17 14:44 ` icp1994
@ 2023-03-10 10:49 ` Eloitor
  2023-03-10 10:51 ` Eloitor
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-03-10 10:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages leptonica
https://github.com/void-linux/void-packages/pull/42322

[WIP] leptonica: update to 1.83.1, adopt.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/42322.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-leptonica-42322.patch --]
[-- Type: text/x-diff, Size: 9649 bytes --]

From d3d787c1fb27cd4d2b3509e4328ef80ae672558a Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 16 Feb 2023 18:37:44 +0100
Subject: [PATCH 1/3] leptonica: update to 1.83.1.

---
 common/shlibs                                 |  2 +-
 .../patches/fix-flaky-test-on-i686.patch      | 70 -------------------
 srcpkgs/leptonica/template                    | 24 +++++--
 3 files changed, 20 insertions(+), 76 deletions(-)
 delete mode 100644 srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch

diff --git a/common/shlibs b/common/shlibs
index 5cc81b9f90b2..efaee803f884 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2310,7 +2310,7 @@ libOkteta3Gui.so.0 okteta-0.26.0_1
 libhttp_parser.so.2.9 http-parser-2.9.0_1
 libmaa.so.4 libmaa-1.4.2_1
 libcodeblocks.so.0 codeblocks-13.12_1
-liblept.so.5 leptonica-1.73_1
+liblept.so.6 leptonica-1.83.1_1
 libtesseract.so.4 tesseract-ocr-4.0.0_1
 libffmpegthumbnailer.so.4 ffmpegthumbnailer-2.0.10_1
 libopenraw.so.7 libopenraw-0.1.0_1
diff --git a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch b/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
deleted file mode 100644
index bec1a2482f41..000000000000
--- a/srcpkgs/leptonica/patches/fix-flaky-test-on-i686.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From ea2bb8c9cf61d3eba2589cfaac05f59a33b4110d Mon Sep 17 00:00:00 2001
-From: danblooomberg <dan.bloomberg@gmail.com>
-Date: Sun, 14 Nov 2021 14:52:24 -0800
-Subject: [PATCH] Fix flaky hash_reg test on i686 * The sets that are generated
- from *SelectRange() functions can depend on   the platform, resulting in
- intersection sizes that differ by 1. * So, loosen the comparison to allow a
- difference of 1.
-
----
- prog/hash_reg.c | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/prog/hash_reg.c b/prog/hash_reg.c
-index 8b408d6d..3414ba90 100644
---- a/prog/hash_reg.c
-+++ b/prog/hash_reg.c
-@@ -100,7 +100,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 2 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 2 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     sarrayUnionByAset(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -123,7 +123,7 @@ L_REGPARAMS  *rp;
-     sarrayIntersectionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-     sarrayDestroy(&sa3);
--    regTestCompareValues(rp, string_intersection, c1, 0);  /* 6 */
-+    regTestCompareValues(rp, string_intersection, c1, 1);  /* 6 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     sarrayUnionByHmap(sa1, sa2, &sa3);
-     c1 = sarrayGetCount(sa3);
-@@ -160,7 +160,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 10 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 10 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     ptaUnionByAset(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -182,7 +182,7 @@ L_REGPARAMS  *rp;
-     ptaIntersectionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-     ptaDestroy(&pta3);
--    regTestCompareValues(rp, pta_intersection, c1, 0);  /* 14 */
-+    regTestCompareValues(rp, pta_intersection, c1, 1);  /* 14 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     ptaUnionByHmap(pta1, pta2, &pta3);
-     c1 = ptaGetCount(pta3);
-@@ -220,7 +220,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 18 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 18 */
-     if (rp->display) lept_stderr("  aset: intersection size = %d\n", c1);
-     l_dnaUnionByAset(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-@@ -242,7 +242,7 @@ L_REGPARAMS  *rp;
-     l_dnaIntersectionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
-     l_dnaDestroy(&da3);
--    regTestCompareValues(rp, da_intersection, c1, 0);  /* 22 */
-+    regTestCompareValues(rp, da_intersection, c1, 1);  /* 22 */
-     if (rp->display) lept_stderr("  hmap: intersection size = %d\n", c1);
-     l_dnaUnionByHmap(da1, da2, &da3);
-     c1 = l_dnaGetCount(da3);
diff --git a/srcpkgs/leptonica/template b/srcpkgs/leptonica/template
index 53e939a255ff..b7805c20c8bd 100644
--- a/srcpkgs/leptonica/template
+++ b/srcpkgs/leptonica/template
@@ -1,18 +1,19 @@
 # Template file for 'leptonica'
 pkgname=leptonica
-version=1.82.0
+version=1.83.1
 revision=1
-build_style=gnu-configure
+build_style=cmake
+configure_args="-DBUILD_PROG=ON -DBUILD_SHARED_LIBS=ON"
 hostmakedepends="pkg-config"
 makedepends="libopenjpeg2-devel libwebp-devel"
 checkdepends="which gnuplot"
 short_desc="Image processing and analysis library"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
 license="BSD-2-Clause"
 homepage="http://leptonica.org/"
 changelog="http://leptonica.org/source/version-notes.html"
-distfiles="http://leptonica.org/source/${pkgname}-${version}.tar.gz"
-checksum=155302ee914668c27b6fe3ca9ff2da63b245f6d62f3061c8f27563774b8ae2d6
+distfiles="https://github.com/DanBloomberg/leptonica/archive/refs/tags/${version}.tar.gz"
+checksum=4289d0a4224b614010072253531c0455a33a4d7c7a0017fe7825ed382290c0da
 
 post_install() {
 	vdoc moller52.jpg
@@ -39,5 +40,18 @@ leptonica-examples_package() {
 		rm -f -r prog/*.{l,}o prog/.deps prog/.libs
 		# binaries, example source, images and data
 		vcopy prog usr/share/leptonica
+		vbin prog/ps2png
+		vbin prog/pdf2mtiff
+		vbin prog/ps2jpeg
+		vbin prog/ps2png-color
+		vbin prog/ps2png-binary
+		vbin prog/pdf2tiff
+		vbin prog/pdf2jpeg
+		vbin prog/pdf2png-gray
+		vbin prog/pdf2png
+		vbin prog/ps2tiff
+		vbin prog/pdf2png-color
+		vbin prog/ps2png-gray
+		vbin prog/pdf2png-binary
 	}
 }

From 14cd279fef9d64fe8c9fe7f8c0a086ac6e736826 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:29 +0100
Subject: [PATCH 2/3] ccextractor: rebuild for leptonica.

---
 srcpkgs/ccextractor/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/ccextractor/template b/srcpkgs/ccextractor/template
index 9abcd82852b2..7fe2ba4f27b6 100644
--- a/srcpkgs/ccextractor/template
+++ b/srcpkgs/ccextractor/template
@@ -1,7 +1,7 @@
 # Template file for 'ccextractor'
 pkgname=ccextractor
 version=0.93
-revision=1
+revision=2
 build_wrksrc="linux"
 build_style=gnu-configure
 configure_args="--enable-ocr --enable-hardsubx"

From 37880cf59682684178e6dd9c14981b0aa8a51645 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 17 Feb 2023 14:33:39 +0100
Subject: [PATCH 3/3] tesseract-ocr: update to 5.3.0.

---
 srcpkgs/tesseract-ocr/patches/musl-sys-time.patch | 12 ------------
 srcpkgs/tesseract-ocr/template                    | 13 +++++++------
 2 files changed, 7 insertions(+), 18 deletions(-)
 delete mode 100644 srcpkgs/tesseract-ocr/patches/musl-sys-time.patch

diff --git a/srcpkgs/tesseract-ocr/patches/musl-sys-time.patch b/srcpkgs/tesseract-ocr/patches/musl-sys-time.patch
deleted file mode 100644
index 9c6337d18863..000000000000
--- a/srcpkgs/tesseract-ocr/patches/musl-sys-time.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/ccutil/ocrclass.h	2019-07-07 14:34:08.000000000 +0200
-+++ b/src/ccutil/ocrclass.h	2019-07-08 10:47:15.347415888 +0200
-@@ -31,6 +31,9 @@
- #ifdef _WIN32
- #include <winsock2.h> // for timeval
- #endif
-+#ifndef __GLIBC__
-+#include <sys/time.h>
-+#endif
- 
- /**********************************************************************
-  * EANYCODE_CHAR
diff --git a/srcpkgs/tesseract-ocr/template b/srcpkgs/tesseract-ocr/template
index 394f82aea2a8..53b3377e0be0 100644
--- a/srcpkgs/tesseract-ocr/template
+++ b/srcpkgs/tesseract-ocr/template
@@ -1,8 +1,8 @@
 # Template file for 'tesseract-ocr'
 pkgname=tesseract-ocr
-version=4.1.1
-revision=7
-_tessdataver=4.0.0
+version=5.3.0
+revision=1
+_tessdataver=4.1.0
 create_wrksrc=yes
 build_style=gnu-configure
 configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include $(vopt_enable openmp)"
@@ -16,8 +16,8 @@ homepage="https://github.com/tesseract-ocr/tesseract"
 distfiles="
  https://github.com/tesseract-ocr/tesseract/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz
  https://github.com/tesseract-ocr/tessdata/archive/${_tessdataver}.tar.gz>tessdata-${_tessdataver}.tar.gz"
-checksum="2a66ff0d8595bff8f04032165e6c936389b1e5727c3ce5a27b3e059d218db1cb
- 38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
+checksum="7e70870f8341e5ea228af2836ce79a36eefa11b01b56177b4a8997f330c014b8
+ 990fffb9b7a9b52dc9a2d053a9ef6852ca2b72bd8dfb22988b0b990a700fd3c7"
 
 build_options="openmp"
 build_options_default="openmp"
@@ -46,6 +46,8 @@ pkg_lang() {
 
 post_extract() {
 	mv tesseract-${version}/* .
+	rmdir tessdata-${_tessdataver}/tessconfigs
+	rm tessdata-${_tessdataver}/pdf.ttf tessdata-${_tessdataver}/configs tessdata-${_tessdataver}/.gitmodules
 	mv tessdata-${_tessdataver}/* ${wrksrc}/tessdata
 	rmdir tessdata-${_tessdataver}
 }
@@ -62,7 +64,6 @@ post_install() {
 	mv ${DESTDIR}/usr/share/man/man1/tesseract{,-ocr}.1
 	vdoc ChangeLog
 	vdoc README.md
-	vlicense ${FILESDIR}/COPYING LICENSE-tessdata
 	# Move the pseudo languges "equ" (math / equation detection) and
 	# "osd" (orientation and script detection) to the main package
 	for lang in equ osd; do

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [WIP] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (11 preceding siblings ...)
  2023-03-10 10:49 ` [PR PATCH] [Updated] [WIP] " Eloitor
@ 2023-03-10 10:51 ` Eloitor
  2023-06-09  2:06 ` github-actions
  2023-06-23  2:06 ` [PR PATCH] [Closed]: " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: Eloitor @ 2023-03-10 10:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1845 bytes --]

New comment by Eloitor on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#issuecomment-1463623891

Comment:
The build of tesseract-ocr fails with:

```
  CXX      src/lstm/libtesseract_lstm_la-input.lo
  CXX      src/lstm/libtesseract_lstm_la-lstmrecognizer.lo
  CXX      src/lstm/libtesseract_lstm_la-lstm.lo
mv: cannot stat 'src/lstm/.deps/libtesseract_lstm_la-convolve.Tpo': No such file or directory
make[1]: *** [Makefile:6458: src/lstm/libtesseract_lstm_la-convolve.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
  CXX      src/lstm/libtesseract_lstm_la-maxpool.lo
  CXX      src/lstm/libtesseract_lstm_la-network.lo
  CXX      src/lstm/libtesseract_lstm_la-networkio.lo
  CXX      src/lstm/libtesseract_lstm_la-parallel.lo
  CXX      src/lstm/libtesseract_lstm_la-plumbing.lo
  CXX      src/lstm/libtesseract_lstm_la-recodebeam.lo
  CXX      src/lstm/libtesseract_lstm_la-reconfig.lo
  CXX      src/lstm/libtesseract_lstm_la-reversed.lo
  CXX      src/lstm/libtesseract_lstm_la-series.lo
  CXX      src/lstm/libtesseract_lstm_la-stridemap.lo
  CXX      src/lstm/libtesseract_lstm_la-tfnetwork.lo
  CXX      src/lstm/libtesseract_lstm_la-weightmatrix.lo
  CXXLD    libtesseract_native.la
  CXXLD    libtesseract_avx.la
  CXXLD    libtesseract_avx2.la
  CXXLD    libtesseract_avx512.la
  CXXLD    libtesseract_fma.la
  CXXLD    libtesseract_sse.la
  CXXLD    libtesseract_training.la
  CXXLD    libtesseract_ccutil.la
make[1]: Leaving directory '/builddir/tesseract-ocr-5.3.0'
make: *** [Makefile:8197: all-recursive] Error 1
make: *** Waiting for unfinished jobs....
=> ERROR: tesseract-ocr-5.3.0_1: do_build: '${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}' exited with 2
=> ERROR:   in do_build() at common/build-style/gnu-configure.sh:15
```

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [WIP] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (12 preceding siblings ...)
  2023-03-10 10:51 ` Eloitor
@ 2023-06-09  2:06 ` github-actions
  2023-06-23  2:06 ` [PR PATCH] [Closed]: " github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2023-06-09  2:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/42322#issuecomment-1583831576

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PR PATCH] [Closed]: [WIP] leptonica: update to 1.83.1, adopt.
  2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
                   ` (13 preceding siblings ...)
  2023-06-09  2:06 ` github-actions
@ 2023-06-23  2:06 ` github-actions
  14 siblings, 0 replies; 16+ messages in thread
From: github-actions @ 2023-06-23  2:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

There's a closed pull request on the void-packages repository

[WIP] leptonica: update to 1.83.1, adopt.
https://github.com/void-linux/void-packages/pull/42322

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - i686


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-06-23  2:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 22:31 [PR PATCH] leptonica: update to 1.83.1, adopt Eloitor
2023-02-16 22:58 ` Eloitor
2023-02-17 12:58 ` icp1994
2023-02-17 13:19 ` [PR PATCH] [Updated] " Eloitor
2023-02-17 13:25 ` Eloitor
2023-02-17 14:25 ` [PR REVIEW] " icp1994
2023-02-17 14:25 ` icp1994
2023-02-17 14:25 ` icp1994
2023-02-17 14:28 ` [PR PATCH] [Updated] " Eloitor
2023-02-17 14:31 ` Eloitor
2023-02-17 14:43 ` Eloitor
2023-02-17 14:44 ` icp1994
2023-03-10 10:49 ` [PR PATCH] [Updated] [WIP] " Eloitor
2023-03-10 10:51 ` Eloitor
2023-06-09  2:06 ` github-actions
2023-06-23  2:06 ` [PR PATCH] [Closed]: " github-actions

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).