[Buildroot] [PATCH v3, 1/1] package/ghostscript: disable tesseract without threads

Arnout Vandecappelle arnout at mind.be
Mon Mar 7 22:25:38 UTC 2022


On 23/02/2022 21:26, Fabrice Fontaine wrote:
> ghostscript embeds a local copy of tesseract-ocr 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 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
>
> So disable tesseract if threads are not available. It should be noted
> that there is no way to tell ghostscript to use a system provided
> tesseract-ocr package.
>
> Fixes:
>   - http://autobuild.buildroot.org/results/fd35a47b2a77cf57c243ec1c88802b53ddca8f52
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
> Changes v2 -> v3 (after review of Arnout Vandecappelle):
>   - Only disable tesseract without threads
>
> Changes v1 -> v2:
>   - Unconditionally disable tesseract
>
>   package/ghostscript/ghostscript.mk | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/package/ghostscript/ghostscript.mk b/package/ghostscript/ghostscript.mk
> index 24a0c489a8..02cb35fcfc 100644
> --- a/package/ghostscript/ghostscript.mk
> +++ b/package/ghostscript/ghostscript.mk
> @@ -83,4 +83,8 @@ else
>   GHOSTSCRIPT_CONF_OPTS += --without-x
>   endif
>   
> +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
> +GHOSTSCRIPT_CONF_OPTS += --without-tesseract
> +endif
> +
>   $(eval $(autotools-package))



More information about the buildroot mailing list