Bug 3814 - sa-update fails to parse update file version
Summary: sa-update fails to parse update file version
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Remco Rijnders
QA Contact:
URL:
Whiteboard:
Keywords: validated_update
: 4434 (view as bug list)
Depends on: 2317
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-19 07:20 CET by bascule teller
Modified: 2012-04-24 19:55 CEST (History)
9 users (show)

See Also:
Source RPM: spamassassin-3.3.2-0.0.r2260312.1.mga1.src.rpm
CVE:
Status comment:


Attachments

Description bascule teller 2011-12-19 07:20:52 CET
Description of problem:

when i run 'sa-update -D' (i have installed spamassassin-rules)
i get at the end a few lines like:
http: GET http://daryl.dostech.ca/sa-update/asf/3.tar.gz request failed: 404 
Not Found
which is not surprising since ealier in the debig output is the line:
Dec 15 02:34:36.178 [20695] dbg: dns: 0.4.3.updates.spamassassin.org => 3.4 
1213599, parsed as 3

but surely that line should end in something like "parsed as 1215599" ? 
resulting in an attempt to download ../1215599.tar.gz ?

is it possible that that there is a bug in some tool outside of sa-update that 
is being used to do the parsing? it is a perl script and i know v. little 
about perl.
i also note the the spamassassin version reported by sa-update and spamassassin are different from the src rpm - but i'm not a packager so i don't know if that means anything :)


Version-Release number of selected component (if applicable):

SpamAssassin version 3.4.0-r929098

How reproducible:

Every time sa-update runs, whether manually or via cron.daily

Steps to Reproduce:
1. su to root
2.run sa-update (with or without -D option)
3.or: wait for cron.daily to execute
Remco Rijnders 2011-12-19 07:24:36 CET

Status: NEW => ASSIGNED
CC: (none) => stormi

Comment 1 Remco Rijnders 2012-01-22 13:36:40 CET
Hi bascule,

Thank you for this report.

I have a few additional questions for you:

1) Do you remember if this has been a problem from the first time you tried to update these files, or if it is something that broke later on?

