Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270686 - mail-filter/MailScanner-4.70.7.1 fails to start after upgrade of dev-perl/MIME-tools-5.427
Summary: mail-filter/MailScanner-4.70.7.1 fails to start after upgrade of dev-perl/MIM...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 09:45 UTC by rinus
Modified: 2012-03-18 18:55 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rinus 2009-05-21 09:45:27 UTC
After an upgrade of dev-perl/MIME-tools-5.420 to dev-perl/MIME-tools-5.427 MailScanner doesn't start anymore.

1)
A downgrade of dev-perl/MIME-tools to version 5.420 is not possible because the ebuild is not in portage anymore.
2)
# equery b /usr/lib/perl5/5.8.8/i686-linux/IO.pm 
dev-lang/perl-5.8.8-r5 (/usr/lib/perl5/5.8.8/i686-linux/IO.pm)
So perl itself is the owner of the module. :-(

3)
This is a part of the MailScanner script witch generates the error:

# Check version of MIME-tools against its requirements
my $error = 0;
if ($MIME::Tools::VERSION > 5.420) {
  # They have a new MIME-tools so must have new File::Temp
  if ($IO::VERSION<1.23) {
    print STDERR "\n\n**** ERROR: You must upgrade your perl IO module to at least\n**** ERROR: version 1.2301 or MailScanner will not work!\n\n";
    $error = 1;
  }
  if ($IO::Stringy::VERSION<2.110) {
    print STDERR "\n\n**** ERROR: You must upgrade your perl IO::Stringy module to at least\n**** ERROR: version 2.110 or MailScanner will not work!\n\n";
    $error = 1;
  }
}
exit 1 if $error;


Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/MailScanner start

Actual Results:  
**** ERROR: You must upgrade your perl IO module to at least
**** ERROR: version 1.2301 or MailScanner will not work!


Expected Results:  
MailScanner starts like before the update of dev-perl/MIME-tools

/etc/portage/package.keywords:

# Used for MailScanner
mail-filter/MailScanner         ~x86
dev-perl/Filesys-Df             ~x86
perl-core/Sys-Syslog            ~x86
virtual/perl-Sys-Syslog         ~x86
dev-perl/Encode-Detect          ~x86
dev-perl/Mail-DKIM              ~x86
net-mail/tnef                   ~x86


# emerge --info:

Portage 2.1.6.11 (hardened/x86, gcc-3.4.6, glibc-2.8_p20080602-r1, 2.6.21-xen-domU i686)
=================================================================
System uname: Linux-2.6.21-xen-domU-i686-Dual-Core_AMD_Opteron-tm-_Processor_2214-with-glibc2.3.2
Timestamp of tree: Thu, 21 May 2009 07:30:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://192.168.161.1/gentoo-portage"
USE="apache2 bash-completion berkdb bzip2 cgi clamav cli cracklib crypt gd gif hardened hash iconv ipv6 javascript jpeg jpeg2k kerberos logrotate maildir midi mmx mysql ncurses nls nptl nptlonly pam pcre perl php pic png postfix readline session slang sni snmp spamassassin sqlite ssl suhosin tcpd tiff unicode urandom userlocales vhosts virus-scan x86 xml xmlreader xmlrpc xmlwriter xorg 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel         mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage  siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware         voodoo"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 rinus 2009-05-21 10:20:26 UTC
The easiest workaround for now is to downgrade dev-perl/MIME-tools-5.427 to dev-perl/MIME-tools-5.420.

See this link for the ebuild.
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/MIME-tools/?hideattic=0
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2009-05-21 13:36:10 UTC
Better install a sufficient new perl-core/IO.
Comment 3 rinus 2009-05-22 13:02:38 UTC
Thanks very much!
I didn't knew about existence about package perl-core/IO.. :-(
After installing dev-perl/MIME-tools-5.427 and perl-core/IO-1.23.01, MailScanner workings again.

The qustion is now:
Should there be a dependency in the MailScanner ebuild for >=perl-core/IO-1.23.01 if >dev-perl/MIME-tools-5.420 is installed ??
I can create a patch if needed.
Comment 4 Jarry 2009-05-24 08:25:27 UTC
I also had this problem. Fixed it with emerging perl-core/IO, and got another problem: I can not stop MailScanner cleanly:

 # /etc/init.d/MailScanner stop
* Stopping MailScanner...
* MailScanner: caught SIGTERM, aborting

# ps -e
  PID TTY          TIME CMD
    1 ?        00:00:01 init
17649 ?        00:00:00 syslog-ng
17664 ?        00:00:00 sendmail
17667 ?        00:00:00 sendmail
...

MailScanner has been stopped, but Sendmail (which has been started by MailScanner init script) runs! So I can not start MailScanner again:

 # /etc/init.d/MailScanner start
* WARNING: MailScanner has already been started

And this is a problem, because MailScanner has default option "Restart every = 7200" (to avoid resource leaks). As a temporary workaround I removed that option from config file...
Comment 5 Pacho Ramos gentoo-dev 2012-03-18 18:55:01 UTC
mail-filter/MailScanner was dropped time ago