Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 62995

Summary: Spamassassin attempts fresh install when it should upgrade (2.63->2.64)
Product: Gentoo Linux Reporter: Maxwell Grender-Jones <max>
Component: New packagesAssignee: Portage team <dev-portage>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: contents of /var

Description Maxwell Grender-Jones 2004-09-06 04:50:48 UTC
Problem explained by following:
root@utopia mmsc # emerge -s ^spamassassin$
Searching...
[ Results for search key : ^spamassassin$ ]
[ Applications found : 1 ]

*  mail-filter/spamassassin
      Latest version available: 2.64
      Latest version installed: 2.63
      Size of downloaded files: 719 kB
      Homepage:    http://spamassassin.org/
      Description: Perl Mail::SpamAssassin - A program to filter spam
      License:     GPL-2 | Artistic


root@utopia mmsc # emerge -p spamassassin

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] mail-filter/spamassassin-2.64

Spamassassin ebuilds are in SLOT 0 afaict:
root@utopia mmsc # grep SLOT /usr/portage/mail-filter/spamassassin/*
/usr/portage/mail-filter/spamassassin/spamassassin-2.63.ebuild:SLOT="0"
/usr/portage/mail-filter/spamassassin/spamassassin-2.63-r1.ebuild:SLOT="0"
/usr/portage/mail-filter/spamassassin/spamassassin-2.64.ebuild:SLOT="0"
so this should be an upgrade rather than a fresh install.

Reproducible: Always
Steps to Reproduce:
As for reproducibility, I get this performance every time I do emerge -p spamassassin. I can try unemerging it and reinstalling to v. 2.63, then upgrading if it would help in diagnosing the problem?


Expected Results:  
I'm expecting it to upgrade spamassassin, not install a fresh copy side by side
with the existing one.

root@utopia mmsc # emerge info
Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.5)
=================================================================
System uname: 2.6.5 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.mirror.sdv.fr
http://ftp.heanet.ie/pub/gentoo/ http://gentoo.tiscali.nl/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.mirror.mxtelecom.com/gentoo-portage"
USE="X X509 alsa apm arts avi berkdb cdr cjk crypt cups dga dnd dvd encode esd
ethereal fbcon fbdev foomaticdb gdbm gif gmtsuppl gmttria gnome gpm gtk gtk2
gtkhtml imap imlib java jpeg justify jython kde ldap libg++ libwww lmtp mad
maildir md5sum mikmod mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg mysql
ncurses nls odbc offensive oggvorbis opengl oss pam pda pdflib perl png python
qt quicktime radeon readline samba sdl slang spell ssl stroke svga tcltk tcpd
tiff truetype type1 usb vim-with-x x86 xml xml2 xmms xv xvid zlib"
Comment 1 Malte S. Stretz 2004-09-15 08:13:14 UTC
This sounds like a portage error.  As you said, all SpamAssassin ebuilds are SLOTted to 0.  It's not even possible to install two copies side-by-side because they will step on each others toes (ie. overwrite files).  Does this happen only with SpamAssassin or also other (maybe perl-related) ebuilds?  Maybe a portage update helps, here with r11 everything looks fine.

(I just noticed that this is already assigned to the portage team, I just tend to look at and comment on all bug reports about SpamAssassin from time to time.)
Comment 2 Maxwell Grender-Jones 2004-09-15 09:23:46 UTC
fwiw, this problem still occurs with -r11.

root@utopia max # esearch -c portage$ ^spamassassin$
[ I] portage (2.0.50-r11):  Portage ports system
[ U] spamassassin (2.64):  Perl Mail::SpamAssassin - A program to filter spam
root@utopia max # emerge -p spamassassin

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] mail-filter/spamassassin-2.64

root@utopia max # emerge -s ^spamassassin$
Searching...
[ Results for search key : ^spamassassin$ ]
[ Applications found : 1 ]

*  mail-filter/spamassassin
      Latest version available: 2.64
      Latest version installed: 2.63
      Size of downloaded files: 719 kB
      Homepage:    http://spamassassin.org/
      Description: Perl Mail::SpamAssassin - A program to filter spam
      License:     GPL-2 | Artistic

interesting that esearch knows the right thing to do when portage doesn't...
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2004-09-15 16:41:12 UTC
Please tar up and attach whatever is in /var/db/pkg/mail-filter/spamassassin*
Comment 4 Maxwell Grender-Jones 2004-09-15 18:03:15 UTC
Created attachment 39674 [details]
contents of /var
Comment 5 Maxwell Grender-Jones 2004-09-15 18:04:51 UTC
arg! sorry - trigger happy - comment should have read:

contents of /var/db/pkg/mail-filter/spamassassin*
i.e.

root@utopia mail-filter # pwd
/var/db/pkg/mail-filter
root@utopia mail-filter # tar -cjf spamassassin.tar.bz2 spamassassin-*
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2004-09-16 04:35:57 UTC
Spam Assassin 2.63 isn't installed. It's injected. Portage can't upgrade it as there is no files that portage knows about to upgrade; thus the new install marker.