Feedback on MailScanner 4.56.1-1 beta

Jim Holland mailscanner at mango.zw
Thu Aug 24 12:05:47 IST 2006


Hi Julian

(Excuse the top posting - seems more appropriate here)

Just to be a little more explicit about the problem of the failed Perl
module installation:

The install.sh script includes:

>> START QUOTE FROM INSTALL.SH

while read MODNAME MODFILE VERS BUILD ARC
do

  . . .

  # If the module version is already installed, go onto the next one
  # (unless it is MIME-tools which is always rebuilt.
  if ./CheckModuleVersion ${MODNAME} ${VERS} && [ "x$MODNAME" \!= "xMIME::Base64" ]; then
    echo Oh good, module ${MODNAME} version ${VERS} is already installed.
    echo
    timewait 5
  else
    FILEPREFIX=perl-${MODFILE}-${VERS}-${BUILD}
    # Need to install my customised version of MIME-Base64
    if [ "x${MODFILE}" = "xMIME-Base64" ]; then
      FILEPREFIX=MailScanner-${FILEPREFIX}
    fi
    echo Attempting to build and install ${FILEPREFIX}

  . . .

  fi
done << EOF
ExtUtils::MakeMaker ExtUtils-MakeMaker 6.30 1   noarch
Net::CIDR       Net-CIDR        0.10    1       noarch
IsABundle       IO-stringy      2.108   1       noarch
MIME::Base64    MIME-Base64     3.05    5       arch
IsABundle       TimeDate        1.16    3       noarch
IsABundle       MailTools       1.71    1       noarch
File::Spec      File-Spec       0.82    1       noarch
File::Temp      File-Temp       0.16    1       noarch
HTML::Tagset    HTML-Tagset     3.03    1       noarch
HTML::Parser    HTML-Parser     3.54    1       arch
Convert::BinHex Convert-BinHex  1.119   2       noarch
IsABundle       MIME-tools      5.420   1       noarch
Convert::TNEF   Convert-TNEF    0.17    1       noarch
Compress::Zlib  Compress-Zlib   1.41    1       arch
Archive::Zip    Archive-Zip     1.14    1       noarch
DBI             DBI             1.50    2       noarch
DBD::SQLite     DBD-SQLite      1.12    1       noarch
Getopt::Long    Getopt-Long     2.35    1       noarch
Time::HiRes     Time-HiRes      1.86    1       noarch
Filesys::Df     Filesys-Df      0.90    1       noarch
Net::IP         Net-IP          1.24    1       noarch
Sys::Hostname::Long Sys-Hostname-Long 1.4 1     noarch
Sys::Syslog     Sys-Syslog      0.17    1       noarch
EOF

>>END QUOTE FROM INSTALL.SH

So for each of the above modules you should see in the script's output 
either:

	Oh good, module . . . is already installed.
or
	Attempting to build and install . . .

When I ran the script I got the following lines in the output which I 
logged:

Oh good, module ExtUtils::MakeMaker version 6.30 is already installed.
Oh good, module Net::CIDR version 0.10 is already installed.
Attempting to build and install perl-IO-stringy-2.108-1
Attempting to build and install MailScanner-perl-MIME-Base64-3.05-5
Attempting to build and install perl-TimeDate-1.16-3
Attempting to build and install perl-MailTools-1.71-1
Oh good, module File::Spec version 0.82 is already installed.
Oh good, module File::Temp version 0.16 is already installed.
Oh good, module HTML::Tagset version 3.03 is already installed.
Oh good, module HTML::Parser version 3.54 is already installed.
Oh good, module Convert::BinHex version 1.119 is already installed.
Attempting to build and install perl-MIME-tools-5.420-1
Oh good, module Convert::TNEF version 0.17 is already installed.
Oh good, module Compress::Zlib version 1.41 is already installed.
Oh good, module Archive::Zip version 1.14 is already installed.
Oh good, module DBI version 1.50 is already installed.
Oh good, module DBD::SQLite version 1.12 is already installed.
Attempting to build and install perl-Getopt-Long-2.35-1

but did not get the following expected lines for the remaining modules 
that were skipped:

Oh good, module Time::HiRes version 1.86 is already installed.
Oh good, module Filesys::Df version 0.90 is already installed.
Attempting to build and install perl-Net-IP-1.24-1
Attempting to build and install Sys::Hostname::Long
Attempting to build and install perl-Sys-Syslog-0.17-1

I still can't work out why it didn't work, but can only observe that after
the errors with perl-Getopt-Long-2.35-1 (see below) the script didn't try
to process the remaining five modules.  In the absence of
Sys::Hostname::Long, MailScanner failed to run until I had installed the 
module manually from cpan.

My questions are:

	Is the install.sh script broken in some way or have I 
	misunderstood how it is intended to work?

	Should I manually uninstall /usr/lib/perl5/5.6.1/Getopt/Long.pm
	and the cpan Sys::Hostname::Long and then rerun the install script
	or is it OK to leave as is?

