Bug 221428

Summary: graphics/gscan2pdf: Add RUN_DEPENDS on graphics/tesseract-data
Product: Ports & Packages Reporter: Ben Woods <woodsb02>
Component: Individual Port(s)Assignee: Ben Woods <woodsb02>
Status: Closed FIXED    
Severity: Affects Only Me CC: danilo, pkubaj
Priority: --- Keywords: needs-patch
Version: LatestFlags: woodsb02: maintainer-feedback? (danilo)
pkubaj: maintainer-feedback+
Hardware: Any   
OS: Any   

Description Ben Woods freebsd_committer freebsd_triage 2017-08-12 07:20:52 UTC
graphics/gscan2pdf: Add RUN_DEPENDS on graphics/tesseract-data

If graphics/gscan2pdf is built with the TESSERACT option, runtime errors are produced if the graphics/tesseract-data port is not installed.

The errors are shown upon initiating the "Scan document" feature. In the "Language to recognise" dropdown selection box, the following "options" are shown:
- Could not initialize tesseract.
- Error opening data file /usr/local/share/tessdata/eng.traineddata
- Failed loading language 'eng'
- Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
- Tesseract couldn't load any languages!
Comment 1 Ben Woods freebsd_committer freebsd_triage 2017-08-12 07:24:36 UTC
An alternative viewpoint could be that the graphics/tesseract port should have a RUN_DEPENDS added on graphics/tesseract-data.

Thoughts?
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2017-08-16 12:29:32 UTC
(In reply to Ben Woods from comment #1)
Fine for me :)
Comment 3 Ben Woods freebsd_committer freebsd_triage 2017-09-23 12:40:00 UTC
Committed - thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2017-09-23 12:40:11 UTC
A commit references this bug:

Author: woodsb02
Date: Sat Sep 23 12:39:56 UTC 2017
New revision: 450432
URL: https://svnweb.freebsd.org/changeset/ports/450432

Log:
  graphics/tesseract: Add graphics/tesseract-data as RUN_DEPENDS

  PR:		221428
  Approved by:	Piotr Kubaj (maintainer)

Changes:
  head/graphics/tesseract/Makefile
  head/graphics/tesseract/pkg-message