Suggestion

Stephane Lentz Stephane.Lentz at ANSF.ALCATEL.FR
Wed Oct 30 08:26:31 GMT 2002


Hi,

On Wed, Oct 30, 2002 at 12:18:04AM -0500, Matthew Davis wrote:
> On Tue, 2002-10-29 at 13:20, Julian Field wrote:
> > The current system will work for everyone, so is safe for novice users. If
> > advanced users know enough to just upgrade the MailScanner rpm itself, then
> > that's fine.
> >
> > Thoughts or suggestions?
>
> Well I'm using Redhat 7.3 and the rebuild process works _mostly_.  The
> perl-File-Spec rpm fails for me.
>
> [root at mail noarch]# rpm -Uhv perl-File-Spec-0.82-1.noarch.rpm
> Preparing...                ###########################################
> [100%]
> file /usr/share/man/man3/File::Spec.3pm.gz from install of
> perl-File-Spec-0.82-1 conflicts with file from package
> perl-5.6.1-34.99.6
>
> And the RPM then does not install.  And the same goes for
> perl-File-Temp.
>

Recent Linux distribs provide some perl RPM which includes perl + some
other modules. On Mandrake 9 perl-MIME-Base64, perl-File-Spec and perl-File-Temp are
also part of the perl RPM.
That means if some given version of these modules is required, it has to
be installed manually (perl Makefile.PL ; make install).
That makes things more complicated ...
A solution could be to check if the perl package includes these modules
and not try to rebuild these packages :

rpm -ql perl | grep 'File/Spec' 1>/dev/null
[ $? -eq 0 ] && file_spec_in_perl_rpm=1

if file_spec_in_perl_rpm is set to 1 then latter
do not try to rebuild and install the File-Spec RPM

SL/
---
Stephane Lentz / Alcanet International - Internet Services



More information about the MailScanner mailing list