| Summary: | mail-filter/spamassassin-fuzzyocr-3.6.0 requires gocr even if USE flag not set | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Oliver Schwabedissen <Oliver> |
| Component: | New packages | Assignee: | Patrick McLean <chutzpah> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | minor | CC: | bug, perl |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Oliver Schwabedissen
2010-04-28 05:00:04 UTC
Looking here; http://wiki.apache.org/spamassassin/FuzzyOcrPlugin Looks like gocr is a runtime dependency from the site; Requirements You will need giftopnm, jpegtopnm and pngtopnm (from netpbm), imagemagick and gocr installed. Additionally, you will need the perl module String::Approx and several tools from giflib (also known as libungif). (In reply to comment #1) > Looking here; > http://wiki.apache.org/spamassassin/FuzzyOcrPlugin > Looks like gocr is a runtime dependency from the site; The INSTALL file from the tarball says the official installation documentation can be found here: http://fuzzyocr.own-hero.net/wiki/Installation-3.6.x There it says "At least one OCR Engine (though multiple engines at once are possible)" However, it doesn't say how to disable gocr or ocrad. And the config file (FuzzyOcr.cf) says that these helpers are defined by default: # The following are already included by default: # #focr_bin_helper gifsicle, giffix, giftext, gifinter, giftopnm #focr_bin_helper jpegtopnm, pngtopnm, bmptopnm, tifftopnm, ppmhist #focr_bin_helper gocr, ocrad Removing a comment gives a warning that these helpers are already defined. Other helpers can be activated if required: # Include additional scanner/preprocessor commands here: # focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm #focr_bin_helper tesseract # These helpers must be defined before enabling PDF scanning focr_bin_helper pdfinfo, pdftops, pstopnm I disabled tesseract because I don't have it installed. But it seems the only way to disable one of the default helpers is to modify /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Config.pm: our @bin_utils = qw/gifsicle giffix giftext gifinter giftopnm jpegtopnm pngtopnm bmptopnm tifftopnm ppmhist pamfile ocrad gocr/; The ebuild just disables the scansets for gocr when the USE flag is disabled: # If gocr USE flag is unset, enable disable gocr in Fuzzyocr.scansets /jni use gocr || epatch "${FILESDIR}"/disablegocr.patch So if we need the USE flags for gocr and ocrad the ebuild should also patch Config.pm depending on which flags are enabled/disabled. If neither gocr, ocrad or tesseract is set the ebuild defaults to ocrad. Thanks for the detailed report! So we should also patch Config.pm according to the USE flags, and maybe also default to gocr as this is the default recommended upstream Masked for removal Package removed |