2) Can you confirm that if you change (as root) line 450 of /usr/bin/sa-update from:
    if (defined $dnsV && $dnsV =~ /^(\d+)/) {
to:
    if (defined $dnsV && $dnsV =~ /^\d\.\d (\d+)/) {
the program works as you'd expect?

Thanks,

Remco
Comment 2 REINQUIN Franck 2012-01-23 22:23:42 CET
(In reply to comment #1)

I had the same problem so let me answer the same questions. ^^

> 
> 1) Do you remember if this has been a problem from the first time you tried to
> update these files, or if it is something that broke later on?

As far as I'm concerned, it occurred just after a fresh install (along with all updates).

> 
> 2) Can you confirm that if you change (as root) line 450 of /usr/bin/sa-update
> from:
>     if (defined $dnsV && $dnsV =~ /^(\d+)/) {
> to:
>     if (defined $dnsV && $dnsV =~ /^\d\.\d (\d+)/) {
> the program works as you'd expect?
> 

I came to the same conclusion a few days ago and I did something close though dirtier, just to retrieve the real version instead of "3" which was previously returned.

After that, I had another error (error 4 if I remember well) in lint_ckeck_dir, and as I didn't have the courage to dig into it, I patched lint_check_dir to always return 1 (I'm not proud of that ^^). Then the updates got installed correctly and now everything is fine.

CC: (none) => OLDTIMER.BUGZILLA

Comment 3 Johnny Accot 2012-01-27 15:46:22 CET
I had the same problem. The line change in comment #1 fixed it for me.

CC: (none) => mageia

Comment 4 bascule teller 2012-01-29 07:04:51 CET
(In reply to comment #1)
> Hi bascule,
> 
> Thank you for this report.
> 
> I have a few additional questions for you:
> 
> 1) Do you remember if this has been a problem from the first time you tried
> to update these files, or if it is something that broke later on?
>

hi, i can confirm that this has been a problem since i installed mageia1, i did 
a clean install formatting / and /usr and /boot but keeping /var and /home 
from my previous mandriva 2009.0 install 

> 2) Can you confirm that if you change (as root) line 450 of
> /usr/bin/sa-update from:
>     if (defined $dnsV && $dnsV =~ /^(\d+)/) {
> to:
>     if (defined $dnsV && $dnsV =~ /^\d\.\d (\d+)/) {
> the program works as you'd expect?

i now get the following error:
[root@watson bascule]# sa-update
rules: failed to run T_HEADER_FROM_DIFFERENT_DOMAINS test, skipping:
        (Can't locate object method "check_equal_from_domains" via package 
"Mail::SpamAssassin::PerMsgStatus" at (eval 1093) line 1419.
)
channel: lint check of update failed, channel failed


the ouput of sa-update -D does show that the correct update file is being found:

Jan 29 05:51:18.015 [25748] dbg: channel: channel pre file /var/lib/spamassassin/3.004000/updates_spamassassin_org.pre
Jan 29 05:51:18.764 [25748] dbg: dns: 0.4.3.updates.spamassassin.org => 3.4 1236595, parsed as 1236595

bascule
Comment 5 Manuel Hiebel 2012-02-07 23:16:13 CET
*** Bug 4434 has been marked as a duplicate of this bug. ***

CC: (none) => misc

Comment 6 Remco Rijnders 2012-02-13 13:33:19 CET
There is now spamassassin 3.3.2-1 in core/updates_testing to validate
-------------------------------------------------------

Suggested advisory:
-------------------
sa-update failed to update the rules files [1] shipped with spamassassin due to a parsing error which exists in the SVN snapshot Mageia shipped instead of the official upstream release. This update changes to the official release which does not have this issue.

Furthermore, there was a missing dependency on the spamassassin-rules package [2] which has been corrected.

[1] https://bugs.mageia.org/show_bug.cgi?id=3814
[2] https://bugs.mageia.org/show_bug.cgi?id=3712

--------------------------------------------------------
QA: I think the problem as reported in this bug report is the best test case to test against. Thanks for testing!

Assignee: remco => qa-bugs

Comment 7 claire robinson 2012-02-13 14:44:31 CET
x86_64

With the added require on spamassassin-rules this will be affected by bug 2317.

Should requires be added for the missing perl modules?


Before
------

Confirmed the bug.

# rpm -qa | grep spamassassin
spamassassin-3.3.2-0.0.r2260312.1.mga1

$ # urpmq --requires spamassassin | grep rules
Shows no require on spamassassin-rules

# sa-update --checkonly -D
... (skipped a bit)
Feb 13 13:27:30.425 [24052] dbg: diag: [...] module not installed: Razor2::Client::Agent ('require' failed)
...
Feb 13 13:27:30.425 [24052] dbg: diag: [...] module not installed: IO::Socket::INET6 ('require' failed)
...
Feb 13 13:20:49.927 [22997] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)
... (skipped a bit)
Feb 13 13:20:49.953 [22997] dbg: dns: 0.4.3.updates.spamassassin.org => 3.4 1243210, parsed as 3
Feb 13 13:20:49.953 [22997] dbg: channel: updates.spamassassin.org: update available, not downloading in checkonly mode
Feb 13 13:20:49.953 [22997] dbg: diag: updates complete, exiting with code 1

#sa-update -D

... (skipped a bit)
Feb 13 13:23:45.173 [23456] dbg: diag: [...] module not installed: Razor2::Client::Agent ('require' failed)
...
Feb 13 13:23:45.173 [23456] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)
...
Feb 13 13:23:45.173 [23456] dbg: diag: [...] module not installed: IO::Socket::INET6 ('require' failed)
...
... (skipped a lot)
...
Feb 13 13:23:48.402 [23456] dbg: http: GET request, http://sa-update.secnap.net/3.tar.gz
Feb 13 13:23:48.677 [23456] dbg: http: GET http://sa-update.secnap.net/3.tar.gz request failed, retrying: 404 Not Found: <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.0.5</center> </body> </html>
http: GET http://sa-update.secnap.net/3.tar.gz request failed: 404 Not Found: <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.0.5</center> </body> </html>
channel: could not find working mirror, channel failed
Feb 13 13:23:48.678 [23456] dbg: generic: cleaning up temporary directory/files
Feb 13 13:23:48.678 [23456] dbg: diag: updates complete, exiting with code 4
Comment 8 claire robinson 2012-02-13 14:50:51 CET
Remco, you forgot to add yourself in CC.

Could you see the top of comment 7 about the missing perl modules please.

Thanks!

-----------

Adding 2317 to 'Depends On' to help us keep track of affected bugs.

From depcheck x86_64..

The following packages will require linking:

spamassassin-rules-3.3.1-0.20101015.2.mga1 (Core 32bit Release)
spamassassin-rules-3.3.1-0.20101015.2.mga1 (Core Release)

CC: (none) => remco
Depends on: (none) => 2317

Comment 9 claire robinson 2012-02-13 17:16:38 CET
These are the full perl module checks it does when it is run.

Feb 13 15:35:16.524 [14374] dbg: diag: perl platform: 5.012003 linux                                                         
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Digest::SHA1, version 2.13                                    
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: HTML::Parser, version 3.68                                    
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Net::DNS, version 0.66
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: NetAddr::IP, version 4.043
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Time::HiRes, version 1.9719
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Archive::Tar, version 1.76
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: IO::Zlib, version 1.10
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Digest::SHA1, version 2.13
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: MIME::Base64, version 3.08
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: DB_File, version 1.822
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Net::SMTP, version 2.31 
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Mail::SPF, version v2.007
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: IP::Country::Fast, version 604.001
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module not installed: Razor2::Client::Agent ('require' failed)
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Net::Ident, version 1.23
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module not installed: IO::Socket::INET6 ('require' failed)
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: IO::Socket::SSL, version 1.39
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Compress::Zlib, version 2.02401
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Mail::DKIM, version 0.39
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: DBI, version 1.616
Feb 13 15:35:16.524 [14374] dbg: diag: [...] module installed: Getopt::Long, version 2.38
Feb 13 15:35:16.525 [14374] dbg: diag: [...] module installed: LWP::UserAgent, version 6.02
Feb 13 15:35:16.525 [14374] dbg: diag: [...] module installed: HTTP::Date, version 6.00
Feb 13 15:35:16.525 [14374] dbg: diag: [...] module installed: Encode::Detect, version 1.01
Feb 13 15:35:16.525 [14374] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)


