Bug 201380 - graphics/tesseract-data: specifying TESSERACT_LANGS in make.conf breaks port
Summary: graphics/tesseract-data: specifying TESSERACT_LANGS in make.conf breaks port
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brendan Fabeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-06 19:50 UTC by dennis.noordsij
Modified: 2015-11-30 20:12 UTC (History)
0 users

See Also:
amdmi3: maintainer-feedback-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dennis.noordsij 2015-07-06 19:50:10 UTC
graphics/tesseract-data allows specifying for which languages the trainingdata should be built/included, via the environment variable TESSERACT_LANGS

Works (bash):
============
# cd /usr/ports/graphics/tesseract-data
# TESSERACT_LANGS="eng osd" make checksum
===>  License APACHE20 accepted by the user
===>   tesseract-data-3.02_2 depends on file: /usr/local/sbin/pkg - found

The choice of language data to be installed may
be overridden by defining TESSERACT_LANGS. 

===> Fetching all distfiles required by tesseract-data-3.02_2 for building
=> SHA256 Checksum OK for tesseract/tesseract-ocr-3.01.osd.tar.gz.
=> SHA256 Checksum OK for tesseract/tesseract-ocr-3.02.eng.tar.gz.



However, if one adds this variable to make.conf instead:
============

# cat /etc/make.conf 
TESSERACT_LANGS="eng osd"

# make checksum
===>  License APACHE20 accepted by the user
===>   tesseract-data-3.02_2 depends on file: /usr/local/sbin/pkg - found

The choice of language data to be installed may
be overridden by defining TESSERACT_LANGS. 

===> Fetching all distfiles required by tesseract-data-3.02_2 for building
=> No SHA256 checksum recorded for tesseract/.
=> No suitable checksum found for tesseract/.
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/tesseract-data


The main problem is that you need to set this in the relevant poudriere make.conf file in order to have the port built with the needed languages only, and this currently does not work.

My most recent Poudriere-built package of tesseract-data (using the make.conf configuration) is dated december 5th 2014, so at least back then it worked. (That is already version 3.02_2, poudriere never needed to update it, until I needed a different language (eng/osd moved out of graphics/tesseract) and asked it to rebuild).
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2015-11-30 20:12:12 UTC
You should specify

TESSERACT_LANGS=eng osd

instead of

TESSERACT_LANGS="eng osd"