Skip to contentSkip to conversation

package/ghostscript: add tesseract-ocr optional dependency

PATCH New Fabrice Fontaine 1 participant 1 message Feb 14, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ghostscript: add tesseract-ocr optional dependency

tesseract-ocr is an optional dependency which is enabled by default since version 9.53.0 and
https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=7322ef87546c55b29056c1d96d8bdbb7f3ba53ef

Since version 9.55.0 and
https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5459f7aca1ded3b7cf96c339a2419f418aa406c7,
ghostscript expects that tesseract-ocr is disabled if threads are not available resulting in the following build failure since commit 7a4944569ce83b0b7b0cabd6e8aa184b8cb72a22:

configure: error: Threading disabled or not available. Tesseract OCR relies on threading. Rerun configure with "--without-tesseract" to exclude OCR from the build

Fixes:
- http://autobuild.buildroot.org/results/fd35a47b2a77cf57c243ec1c88802b53ddca8f52

---
 package/ghostscript/ghostscript.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/ghostscript/ghostscript.mk +7 -0
index 24a0c489a8..e869e804ce 100644
@@ -76,6 +76,13 @@ else
 GHOSTSCRIPT_CONF_OPTS += --disable-cups
 endif
 
+ifeq ($(BR2_PACKAGE_TESSERACT_OCR),y)
+GHOSTSCRIPT_DEPENDENCIES += tesseract-ocr
+GHOSTSCRIPT_CONF_OPTS += --with-tesseract
+else
+GHOSTSCRIPT_CONF_OPTS += --without-tesseract
+endif
+
 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
 GHOSTSCRIPT_DEPENDENCIES += xlib_libX11
 GHOSTSCRIPT_CONF_OPTS += --with-x
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot