Bug 221428 - graphics/gscan2pdf: Add RUN_DEPENDS on graphics/tesseract-data
Summary: graphics/gscan2pdf: Add RUN_DEPENDS on graphics/tesseract-data
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ben Woods
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2017-08-12 07:20 UTC by Ben Woods
Modified: 2017-09-23 12:40 UTC (History)
2 users (show)

See Also:
woodsb02: maintainer-feedback? (danilo)
pkubaj: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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