Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313633 - mail-filter/spamassassin-fuzzyocr doesn't works correctly with mail-filter/spamassassin-3.3.1
Summary: mail-filter/spamassassin-fuzzyocr doesn't works correctly with mail-filter/sp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-07 08:06 UTC by Marcin Mirosław
Modified: 2010-07-30 09:07 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated patch from debian tree - fuzzyocr_3.6.0-3 (spamassassin-fuzzyocr-3.6.0-untaint_ocr_helper.patch,1.73 KB, patch)
2010-07-29 18:23 UTC, Zdenek Herman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2010-04-07 08:06:52 UTC
spamassassin --lint throws warnings:
kwi  7 09:57:43.321 [12157] warn: plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
kwi  7 09:57:43.322 [12157] warn: config: failed to parse line, skipping, in "/etc/mail/spamassassin/FuzzyOcr.cf": focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
kwi  7 09:57:43.323 [12157] warn: plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
kwi  7 09:57:43.324 [12157] warn: config: failed to parse line, skipping, in "/etc/mail/spamassassin/FuzzyOcr.cf": focr_bin_helper tesseract
kwi  7 09:57:43.331 [12157] warn: plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
kwi  7 09:57:43.332 [12157] warn: config: failed to parse line, skipping, in "/etc/mail/spamassassin/FuzzyOcr.cf": focr_end_config
kwi  7 09:57:45.212 [12157] warn: plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.        
kwi  7 09:57:47.674 [12157] warn: rules: failed to run FUZZY_OCR test, skipping:                                                                                                        
kwi  7 09:57:47.675 [12157] warn:  (Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.                           
kwi  7 09:57:47.676 [12157] warn: )                                                                               
kwi  7 09:57:47.704 [12157] warn: lint: 4 issues detected, please rerun with debug enabled for more information

