Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76294 - Update from spamassin 2.63 to 3.0.2 faild with IOError: [Errno 21] Is a directory: '/var/tmp/portage/spamassassin-3.0.2/image//etc/mail/spamassassin'
Summary: Update from spamassin 2.63 to 3.0.2 faild with IOError: [Errno 21] Is a direc...
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-01 04:55 UTC by Torgen Foertsch
Modified: 2005-08-17 08:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torgen Foertsch 2005-01-01 04:55:48 UTC
The build of spamassassin reports no errors but while merging mail-filter/spamassassin-3.0.2 to / the following error occorred:

gzipping man page: Mail::SpamAssassin::Conf::LDAP.3pm
prepallstrip:
strip: 
strip: 
   usr/bin/spamc
>>> Completed installing into /var/tmp/portage/spamassassin-3.0.2/image/

>>> Merging mail-filter/spamassassin-3.0.2 to /
ssl
--- /etc/
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2991, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1839, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2562, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
  File "/usr/lib/portage/pym/portage.py", line 2695, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6670, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6297, in treewalk
    if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6474, in mergeme
    mydest = new_protect_filename(myrealdest, newmd5=portage_checksum.perform_md5(srcroot+myabsto))
  File "/usr/lib/portage/pym/portage_checksum.py", line 24, in perform_md5
    return perform_checksum(x, md5hash, calc_prelink)[0]
  File "/usr/lib/portage/pym/portage_checksum.py", line 127, in perform_checksum
    myhash, mysize = hash_function(myfilename)
  File "/usr/lib/portage/pym/portage_checksum.py", line 74, in md5hash
    return fchksum.fmd5t(filename)
IOError: [Errno 21] Is a directory: '/var/tmp/portage/spamassassin-3.0.2/image//etc/mail/spamassassin'

Reproducible: Always
Steps to Reproduce:
1. "emerge -u world" or emerge spamassassin
Actual Results:  
IOError: [Errno 21] Is a directory: '/var/tmp/portage/spamassassin-3.0.2/image//
etc/mail/spamassassin'.
That's correct:

ls -la /var/tmp/portage/spamassassin-3.0.2/image//etc/mail/spamassassin
total 16
drwxr-xr-x  2 root root 4096 Jan  1 13:50 .
drwxr-xr-x  3 root root 4096 Jan  1 13:50 ..
-rw-r--r--  1 root root  935 Jan  1 13:50 init.pre
-rw-r--r--  1 root root  342 Jan  1 13:50 local.cf


Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 
2.6.9 i586)
=================================================================
System uname: 2.6.9 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.19,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=k6-2 -funroll-loops -pipe"
CHOST="i486-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=k6-2 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aalib acl apm avi berkdb bitmap-fonts crypt cups encode exiscan-acl 
foomaticdb fortran gd gdbm gif gpm gtk2 imagemagick imap imlib ipv6 jpeg ldap 
libwww mad mcal mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib perl 
png postgres python quicktime readline sdl slang ssl svga tcpd tiff truetype x86 
xml2 xv zlib"
Comment 1 Malte S. Stretz 2005-01-16 11:23:47 UTC
That's probably caused by the call
  dosym /etc/mail/spamassassin /etc/spamassassin

But that error message doesn't make any sense:  /etc/mail/spamassassin is and is supposed to be a directory.  What does
  ls -ld /etc/spamassassin /etc/mail/spamassassin
give?
Comment 2 Torgen Foertsch 2005-01-16 23:34:18 UTC
shakira root # ls -ld /etc/spamassassin /etc/mail/spamassassin
drwxr-xr-x  2 root root 4096 Jan  1 14:37 /etc/mail/spamassassin
-rw-r--r--  1 root root 1685 Jul 18 22:12 /etc/spamassassin
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2005-08-13 17:15:23 UTC
open if you haven't figured out how to remove the /etc/spamassassin file (not
sure where it got turned into a file though - thought it was always a symlink)
Comment 4 Torgen Foertsch 2005-08-17 07:15:54 UTC
has been fixed since the last emerge -u world
Bug can be closed
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2005-08-17 08:55:36 UTC
closing