and the current perl dependencies...


perl(NetAddr::IP)
perl-Net-DNS
perl(Time::HiRes)
perl-base
perl(AnyDBM_File)
perl(Archive::Tar) >= 1.230.0
perl(Config)
perl(Errno)
perl(Fcntl)
perl(File::Path)
perl(File::Spec)
perl(Getopt::Long)
perl(HTTP::Date)
perl(IO::Zlib) >= 1.40.0
perl(LWP::UserAgent)
perl(Mail::SpamAssassin)
perl(Mail::SpamAssassin::ArchiveIterator)
perl(Mail::SpamAssassin::Logger)
perl(Mail::SpamAssassin::Message)
perl(Mail::SpamAssassin::PerMsgLearner)
perl(Mail::SpamAssassin::Util)
perl(Mail::SpamAssassin::Util::Progress)
perl(Net::DNS)
perl(Pod::Usage)

Assuming all those it checks for are actually required, which they may not be, I think there should be extra requires - unless they are provided in perl-base.

I will try to work it out.
Comment 10 claire robinson 2012-02-13 17:23:02 CET
Sorry, I missed some from the top of the current deps..

perl-Mail-SpamAssassin = 3.3.2
perl(Archive::Tar)
perl-DB_File
Comment 11 claire robinson 2012-02-13 18:08:12 CET
IINM there should be requires/suggests also for

perl-Digest-SHA1:perl(Digest::SHA1) - perl(Digest::SHA) suggested so not sure.
perl-HTML-Parser:perl(HTML::Parser)
perl-MIME-Base64:perl(MIME::Base64)
perl-DBI:perl(DBI)
perl-HTTP-Date:perl(HTTP::Date)

And the ones it complained about:

perl-Razor-Agent:perl(Razor2::Client::Agent)
perl-IO-Socket-INET6:perl(IO::Socket::INET6)
perl-Net-Patricia:perl(Net::Patricia)

