Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233493 - app-portage/elogviewer-0.5.2-r2 doesn't show all content of elog files
Summary: app-portage/elogviewer-0.5.2-r2 doesn't show all content of elog files
Status: RESOLVED DUPLICATE of bug 330029
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on: 330029
Blocks:
  Show dependency tree
 
Reported: 2008-07-31 15:39 UTC by parafin
Modified: 2010-11-09 00:59 UTC (History)
1 user (show)

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 parafin 2008-07-31 15:39:51 UTC
Specificly QA:other type:
parafin@note ~ $ cat /var/log/portage/elog/media-video\:realplayer-11.0.0.4028\:20080730-235015.log 
QA: other
QA Notice: The following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at http://bugs.gentoo.org/ to make sure the file is fixed.
 For more information, see http://hardened.gentoo.org/gnu-stack.xml
 Please include this file in your report:
 /var/tmp/portage/media-video/realplayer-11.0.0.4028/temp/scanelf-execstack.log
RWX --- --- opt/RealPlayer/codecs/raac.so
RWX --- --- opt/RealPlayer/codecs/colorcvt.so
RWX --- --- opt/RealPlayer/codecs/drv2.so
RWX --- --- opt/RealPlayer/codecs/drvc.so
RWX --- --- opt/RealPlayer/codecs/atrc.so
RWX --- --- opt/RealPlayer/plugins/swfrender.so
RWX --- --- opt/RealPlayer/plugins/vidsite.so

parafin@note ~ $ elogviewer 
Traceback (most recent call last):
  File "/usr/bin/elogviewer", line 636, in read
    self.buffer.read(filename)
  File "/usr/bin/elogviewer", line 396, in read
    self.insert_section()
  File "/usr/bin/elogviewer", line 374, in insert_section
    self.get_tag_table().lookup(self.header))
TypeError: additional argument must be a GtkTextTag

All checkboxes are checked, but nothing is shown in log area (file is shown in list).

Reproducible: Always

Steps to Reproduce:
1. put PORTAGE_ELOG_SYSTEM="save" and PORTAGE_ELOG_CLASSES="*" in make.conf
2. emerge elogviewer realplayer
3. run elogviewer

Actual Results:  
realplayer elog is shown empty

Expected Results:  
content of realplayer's elog should be shown

Portage 2.2_rc5 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24 i686)
=================================================================
System uname: Linux-2.6.24-i686-Intel-R-_Pentium-R-_M_processor_1500MHz-with-glibc2.0
Timestamp of tree: Wed, 30 Jul 2008 20:32:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildpkg ccache distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://parafin/ http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.koi8r"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/alon-barlev /usr/local/portage"
SYNC="rsync://server/gentoo-portage/"
USE="X a52 aac acpi adns alsa audiofile bash-completion berkdb bzip2 cairo caps cdparanoia cracklib crypt cscope cups curl cxx dbus djvu dri dts dvb dvd dvdread encode exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb ftp gd gdbm gif gpm graphviz gtk gtk2 gtkhtml iconv id3tag idn imagemagick imap imlib ipv6 javascript jpeg lcms libsamplerate mad matroska mmap mmx mng mp3 mpeg ncurses nls nocd nptl nsplugin offensive ogg opengl pam pcre pdf perl pic png ppds pulseaudio python qt3 quicktime readline real ruby sasl sdl session slang sndfile speex spell sqlite sse sse2 ssl svg tcl tcltk tcpd theora threads tiff tk truetype unicode usb videos vim-syntax vorbis wifi win32codecs x264 x86 xface xml xosd xpm xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2008-12-05 23:31:47 UTC
Mathias, can you help us fix the traceback shown in comment #0?
Comment 2 Mathias Laurin 2008-12-06 10:52:04 UTC
(In reply to comment #1)
> Mathias, can you help us fix the traceback shown in comment #0?
> 

Hi, I am not really using it anymore, but I will look into it ASAP.
Comment 3 Mathias Laurin 2008-12-06 13:13:12 UTC
(In reply to comment #1)
> Mathias, can you help us fix the traceback shown in comment #0?
> 

OK, I think I get it:

1. Stage QA did not exist when I wrote elogviewer and I did not update it since, so there may be other missing "stages", cf. line 96-99 and again lines 277-280 and 299-308 for what is now identified.
2. The stage is extracted from the elog file with a regexp line 390:
  - before the colon -> header
  - after the colon -> section
it is assumed that there would be a single word before the colon, i.e., WARN, INFO, etc. and a single word after the colon, i.e., preinst, etc.


Now, the program could parse: "QA: other" if it knew about QA. But it gets confused at the line that follows: "QA Notice: The following <snip>". It tries to convert "QA Notice" into a header, the space between the two words most likely generates the error reported line 374 in the traceback.


I am really sorry but the only gentoo system I have, now, does not do X, so I really cannot fix the program myself, I hope this is enough information for somebody else to provide a patch. Possibly simply rejecting (wrongly identified) headers: more than one word before the colon, would fix this.


When I wrote the program, I checked the sources of portage to look for a place where the "stages" could be gotten, but they were hardcoded, so I also hardcoded them into my program. I know you did a lot of work on portage, so maybe this has changed?


Anyway, do not hesitate to tell me if any of this is not clear.
Comment 4 Mathias Laurin 2010-11-07 21:00:39 UTC
I added QA in elogviewer 0.6.0
Comment 5 Mathias Laurin 2010-11-07 21:04:02 UTC
This bug is a duplicate of #330029
Comment 6 Zac Medico gentoo-dev 2010-11-09 00:59:45 UTC

*** This bug has been marked as a duplicate of bug 330029 ***