Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411517 - app-portage/portpeek-2.0.19 - is failing on package.use verification
Summary: app-portage/portpeek-2.0.19 - is failing on package.use verification
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mike Pagano
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-10 20:41 UTC by Daniel Perzynski
Modified: 2012-04-17 13:33 UTC (History)
0 users

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


Attachments
package.use (package.use,8.92 KB, text/plain)
2012-04-11 17:51 UTC, Daniel Perzynski
Details
portpeek with more debugging (portpeek,47.09 KB, text/plain)
2012-04-11 18:26 UTC, Mike Pagano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Perzynski 2012-04-10 20:41:14 UTC
Portpeek is failing on package.use verification

Reproducible: Always

Steps to Reproduce:
1. portpeek -s
2.
3.
Actual Results:  
$ portpeek -s

package.use:
Traceback (most recent call last):
  File "/usr/bin/portpeek", line 1179, in <module>
    get_recursive_info(USER_CONFIG_PATH + "/package.use")
  File "/usr/bin/portpeek", line 403, in get_recursive_info
    get_info(filename)
  File "/usr/bin/portpeek", line 429, in get_info
    diffs_found = parse_package_use(line,filename)
  File "/usr/bin/portpeek", line 503, in parse_package_use
    check_useflags(current_package,line)
  File "/usr/bin/portpeek", line 824, in check_useflags
    if original_flag[0] in atom:
IndexError: string index out of range
Comment 1 Daniel Perzynski 2012-04-10 20:42:20 UTC
The version I'm running is portpeek(2.0.19)
Comment 2 Mike Pagano gentoo-dev 2012-04-11 15:34:48 UTC
Thanks for the report. Please attach your package.use files.
Comment 3 Daniel Perzynski 2012-04-11 17:51:30 UTC
Created attachment 308545 [details]
package.use
Comment 4 Mike Pagano gentoo-dev 2012-04-11 18:15:24 UTC
I need to add better debugging to that function. Can you do me a favor.

Make a copy of /usr/bin/portpeek in tmp.

cp /usr/bin/portpeek /tmp/.

Then, edit the file:

vi /tmp/portpeek

In the line right after global info,debug in the parse_package_use function can you add: 

print_output(debug,portage.output.blue("parse_package_use: Line: " + line))

It should look like this

def parse_package_use(line, filename):

    global info,debug

    print_output(debug,portage.output.blue("parse_package_use: Line: " + line))
    pkgs = None


Then, can you run with:

/tmp/portpeek -sd 

and show me the output?
Comment 5 Mike Pagano gentoo-dev 2012-04-11 18:26:01 UTC
Created attachment 308555 [details]
portpeek with more debugging

Or just run this one.
Comment 6 Daniel Perzynski 2012-04-12 20:30:09 UTC
./portpeek -sd 