Also, other perl modules it is checking for appear in the perl rpm. It has a require for perl-base but as far as I can tell perl-base doesn't require perl, it is the other way around, so it maybe ought to require the perl rpm too.

Could somebody please double check?

You can use..

$ urpmf --provides --literal 'perl(Net::Patricia)'

or

$ urpmq --whatprovides 'perl(Net::Patricia)'
Comment 12 Dave Hodgins 2012-02-13 22:12:17 CET
On i586, in MageiaUpdate, I get ...
Sorry, the following packages cannot be selected:
- spamassassin-3.3.2-1.mga1.i586 (due to unsatisfied spamassassin-rules[>= 3.3.0])
- spamassassin-spamd-3.3.2-1.mga1.i586 (due to unsatisfied spamassassin-rules[*][>= 3.3.0])

I'm using
http://twiska.zarb.org/mageia/distrib/1/i586/media/core/updates_testing

CC: (none) => davidwhodgins

Comment 13 bascule teller 2012-02-14 01:06:16 CET
hi, i receievd the notification about the updates_testing rpms and have just installed:
spamassassin spamassassin-spamc spamassassin-spamd spamassassin-sa-compile spamassassin-tools from the updates-testing
on the first run of sa-update -D i had the 'require failed' messages mentioned above but other wise the update ran fine (except there was no update since it was already uptodate, i installed the razor and inet6 perl modules and sa-update -D gave:

[root@watson bascule]# sa-update -D
Feb 13 23:58:18.783 [27906] dbg: logger: adding facilities: all
Feb 13 23:58:18.783 [27906] dbg: logger: logging level is DBG
Feb 13 23:58:18.783 [27906] dbg: generic: SpamAssassin version 3.3.2
Feb 13 23:58:18.783 [27906] dbg: generic: Perl 5.012003, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Feb 13 23:58:18.783 [27906] dbg: config: timing enabled
Feb 13 23:58:18.785 [27906] dbg: config: score set 0 chosen.
Feb 13 23:58:18.866 [27906] dbg: dns: is Net::DNS::Resolver available? yes
Feb 13 23:58:18.866 [27906] dbg: dns: Net::DNS version: 0.66
Feb 13 23:58:18.867 [27906] dbg: generic: sa-update version svn917659
Feb 13 23:58:18.867 [27906] dbg: generic: using update directory: /var/lib/spamassassin/3.003002
Feb 13 23:58:19.226 [27906] dbg: diag: perl platform: 5.012003 linux
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: Digest::SHA1, version 2.13
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: HTML::Parser, version 3.68
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: Net::DNS, version 0.66
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: NetAddr::IP, version 4.043
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: Time::HiRes, version 1.9719
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: Archive::Tar, version 1.76
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: IO::Zlib, version 1.10
Feb 13 23:58:19.226 [27906] dbg: diag: [...] module installed: Digest::SHA1, version 2.13
Feb 13 23:58:19.227 [27906] dbg: diag: [...] module installed: MIME::Base64, version 3.08
Feb 13 23:58:19.227 [27906] dbg: diag: [...] module installed: DB_File, version 1.822
Feb 13 23:58:19.227 [27906] dbg: diag: [...] module installed: Net::SMTP, version 2.31
Feb 13 23:58:19.227 [27906] dbg: diag: [...] module installed: Mail::SPF, version v2.007
Feb 13 23:58:19.227 [27906] dbg: diag: [...] module installed: IP::Country::Fast, version 604.001
Feb 13 23:58:19.227 [27906] dbg: diag: [...] module installed: Razor2::Client::Agent, version 2.84
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: Net::Ident, version 1.23
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: IO::Socket::INET6, version 2.67
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: IO::Socket::SSL, version 1.39
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: Compress::Zlib, version 2.02401
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: Mail::DKIM, version 0.39
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: DBI, version 1.616
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: Getopt::Long, version 2.38
Feb 13 23:58:19.228 [27906] dbg: diag: [...] module installed: LWP::UserAgent, version 6.02
Feb 13 23:58:19.229 [27906] dbg: diag: [...] module installed: HTTP::Date, version 6.00
Feb 13 23:58:19.229 [27906] dbg: diag: [...] module installed: Encode::Detect, version 1.01
Feb 13 23:58:19.231 [27906] dbg: gpg: Searching for 'gpg'
Feb 13 23:58:19.231 [27906] dbg: util: current PATH is: /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/qt4/bin
Feb 13 23:58:19.231 [27906] dbg: util: executable for gpg was found at /usr/bin/gpg
Feb 13 23:58:19.231 [27906] dbg: gpg: found /usr/bin/gpg
Feb 13 23:58:19.232 [27906] dbg: gpg: release trusted key id list: 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 26C900A46DD40CD5AD24F6D7DEE01987265FA05B 0C2B1D7175B852C64B3CDC716C55397824F434CE
Feb 13 23:58:19.245 [27906] dbg: channel: attempting channel updates.spamassassin.org
Feb 13 23:58:19.245 [27906] dbg: channel: update directory /var/lib/spamassassin/3.003002/updates_spamassassin_org
Feb 13 23:58:19.246 [27906] dbg: channel: channel cf file /var/lib/spamassassin/3.003002/updates_spamassassin_org.cf
Feb 13 23:58:19.246 [27906] dbg: channel: channel pre file /var/lib/spamassassin/3.003002/updates_spamassassin_org.pre
Feb 13 23:58:19.247 [27906] dbg: channel: metadata version = 1243210
Feb 13 23:58:19.308 [27906] dbg: dns: 2.3.3.updates.spamassassin.org => 1243210, parsed as 1243210
Feb 13 23:58:19.308 [27906] dbg: channel: current version is 1243210, new version is 1243210, skipping channel
Feb 13 23:58:19.308 [27906] dbg: diag: updates complete, exiting with code 1



so not a complete confirmation that updating works until there is an actual update to run :) but looking good?

