store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Sat Sep 20, 2014 8:00 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: sa-update error
Unread postPosted: Wed Jul 14, 2010 3:46 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 853
Location: Germany
since updating centos 5.5 with the latest package...
Code:
perl-Archive-Tar-1.39.1-1.el5_5.1.noarch.rpm


...sa-update quits with this error:
Code:
Argument "1.39_01" isn't numeric in subroutine entry at /usr/bin/sa-update line 81.


a check via sa-update --debug shows that this module is installed:
Code:
[15393] dbg: diag: module installed: Archive::Tar, version 1.39_01


line 81 of /usr/bin/sa-update shows this:
Code:
use Archive::Tar 1.23;


So the mismatch causes the error. But what to do now. Just changing the value in /usr/bin/sa-update does not do the job.
Thanks for any help


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 3:58 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 853
Location: Germany
Because I thought that the error with the "numeric" is totally clear, I changed the value of the new installed
perl-Archive-Tar in /usr/lib/perl5/vendor_perl/5.8.8/Archive/Tar.pm

from
$VERSION = "1.39_01";

to
$VERSION = "1.3901";

now sa-update seems to run fine.
I think I will open a bug in centos buglist.
If anybody has a correct solution please let me know.


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 4:45 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
I see the same issue. I'm not sure whether perl-Archive-Tar (package from CentOS) or SpamAssassin (package from ART) is at fault here. Any idea, Scott?

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 4:51 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 853
Location: Germany
I have opened a bug at redhat buglist. Let's see what the say about it too.


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 5:00 am 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 770
Location: Sweden
BruceLee wrote:
Because I thought that the error with the "numeric" is totally clear, I changed the value of the new installed
perl-Archive-Tar in /usr/lib/perl5/vendor_perl/5.8.8/Archive/Tar.pm

from
$VERSION = "1.39_01";

to
$VERSION = "1.3901";

now sa-update seems to run fine.
I think I will open a bug in centos buglist.
If anybody has a correct solution please let me know.


Thanks! Works for me as well!


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 6:11 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 853
Location: Germany
bug is discussed here:
https://bugzilla.redhat.com/show_bug.cgi?id=612879

Adding this instead of changing version value works too:

Code:
$VERSION = eval $VERSION;


And I will use it instead of changing it for this reason:
With that trick MakeMaker will only read the first line and thus read the underscore, while the perl interpreter will evaluate the $VERSION and convert the string into a number. Later operations that treat $VERSION as a number will then be able to do so without provoking a warning about $VERSION not being a number.


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 6:18 am 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 520
Location: United Kingdom
Discovered this problem a couple of weeks ago, it was only sa-update with a problem, so solved it by updated line 81 and dropping the version #:
Code:
use Archive::Tar;

Thanks for posting the RedHat bug report link! I take it that the best solution is updating /usr/lib/perl5/vendor_perl/5.8.8/Archive/Tar.pm with:
Code:
$VERSION                = "1.39_01";
+$VERSION                = eval $VERSION;

Nice one!


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 7:57 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2049
I'm very impressed with your detective work and your fix. Thank you.

This will undoubtedly save hours of pain for me and many others.

Faris.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Wed Jul 14, 2010 8:59 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 853
Location: Germany
Thanks faris, great that I can help.


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Thu Jul 29, 2010 5:16 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2049
I'm now getting this in Centos 4 (not 5) after updating to perl-Archive-Tar-1.39.1-1.el4_8.1 on several machines.

Most mysterious - my Tar.pm dates from 2008. I'm checking to see if I'm looking in the wrong place and will report back.

Faris.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Thu Jul 29, 2010 5:28 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
That's also what I'm seeing:

Quote:
[janneke.lemonbit.nl ~]# rpm -q perl-Archive-Tar
perl-Archive-Tar-1.39.1-1.el4_8.1
[janneke.lemonbit.nl ~]# ll /usr/lib/perl5/vendor_perl/5.8.5/Archive/Tar.pm
-rw-r--r-- 1 root root 61977 Aug 22 2008 /usr/lib/perl5/vendor_perl/5.8.5/Archive/Tar.pm


That doesn't sound too weird though, since Archive-Tar-1.39_01 was indeed released on Aug 22 2008 according to http://search.cpan.org/dist/Archive-Tar/

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Thu Jul 29, 2010 5:36 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2049
Well, irrespective of file datestamp, it has been updated

So for Centos 4 / EL4, you'll find it in /usr/lib/perl5/vendor_perl/5.8.5/Archive/Tar.pm and you can resolve the problem in the same way.

Incidentally if you happen to use the rpmforge versions then you'll already be on 1.4.x and it doesn't have this problem.

EDIT: Incidentally, this problem may only crop up if you have enabled the centosplus repo, which I think provides a different Perl version to the base. Not sure though. Just mentioning it in case.

Faris.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Thu Jul 29, 2010 6:55 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
We don't use CentOS Plus. That perl-Archive-Tar package is just the plain CentOS package. I'm still not sure whether perl-Archive-Tar needs a fix or is SpamAssassin needs a fix and shouldn't try to parse the version number like it currently does.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Thu Jul 29, 2010 11:56 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 2049
Given that 3.3.x is available, I doubt that we are we likely to get an update to 3.2.x, even if we are only talking about the sa-update component.

I don't feel like upgrading to 3.3 yet. Too many things changed, and I don't even know if qmail-scanner is compatible with it.

Faris.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: sa-update error
Unread postPosted: Sat Aug 07, 2010 5:48 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Official Red Hat (and CentOS) perl-Archive-Tar updates that fix this problem are now available. Thanks to Scott for providing a fixed perl-Archive-Tar package in the Atomic repository in the meantime.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group