Regards

Jim Holland
System Administrator
MANGO - Zimbabwe's non-profit e-mail service


On Thu, 24 Aug 2006, Jim Holland wrote:

> Date: Thu, 24 Aug 2006 00:41:01 +0200 (CAT)
> From: Jim Holland <mailscanner at mango.zw>
> Reply-To: MailScanner discussion <mailscanner at lists.mailscanner.info>
> To: MailScanner discussion <mailscanner at lists.mailscanner.info>
> Subject: Re: Feedback on MailScanner 4.56.1-1 beta
> 
> Hi Julian
> 
> You wrote in reference to my install.log sent privately:
> 
> > It's probably in the Clam-SA tarball.
> > Looks like I will have to move it.
> >
> > root wrote:
> >> Hi Julian
> >>
> >> This is the log.
> >>
> >> I can't see any reference to trying to install Sys::Hostname::Long
> >>
> >> Regards
> >>
> >> Jim Holland
> 
> However the perl-Sys-Hostname-Long-1.4-1.src.rpm file is already included
> in MailScanner-4.56.1-1.rpm.tar.gz.  That rpm contains the 
> Sys-Hostname-Long-1.4.tar.gz which is in the Clam-SA tarball.
> 
> I still think something very strange is going on with the installation of 
> the Perl modules.  The installation goes as far as installing 
> perl-Getopt-Long-2.35-1, which appears to go fine.  However when running 
> MailScanner -v there is no mention of this module at all - see listing 
> below.  It is however found at /usr/lib/perl5/5.6.1/Getopt/Long.pm.
> 
> Having another look at the install log I now finally notice this:
> 
> file /usr/lib/perl5/5.6.1/Getopt/Long.pm from install of perl-Getopt-Long-2.35-1 conflicts with file from package perl-5.6.1-36.1.71
> file /usr/lib/perl5/5.6.1/newgetopt.pl from install of perl-Getopt-Long-2.35-1 conflicts with file from package perl-5.6.1-36.1.71
> file /usr/share/man/man3/Getopt::Long.3pm.gz from install of perl-Getopt-Long-2.35-1 conflicts with file from package perl-5.6.1-36.1.71
> 
> I suspect that when a module installation failure occurs during the
> execution of the following command:
> 
>    rpm -Uvh ${NODEPS} ${RPMROOT}/RPMS/${ARC}/${FILEPREFIX}.${ARC}.rpm
> 
> then the script breaks out of the Here Documents loop at this point and 
> fails to continue to install any remaining Perl modules.
> 
> Regards
> 
> Jim Holland
> System Administrator
> MANGO - Zimbabwe's non-profit e-mail service
> 
> Running on
> Linux mail.mango.zw 2.4.20-28.7 #1 Thu Dec 18 11:15:04 EST 2003 i686 unknown
> This is Red Hat Linux release 7.1 (Seawolf)
> This is Perl version 5.006001 (5.6.1)
> 
> This is MailScanner version 4.56.1
> Module versions are:
> 1.14	Archive::Zip
> 1.119 	Convert::BinHex
> 1.03	Fcntl
> 2.6	File::Basename
> 2.03	File::Copy
> 2.00	FileHandle
> 1.0404	File::Path
> 0.16	File::Temp
> 0.92	Filesys::Df
> 1.35	HTML::Entities
> 3.54	HTML::Parser
> 2.37	HTML::TokeParser
> 1.20	IO
> 1.08	IO::File
> 1.121	IO::Pipe
> 1.71	Mail::Header
> 3.05	MIME::Base64
> 5.420	MIME::Decoder
> 5.420	MIME::Decoder::UU
> 5.420	MIME::Head
> 5.420	MIME::Parser
> 3.03	MIME::QuotedPrint
> 5.420	MIME::Tools
> 0.10	Net::CIDR
> 1.03	POSIX
> 1.72	Socket
> 1.4	Sys::Hostname::Long
> 0.01	Sys::Syslog
> 1.86	Time::HiRes
> 1.01	Time::localtime
> 
> Optional module versions are:
> 0.17	Convert::TNEF
> 1.75	DB_File
> 1.12	DBD::SQLite
> 1.50	DBI
> 1.10	Digest
> missing	Digest::HMAC
> 2.36	Digest::MD5
> missing	Digest::SHA1
> missing	Inline
> missing	Mail::ClamAV
> missing	Mail::SpamAssassin
> missing	Mail::SPF::Query
> missing	Net::CIDR::Lite
> missing	Net::IP
> missing	Net::DNS
> missing	Net::LDAP
> missing	Parse::RecDescent
> missing	SAVI
> 2.46	Test::Harness
> 0.62	Test::Simple
> missing	Text::Balanced
> 1.35	URI
> 
> 



More information about the MailScanner mailing list