bascule
Comment 14 Remco Rijnders 2012-02-14 08:24:19 CET
(In reply to comment #12)
> On i586, in MageiaUpdate, I get ...
> Sorry, the following packages cannot be selected:
> - spamassassin-3.3.2-1.mga1.i586 (due to unsatisfied spamassassin-rules[>=
> 3.3.0])
> - spamassassin-spamd-3.3.2-1.mga1.i586 (due to unsatisfied
> spamassassin-rules[*][>= 3.3.0])
> 
> I'm using
> http://twiska.zarb.org/mageia/distrib/1/i586/media/core/updates_testing

Hi David,

I did not rebuild spamassassin-rules or update the requirement on it. The version in core/release should  thus suffice, but I don't see why it is not being picked up?
Comment 15 Remco Rijnders 2012-02-14 08:26:52 CET
> I did not rebuild spamassassin-rules or update the requirement on it. The
> version in core/release should  thus suffice, but I don't see why it is not
> being picked up?

The infamous 2317 I take it...
Comment 16 claire robinson 2012-02-14 10:31:20 CET
Yes, I think so. There is an added require for spamassassin-rules which is currently in release media. See comment 8 :)
Comment 17 Dave Hodgins 2012-02-14 21:30:38 CET
Yes, it's clearly bug 2317.  I thought it was another case of i586 rpm
packages failing to get copied to the mirror.

As it's bug 2317, I'll use urpmi to install the updates, and make note
of which packages get installed from Core Release, that will require
linking, when this update gets pushed.
Comment 18 Dave Hodgins 2012-02-14 21:40:33 CET
Testing complete on i586 for the srpm
spamassassin-3.3.2-1.mga1.src.rpm

The only package pulled in from Core Release was
spamassassin-rules

During the install, when spamassassin-spamd was installed, it
was followed with ...
need to run sa-update
Update available for channel updates.spamassassin.org
Update was available, and was downloaded and installed successfully

