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

Bug 84161

Summary: package.provided should report invalid lines not TB
Product: Gentoo Linux Reporter: Prakash Punnoor <prakashp>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Prakash Punnoor 2005-03-05 01:31:23 UTC
I hope this is not a user error... I have unmasked the kde3.4 stuff an put this into package.provided (along with some other stuff):

kde-base/kdeaddons-docs-konq-plugins

If I try emerge -uDpv world, I get:

Calculating world dependencies                                     8Traceback (most recent call last):
  File "/usr/bin/emerge", line 2986, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1360, in xcreate
    if not self.create(myk,myuse=binpkguseflags):
  File "/usr/bin/emerge", line 975, in create
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):
  File "/usr/bin/emerge", line 1111, in select_dep
    mycheck=portage.dep_check(depstring,self.mydbapi[myroot],self.pkgsettings,myuse=myuse,use_binaries=("--usepkg" in myopts))
  File "/usr/lib/portage/pym/portage.py", line 3702, in dep_check
    mysplit2=dep_wordreduce(mysplit2,mysettings,mydbapi,mode,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3733, in dep_wordreduce
    deplist[mypos]=dep_wordreduce(deplist[mypos],mysettings,mydbapi,mode,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3738, in dep_wordreduce
    if mysettings and mysettings.pprovideddict.has_key(mykey) and \
  File "/usr/lib/portage/pym/portage.py", line 4039, in match_from_list
    if xs[0:2] != mycpv_cps[0:2]:
TypeError: unsubscriptable object

I haven't treid earlier portage version. Commenting out above line from package.provided, everthing is fine, again.

Any more info needed?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r0,
2.6.11 i686)
=================================================================
System uname: 2.6.11 i686 AMD Athlon(tm)
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 10:16:45)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.4_p6, 1.8.5-r3, 1.7.9-r1, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r4
sys-devel/libtool:   1.5.10-r5
virtual/os-headers:  2.6.10
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -frename-registers
-fomit-frame-pointer -fweb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -frename-registers
-fomit-frame-pointer -fweb -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache confcache digest distlocks prelink
sandbox sfperms"
GENTOO_MIRRORS=" ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-z,combreloc
-Wl,--relax"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/fluidportage/trunk /usr/lportage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage/"
USE="x86 3dnow 3dnowex S3TC X a52 aac acpi acpi4linux alsa apm audiofile avi
berkdb bitmap-fonts bzip2 cdda cddb cdparanoia cdr crypt cups curl dga
divx4linux dts dv dvb dvd dvdr dvdread edl emboss encode ext-png ext-zlib faac
faad fam ffmpeg fftw flac foomaticdb freetype gd gdbm gif gimp gimpprint gpm gs
gtk gtk2 ieee1394 imagemagick imlib ipv6 ithreads java javascript jpeg jpeg2k
kde kdeenablefinal ldap libg++ libwww lm_sensors lzo mad matroska mmx mmx2 mng
monkey motif moznocompose mpeg mpeg2 mpi ncurses network nls nocd nptl nptlonly
nvidia ogg oggvorbis openal opengl openssh oss pam pdflib perl pic png povray
ppds python qt qtmt quicktime readline real rtc samba scanner sdl smime speex
spell sqlite sse ssl tcpd tetex theora threads tiff transcode truetype
truetype-fonts type1-fonts unicode usb utf8 vcd videos vorbis wmf wxwindows xfs
xine xinetd xml xml2 xv xvid xvmc yv12 zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-03-05 19:24:29 UTC
package.provided requires that the package listed has a version component.
Comment 2 Prakash Punnoor 2005-03-06 03:36:16 UTC
Hmm, ok putting in kde-base/kdeaddons-docs-konq-plugins-3.4.0_beta2 works, but wouldn't it be nice if putting in w/o version is allowed? Then I don't have to adjust that file if a new version comes out.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2005-03-06 08:44:27 UTC
bad idea. package.provided is meant to manage applications not installed by portage, and every installed package has a version. Also it doesn't check the  /usr/portage repository, so there is no way to even guess the "current" version.
Comment 4 Prakash Punnoor 2005-03-06 09:06:17 UTC
OK, than at least portage should complain because of invalid syntax I guess, otherwise this bug can be closed as user error.
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:48:15 UTC
Fixed on or before 2.0.51.22-r1 
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:53 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.