package.use:
parse_package_use: Line: app-arch/bzip2 static-libs
parse_package_use: Line: app-arch/file-roller nautilus
parse_package_use: Line: app-cdr/brasero mp3 nautilus playlist tracker
parse_package_use: Line: app-cdr/cdemud pulseaudio
parse_package_use: Line: app-crypt/pinentry caps gtk
parse_package_use: Line: app-crypt/seahorse avahi
parse_package_use: Line: app-editors/gedit zeitgeist spell
parse_package_use: Line: app-editors/vim vim-pager
parse_package_use: Line: app-emulation/emul-linux-x86-sdl pulseaudio
parse_package_use: Line: app-emulation/emul-linux-x86-soundlibs alsa pulseaudio
parse_package_use: Line: app-emulation/emul-linux-x86-xlibs opengl
parse_package_use: Line: app-emulation/qemu-kvm alsa bluetooth curl fdt opengl pulseaudio qemu-ifup -sasl sdl -spice threads vde
parse_package_use: Line: app-emulation/wine alsa custom-cflags udisks fontconfig gnutls gphoto2 gsm jpeg lcms mp3 openal opencl png v4l xcomposite xml
parse_package_use: Line: app-emulation/winetricks gtk
parse_package_use: Line: app-misc/cmatrix X
parse_package_use: Line: app-misc/geoclue geonames gtk networkmanager
parse_package_use: Line: app-misc/tracker eds exif firefox-bookmarks flac flickr gif gnome-keyring gsf gstreamer gtk iptc laptop mp3 nautilus networkmanager pdf playlist rss upnp xmp
parse_package_use: Line: app-mobilephone/obexd eds usb
parse_package_use: Line: app-office/libreoffice dbus eds gnome gstreamer mysql opengl pdfimport postgres svg
parse_package_use: Line: app-office/libreoffice-l10n templates
parse_package_use: Line: app-portage/eix optimization sqlite
parse_package_use: Line: app-portage/layman bazaar cvs git mercurial subversion
parse_package_use: Line: app-text/djvu jpeg tiff xml
parse_package_use: Line: app-text/evince dbus djvu dvi gnome-keyring nautilus t1lib tiff xps
parse_package_use: Line: app-text/ghostscript-gpl dbus djvu idn jpeg2k
parse_package_use: Line: app-text/gocr scanner
parse_package_use: Line: app-text/libgxps jpeg lcms tiff
parse_package_use: Line: app-text/poppler cairo jpeg jpeg2k png tiff
parse_package_use: Line: dev-db/postgresql-base threads
parse_package_use: Line: dev-db/sqlite secure-delete unlock-notify
parse_package_use: Line: dev-games/physfs grp hog mvl qpak wad
parse_package_use: Line: dev-java/icedtea javascript pulseaudio
parse_package_use: Line: dev-java/icedtea-web javascript
parse_package_use: Line: dev-java/log4j javamail jms -jmx
parse_package_use: Line: dev-java/swt cairo gnome opengl webkit
parse_package_use: Line: dev-lang/python sqlite
parse_package_use: Line: dev-libs/boost python
parse_package_use: Line: dev-libs/elfutils lzma
parse_package_use: Line: dev-libs/folks eds socialweb tracker
parse_package_use: Line: dev-libs/libcdio cddb
parse_package_use: Line: dev-libs/libgcrypt static-libs
parse_package_use: Line: dev-libs/libgdata gnome
parse_package_use: Line: dev-libs/libgpg-error static-libs
parse_package_use: Line: dev-libs/libpeas gjs glade seed
parse_package_use: Line: dev-libs/libxml2 python
parse_package_use: Line: dev-libs/nettle gmp
parse_package_use: Line: dev-libs/openobex bluetooth irda syslog usb
parse_package_use: Line: dev-libs/popt static-libs
parse_package_use: Line: dev-libs/rasqal gmp xml
parse_package_use: Line: dev-libs/redland iodbc mysql odbc postgres sqlite
parse_package_use: Line: dev-libs/totem-pl-parser archive
parse_package_use: Line: dev-python/imaging lcms scanner X
parse_package_use: Line: games-board/aisleriot gnome
parse_package_use: Line: games-emulation/dosbox alsa opengl
parse_package_use: Line: games-emulation/sdlmame opengl
parse_package_use: Line: games-engines/scummvm alsa flac fluidsynth mp3 ogg vorbis
parse_package_use: Line: games-fps/darkplaces sdl
parse_package_use: Line: gnome-base/gconf policykit orbit
parse_package_use: Line: gnome-base/gdm -fprint -gnome-keyring
parse_package_use: Line: gnome-base/gnome-applets gnome networkmanager policykit
parse_package_use: Line: gnome-base/gnome-panel eds networkmanager
parse_package_use: Line: gnome-base/gnome-settings-daemon policykit
parse_package_use: Line: gnome-base/gvfs cdda gdu archive avahi bluetooth bluray fuse gnome-keyring gphoto2
parse_package_use: Line: gnome-base/librsvg gtk3
parse_package_use: Line: gnome-base/nautilus exif gnome sendto tracker xmp
parse_package_use: Line: gnome-extra/gnome-dvb-daemon totem
parse_package_use: Line: gnome-extra/gnome-games artworkextra glchess seed
parse_package_use: Line: gnome-extra/gucharmap gnome
parse_package_use: Line: gnome-extra/nm-applet bluetooth
parse_package_use: Line: gnome-extra/zeitgeist extensions passiv plugins
parse_package_use: Line: gnome-extra/zenity libnotify
parse_package_use: Line: mail-client/evolution clutter gstreamer map networkmanager
parse_package_use: Line: media-fonts/artwiz-aleczapka-en X
parse_package_use: Line: media-fonts/liberation-fonts X
parse_package_use: Line: media-fonts/libertine-ttf X
parse_package_use: Line: media-fonts/terminus-font X
parse_package_use: Line: media-fonts/ubuntu-font-family X
parse_package_use: Line: media-gfx/blender collada contrib -cycles -ffmpeg fftw jack jpeg2k openal player redcode sdl sndfile
parse_package_use: Line: media-gfx/eog lcms tiff xmp
parse_package_use: Line: media-gfx/gimp aalib alsa curl dbus exif gnome jpeg jpeg2k lcms mng pdf png  python smp svg tiff udev webkit wmf xpm
Traceback (most recent call last):
  File "./portpeek", line 1180, in <module>
    get_recursive_info(USER_CONFIG_PATH + "/package.use")
  File "./portpeek", line 403, in get_recursive_info
    get_info(filename)
  File "./portpeek", line 429, in get_info
    diffs_found = parse_package_use(line,filename)
  File "./portpeek", line 504, in parse_package_use
    check_useflags(current_package,line)
  File "./portpeek", line 825, in check_useflags
    if original_flag[0] in atom:
IndexError: string index out of range
Comment 7 Daniel Perzynski 2012-04-14 18:17:53 UTC
I have found the reason. It is additional (more than one) space between useflags. It is between png and python. 

parse_package_use: Line: media-gfx/gimp aalib alsa curl dbus exif gnome jpeg 
jpeg2k lcms mng pdf png  python smp svg tiff udev webkit wmf xpm

Removing extra space is allowing program to run further.
Comment 8 Mike Pagano gentoo-dev 2012-04-14 21:46:42 UTC
Thanks, I'll fix this in a future version.
Comment 9 Mike Pagano gentoo-dev 2012-04-17 13:33:05 UTC
Thanks, Daniel. Fixed in portpeek-2.0.20