I'll retest the install/update on a minimal system, to ensure
all of the required perl modules are installed as part of the
original install, so won't need linking.
Comment 19 Dave Hodgins 2012-02-14 22:51:53 CET
There are missing requires.  When using a clean install, installing the
Core Release version, then the update, I get ...
plugin: eval failed: Can't call method "is_dns_available" on unblessed reference at /usr/lib/perl5/vendor_perl/5.12.3/Mail/SpamAssassin/Plugin/AskDNS.pm line 344.
plugin: eval failed: Can't call method "is_dns_available" on unblessed reference at /usr/lib/perl5/vendor_perl/5.12.3/Mail/SpamAssassin/Plugin/AskDNS.pm line 344.

This is during the install of spamassassin-spamd when it runs the sa-update.
Comment 20 claire robinson 2012-02-14 23:20:47 CET
Remco was looking into the requires/suggests today, I spoke with him on IRC this morning, I think there will be a new new package.
Comment 21 claire robinson 2012-02-28 09:49:53 CET
Assinging remmy until this is ready for QA. Please reassign to qa-bugs when you've had a look.

CC: (none) => qa-bugs
Assignee: qa-bugs => remco

Comment 22 Dave Hodgins 2012-03-04 05:25:53 CET
The current version in updates testing gets
A requested package cannot be installed:
spamassassin-3.3.2-1.2.mga1.i586 (due to unsatisfied spamassassin-rules[>= 3.3.2])
The only available spamassassin-rules is 3.3.1.
Comment 23 Dave Hodgins 2012-03-16 02:21:51 CET
Ping.  Still waiting for spamassassin-rules 3.3.2
Comment 24 Remco Rijnders 2012-03-19 09:13:02 CET
Hi, thanks for your patience.

QA, can you please retest with spamassasin-3.3.2-4 which is now / soon available in updates-testing? This should now pull in an updated spamassassin-rules package.

Assignee: remco => qa-bugs

Comment 25 Dave Hodgins 2012-03-19 19:43:36 CET
Testing complete on i586 for the srpms
spamassassin-rules-3.3.2-1.mga1.src.rpm
spamassassin-3.3.2-1.4.mga1.src.rpm

The sa-update command runs on the install of spamassassin-spamd,
and the rules are automatically included.
Comment 26 claire robinson 2012-03-21 13:00:51 CET
There are some perl modules which will require linking for bug 2317

Mageia release 1 (Official) for x86_64
Latest version found in "Core Release" is spamassassin-3.3.2-0.0.r2260312.1.mga1
Latest version found in "Core Updates Testing" is spamassassin-3.3.2-1.4.mga1
----------------------------------------
The following packages will require linking:

perl-Crypt-OpenSSL-Random-0.40.0-5.mga1 (Core 32bit Release)
perl-Crypt-OpenSSL-Random-0.40.0-5.mga1 (Core Release)
perl-Crypt-OpenSSL-RSA-0.260.0-7.mga1 (Core 32bit Release)
perl-Crypt-OpenSSL-RSA-0.260.0-7.mga1 (Core Release)
perl-Encode-Locale-1.20.0-1.mga1 (Core 32bit Release)
perl-Encode-Locale-1.20.0-1.mga1 (Core Release)
perl-File-Listing-6.20.0-1.mga1 (Core 32bit Release)
perl-File-Listing-6.20.0-1.mga1 (Core Release)
perl-HTTP-Cookies-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Cookies-6.0.0-1.mga1 (Core Release)
perl-HTTP-Daemon-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Daemon-6.0.0-1.mga1 (Core Release)
perl-HTTP-Message-6.20.0-1.mga1 (Core 32bit Release)
perl-HTTP-Message-6.20.0-1.mga1 (Core Release)
perl-HTTP-Negotiate-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Negotiate-6.0.0-1.mga1 (Core Release)
perl-LWP-MediaTypes-6.10.0-1.mga1 (Core 32bit Release)
perl-LWP-MediaTypes-6.10.0-1.mga1 (Core Release)
perl-Mail-DKIM-0.390.0-1.mga1 (Core 32bit Release)
perl-Mail-DKIM-0.390.0-1.mga1 (Core Release)
perl-MIME-Lite-3.27.0-1.mga1 (Core 32bit Release)
perl-MIME-Lite-3.27.0-1.mga1 (Core Release)
perl-Net-HTTP-6.10.0-1.mga1 (Core 32bit Release)
perl-Net-HTTP-6.10.0-1.mga1 (Core Release)
perl-WWW-RobotRules-6.10.0-1.mga1 (Core 32bit Release)
perl-WWW-RobotRules-6.10.0-1.mga1 (Core Release)
----------------------------------------
Done.
Comment 27 claire robinson 2012-03-21 13:36:57 CET
# urpmi spamassassin
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Updates Testing")
  spamassassin                   3.3.2        1.4.mga1      x86_64  
  spamassassin-rules             3.3.2        1.mga1        noarch  
