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

Bug 187480

Summary: sys-apps/portage-2.1.2.11 - emerge -avuDN world traceback w/ writemsg() got multiple values for keyword argument 'noiselevel'
Product: Portage Development Reporter: Viktor Griph <gentoo>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: critical    
Priority: High    
Version: 2.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949, 189285    
Attachments: fix writemsg args

Description Viktor Griph 2007-08-02 09:28:16 UTC
# emerge -avuND world

These are the packages that would be merged, in order:

Calculating world dependencies -Traceback (most recent call last):
  File "/usr/bin/emerge", line 5660, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 5653, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 4965, in action_build
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 2284, in xcreate
    best_pkg = portage.best(portdb.match(atom))
  File "/usr/lib/portage/pym/portage.py", line 6297, in match
    return self.xmatch("match-visible",mydep)
  File "/usr/lib/portage/pym/portage.py", line 6272, in xmatch
    self.xmatch("list-visible", mykey, mydep=mykey, mykey=mykey))
  File "/usr/lib/portage/pym/portage.py", line 6257, in xmatch
    myval=self.gvisible(self.visible(self.cp_list(mykey)))
  File "/usr/lib/portage/pym/portage.py", line 6376, in gvisible
    mycpv, noiselevel=-1)
TypeError: writemsg() got multiple values for keyword argument 'noiselevel'


make.conf:
------------------------------------------------------
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j3"

GENTOO_MIRRORS="http://192.168.1.2 http://192.168.1.3 http://mirror.gentoo.no/ http://ds.thn.htu.se/linux/gentoo ftp://ftp.du.se/pub/os/gentoo"
USE="nptl nptlonly -apm acpi -arts -berkdb bzip2 bash/completion cdr -cups divx4linux dvd dvdread emacs -emboss encode -foomaticdb -gdvm -gnome -kde imagemagick ithreads java javascript lcms -libg++ -mikmod mmx -oss -qt ogg pcre php plotutils sockets socks5 sse sse2 svg tetex theora tiff usb vcd videos vorbis win32codecs wmf xface xine -xmms bmp xosd xsl xvid -ipv6 userlocales dvdr -gstreamer mng xml xml2 apache2 cairo -ldap -debug dvb v4l v4l2"

CCACHE_SIZE="512M"

LINGUAS="sv_SE sv en_GB en_US us en"
FEATURES="ccache parallel-fetch"

PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save"
PORT_LOGDIR="/var/log/portage"

PORTDIR_OVERLAY="/usr/local/portage"

INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="fglrx radeon vga vesa"
------------------------------------------------------

# uname -a
Linux gramphos 2.6.20.7 #1 SMP PREEMPT Wed May 30 17:42:22 CEST 2007 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
Comment 1 Zac Medico gentoo-dev 2007-08-02 16:50:38 UTC
Created attachment 126717 [details, diff]
fix writemsg args

If you save this patch as /tmp/writemsg.patch then you can apply it like this:

patch /usr/lib/portage/pym/portage.py < /tmp/writemsg.patch

This bug has existed in the 2.1.3 branch for some time but nobody noticed it.  With the patch we'll be able to see what other error is triggering it (maybe PermissionDenied).
Comment 2 Zac Medico gentoo-dev 2007-08-02 18:57:59 UTC
This has been released in 2.1.3.2. I'll leave this bug open since some others might hit this in 2.1.2.11 (probably won't be too many though).
Comment 3 Viktor Griph 2007-08-03 21:04:11 UTC
Thanks.

The error was trigged by some bad files in my portage overlay:

!!! Error: aux_get('x11-drivers/ati-drivers-8.14.13-r5', ['KEYWORDS', 'EAPI', 'SLOT'])
!!! /usr/local/portage/x11-drivers/ati-drivers/files/digest-ati-drivers-8.16.20-r1
!!! Error: aux_get('x11-drivers/ati-drivers-8.14.13-r3', ['KEYWORDS', 'EAPI', 'SLOT'])
!!! /usr/local/portage/x11-drivers/ati-drivers/files/digest-ati-drivers-8.16.20-r1

I've cleaned up in there.
Comment 4 Zac Medico gentoo-dev 2007-08-24 18:49:26 UTC
This has been released in 2.1.2.12.