sa-compile refuses to compile rules, because lint throws warnings (and exit code isn't equal zero):
# sa-compile 
plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
kwi  7 10:02:32.266 [12254] info: config: failed to parse line, skipping, in "/etc/mail/spamassassin/FuzzyOcr.cf": focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
kwi  7 10:02:32.268 [12254] info: config: failed to parse line, skipping, in "/etc/mail/spamassassin/FuzzyOcr.cf": focr_bin_helper tesseract
plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
kwi  7 10:02:32.277 [12254] info: config: failed to parse line, skipping, in "/etc/mail/spamassassin/FuzzyOcr.cf": focr_end_config
plugin: eval failed: Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
kwi  7 10:02:34.210 [12254] info: generic: base extraction starting. this can take a while...
kwi  7 10:02:34.211 [12254] info: generic: extracting from rules of type body_0
100% [===================================================================================================================================================] 1210.08 rules/sec 00m01s DONE
100% [===================================================================================================================================================]  36.45 bases/sec 01m10s DONE
kwi  7 10:03:46.535 [12254] info: body_0: 1565 base strings extracted in 72 seconds
rules: failed to run FUZZY_OCR test, skipping:
        (Insecure dependency in open while running with -T switch at /usr/lib/perl5/vendor_perl/5.8.8/FuzzyOcr/Logging.pm line 34.
)
sa-compile: not compiling; 'spamassassin --lint' check failed!

# spamassassin --lint 2>/dev/null ; echo $?
4



Reproducible: Always
Comment 1 Bernard Cafarelli gentoo-dev 2010-04-11 19:17:33 UTC
Hi, thanks for the report.

Can you post the output of "emerge --info spamassassin spamassassin-fuzzyocr" ?

On a stock install of mail-filter/spamassassin-3.3.1-r1 / mail-filter/spamassassin-fuzzyocr-3.6.0, sa-update then sa-compile/spamassassin --lint works for me
Comment 2 Marcin Mirosław 2010-04-11 20:18:43 UTC
My fault, i didn't wrote exact version of spamassassin-fuzyocr.

# emerge --info spamassassin spamassassin-fuzzyocr
Portage 2.1.7.17 (hardened/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.29-hardened i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.29-hardened-i686-Intel-R-_Celeron-R-_CPU_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 09 Apr 2010 07:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mtune=native -mfpmath=sse -fpeel-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ 
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -mtune=native -mfpmath=sse -fpeel-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs 
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--compress-level=0"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://192.168.2.6/gentoo-portage"
USE="acl acpi activefilter apache2 ares async automount bash-completion berkdb bzip2 caps chroot clamav clamd clamdtop cli contentcache cracklib crypt 
ctype cxx dri erandom exiscan exiscan-acl extras fam ftp gdbm gif gmp gnutls gocr graphite gzip hardened iconv idn imap innodb iproute2 ipv6 jpeg json 
justify kqemu logrotate logwatch lzo maildir memlimit mhash mime mmap mmx mmxext modules mouse mudflap ncurses network-cron nls nntp nptl nptlonly 
ocrad openmp openssl pam pcre pic png posix pppd profile readline recode reflection reiserfs session smp snmp spell spl sse sse2 ssl suhosin svg swat 
sysfs syslog threads threadsafe tiff tools unicode unzip urandom vhosts vim-pager vim-syntax x86 xattr xml xmlreader zip zlib" ALSA_CARDS="ali5451 
als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1   emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m   maestro3 trident 
usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat 
linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic auth_digest authn_anon authn_default 
authn_file authz_default authz_groupfile authz_host autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache 
filter headers imagemap info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so status unique_id userdir usertrack 
vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 
lcdm001 mtxorb ncurses text" LINGUAS="pl en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="sis"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

mail-filter/spamassassin-3.3.1-r1 was built with the following:
USE="berkdb ipv6 postgres sqlite ssl -doc -ldap -mysql -qmail"


mail-filter/spamassassin-fuzzyocr-3.6.0 was built with the following:
USE="dbm gocr logrotate ocrad -amavis -mysql -tesseract"

Comment 3 Stuart Hickinbottom 2010-05-01 15:19:26 UTC
I have found these posts helped to overcome this problem (SA-3.3.1-r2 and SA-fuzzyocr-3.6.0):
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568560
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568233

I've not looked into any side-effects of these changes.
Comment 4 Bernard Cafarelli gentoo-dev 2010-05-06 16:18:18 UTC
Nice, thanks for the links as I could not reproduce it here. Let's see what we can patch here...
Comment 5 Bernard Cafarelli gentoo-dev 2010-05-19 15:24:43 UTC
I've added the merged patch from both bugreports (from Debian), thanks for the report!

If 3.6.0-r1 does not work for you, please reopen
Comment 6 Marcin Mirosław 2010-05-19 19:35:17 UTC
Thanks for patch, but regretably i still have the same error. I tested it on 2 hosts. 
Comment 7 Bernard Cafarelli gentoo-dev 2010-05-20 09:14:37 UTC
So the Config.pm patch is not enough for the Logging.pm error? This may be another problem than the one reported in debian bugs then...
Comment 8 Zdenek Herman 2010-07-29 18:23:42 UTC
Created attachment 240623 [details, diff]
updated patch from debian tree - fuzzyocr_3.6.0-3

Please update to attached patch from debian. Fixing this bug.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568233
Comment 9 Bernard Cafarelli gentoo-dev 2010-07-29 21:16:38 UTC
Thanks for the info! I've updated the patch and done a revbump, so everyone gets the new patch

Please test and hopefully get a working version with spamassassin-fuzzyocr-3.6.0-r2
Comment 10 Zdenek Herman 2010-07-30 06:22:53 UTC
I recommend one more patch if tesseract is enabled
http://bugs.gentoo.org/show_bug.cgi?id=330461
Comment 11 Bernard Cafarelli gentoo-dev 2010-07-30 09:07:33 UTC
Nice, let's go on on bug #330461 then