1MB of additional disk space will be used.
323KB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n) y


# urpmi spamassassin-spamd


    ftp://ftp.linuxcabal.org/pub/mirrors/Mageia/distrib/1/x86_64/media/core/updates_testing/spamassassin-spamd-3.3.2-1.4.mga1.x86_64.rpm
installing spamassassin-spamd-3.3.2-1.4.mga1.x86_64.rpm from /var/cache/urpmi/rpms
Preparing...                     ###############################################
      1/1: spamassassin-spamd    ###############################################
need to run sa-update
Update available for channel updates.spamassassin.org
http: GET http://sa-update.secnap.net/3.tar.gz request failed: 404 Not Found: <html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.0.14</center> </body> </html>
http: GET http://www.sa-update.pccc.com/3.tar.gz request failed: 404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /3.tar.gz was not found on this server.</p> <hr> <address>Apache/2.2.21 (Unix) Server at www.sa-update.pccc.com Port 80</address> </body></html>
http: GET http://daryl.dostech.ca/sa-update/asf/3.tar.gz request failed: 404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /sa-update/asf/3.tar.gz was not found on this server.</p> <hr> <address>Apache/2.2.6 (Fedora) Server at daryl.dostech.ca Port 80</address> </body></html>
channel: could not find working mirror, channel failed
Update failed, exiting with code 4


It is similar with manually running sa-update -D 

We seem to be back to the original bug

dbg: dns: 0.4.3.updates.spamassassin.org => 3.4 1293136, parsed as 3
Comment 28 Remco Rijnders 2012-03-21 20:00:23 CET
With the help from Claire I was able to identify the cause of her latest finding.

An explicit requirement on perl-Mail-SpamAssassin is needed to include not only the version number as it currently is, but also the release of the package. This is mostly a theoretical problem as the current update would also upgrade this package by default when someone updates their system.

I'll check with my mentor to see if we will have to issue a new update for this (probably would be good).
Comment 29 claire robinson 2012-04-15 18:21:30 CEST
Reassign when you're ready Remco :)

Assignee: qa-bugs => remco

Comment 30 Remco Rijnders 2012-04-21 12:39:32 CEST
Please try once more (and hopefully for the final final time!) with spamassassin-3.3.2-1.5.mga1
Comment 31 claire robinson 2012-04-21 14:54:42 CEST
# sa-update -D
...
Apr 21 13:41:20.766 [21611] dbg: channel: metadata version = 1293136
Apr 21 13:41:20.787 [21611] dbg: dns: 2.3.3.updates.spamassassin.org => 1293136, parsed as 1293136
Apr 21 13:41:20.787 [21611] dbg: channel: current version is 1293136, new version is 1293136, skipping channel
Apr 21 13:41:20.787 [21611] dbg: diag: updates complete, exiting with code 1

Seems Ok now, well done!


Mageia release 1 (Official) for x86_64
Latest version found in "Core Release" is spamassassin-3.3.2-0.0.r2260312.1.mga1
Latest version found in "Core Updates Testing" is spamassassin-3.3.2-1.5.mga1
----------------------------------------
The following packages will require linking:

perl-Crypt-OpenSSL-Random-0.40.0-5.mga1 (Core 32bit Release)
perl-Crypt-OpenSSL-Random-0.40.0-5.mga1 (Core Release)
perl-Crypt-OpenSSL-RSA-0.260.0-7.mga1 (Core 32bit Release)
perl-Crypt-OpenSSL-RSA-0.260.0-7.mga1 (Core Release)
perl-Encode-Locale-1.20.0-1.mga1 (Core 32bit Release)
perl-Encode-Locale-1.20.0-1.mga1 (Core Release)
perl-File-Listing-6.20.0-1.mga1 (Core 32bit Release)
perl-File-Listing-6.20.0-1.mga1 (Core Release)
perl-HTTP-Cookies-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Cookies-6.0.0-1.mga1 (Core Release)
perl-HTTP-Daemon-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Daemon-6.0.0-1.mga1 (Core Release)
perl-HTTP-Message-6.20.0-1.mga1 (Core 32bit Release)
perl-HTTP-Message-6.20.0-1.mga1 (Core Release)
perl-HTTP-Negotiate-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Negotiate-6.0.0-1.mga1 (Core Release)
perl-LWP-MediaTypes-6.10.0-1.mga1 (Core 32bit Release)
perl-LWP-MediaTypes-6.10.0-1.mga1 (Core Release)
perl-Mail-DKIM-0.390.0-1.mga1 (Core 32bit Release)
perl-Mail-DKIM-0.390.0-1.mga1 (Core Release)
perl-MIME-Lite-3.27.0-1.mga1 (Core 32bit Release)
perl-MIME-Lite-3.27.0-1.mga1 (Core Release)
perl-Net-HTTP-6.10.0-1.mga1 (Core 32bit Release)
perl-Net-HTTP-6.10.0-1.mga1 (Core Release)
perl-WWW-RobotRules-6.10.0-1.mga1 (Core 32bit Release)
perl-WWW-RobotRules-6.10.0-1.mga1 (Core Release)


Testing complete x86_64
Comment 32 Dave Hodgins 2012-04-23 22:10:46 CEST
Testing complete.

Could someone from the sysadmin team push the srpms
spamassassin-3.3.2-1.5.mga1.src.rpm
spamassassin-rules-3.3.2-1.mga1.src.rpm
from Core Updates Testing to Core Updates
and link the following package from Core Release to Core Updates
perl-Crypt-OpenSSL-Random-0.40.0-5.mga1 (Core 32bit Release)
perl-Crypt-OpenSSL-Random-0.40.0-5.mga1 (Core Release)
perl-Crypt-OpenSSL-RSA-0.260.0-7.mga1 (Core 32bit Release)
perl-Crypt-OpenSSL-RSA-0.260.0-7.mga1 (Core Release)
perl-Encode-Locale-1.20.0-1.mga1 (Core 32bit Release)
perl-Encode-Locale-1.20.0-1.mga1 (Core Release)
perl-File-Listing-6.20.0-1.mga1 (Core 32bit Release)
perl-File-Listing-6.20.0-1.mga1 (Core Release)
perl-HTTP-Cookies-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Cookies-6.0.0-1.mga1 (Core Release)
perl-HTTP-Daemon-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Daemon-6.0.0-1.mga1 (Core Release)
perl-HTTP-Message-6.20.0-1.mga1 (Core 32bit Release)
perl-HTTP-Message-6.20.0-1.mga1 (Core Release)
perl-HTTP-Negotiate-6.0.0-1.mga1 (Core 32bit Release)
perl-HTTP-Negotiate-6.0.0-1.mga1 (Core Release)
perl-LWP-MediaTypes-6.10.0-1.mga1 (Core 32bit Release)
perl-LWP-MediaTypes-6.10.0-1.mga1 (Core Release)
perl-Mail-DKIM-0.390.0-1.mga1 (Core 32bit Release)
perl-Mail-DKIM-0.390.0-1.mga1 (Core Release)
perl-MIME-Lite-3.27.0-1.mga1 (Core 32bit Release)
perl-MIME-Lite-3.27.0-1.mga1 (Core Release)
perl-Net-HTTP-6.10.0-1.mga1 (Core 32bit Release)
perl-Net-HTTP-6.10.0-1.mga1 (Core Release)
perl-WWW-RobotRules-6.10.0-1.mga1 (Core 32bit Release)
perl-WWW-RobotRules-6.10.0-1.mga1 (Core Release)

Advisory:  This update adds requirements on packages needed
to allow sa-update to properly parse updates.

https://bugs.mageia.org/show_bug.cgi?id=3814

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 33 Thomas Backlund 2012-04-24 19:55:56 CEST
Update pushed.

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.