Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274489 - app-portage/portage-utils-0.2: qlop -g doesn't show all the emerge instances
Summary: app-portage/portage-utils-0.2: qlop -g doesn't show all the emerge instances
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
: 334903 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-17 10:15 UTC by Denis Loginov
Modified: 2010-12-27 08:31 UTC (History)
13 users (show)

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


Attachments
qlop.diff (qlop.diff,414 bytes, patch)
2009-12-27 16:11 UTC, Fabio Rossi
Details | Diff
qlop.c.diff (qlop.c.diff,1.86 KB, patch)
2010-03-13 09:20 UTC, Fabio Rossi
Details | Diff
qlop.c.diff (qlop.c.diff,1.84 KB, patch)
2010-07-18 22:08 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Loginov 2009-06-17 10:15:12 UTC
If I use qlop from app-portage/portage-utils-0.2, it doesn't show all the emerge instances (in response to qlop -gHv <package>) but only old ones.
app-portage/portage-utils-0.1.29 doesn't suffer from this problem.

Reproducible: Always

Steps to Reproduce:
qlop -g(Hv) <package>
Comment 1 Morozov Alexandr 2009-11-16 23:11:10 UTC
Same in 0.2.1.
Comment 2 badboy 2009-12-05 21:25:10 UTC
Same here. My emerge --info:
Portage 2.2_rc55 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.31-gentoo i686)
=================================================================
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 04 Dec 2009 09:15:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ http://gentoo.prz.rzeszow.pl http://de-mirror.org/distro/gentoo/"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/yarik-overlay /usr/local/portage/layman/roslin /usr/local/portage/layman/x11 /usr/local/portage/layman/mpd /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa bash-completion berkdb bzip2 cli cracklib crypt cups cxx dri dvd dvdr exif ffmpeg fortran gdbm gif gpm iconv ipod ipv6 jpeg kde kms lm_sensors mmx modules mp3 mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python qt3support qt4 readline reflection session smp spell spl sse sse2 ssl svg sysfs tcpd threads truetype unicode vim-syntax win32codecs x86 xorg zlib" ALSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Nikoli 2009-12-12 23:34:12 UTC
confirm, in case of build failure 'qlop -gH package' shows time between start of failed merge and end of successfule merge.

This is bug of app-portage/portage-utils-0.2.1, version 0.1.29 works fine.

Please unstable versions 0.2.*
Comment 4 Fabio Rossi 2009-12-27 16:11:57 UTC
Created attachment 214318 [details, diff]
qlop.diff

Can you try this patch?
Comment 5 Petr Pisar 2010-01-05 14:44:19 UTC
I can confirm attached diff fixes this problem.
Comment 6 badboy 2010-02-17 21:48:18 UTC
(In reply to comment #4)
> Created an attachment (id=214318) [details]
> qlop.diff
> 
> Can you try this patch?
> 

I works for me.
Can somebody include this patch in portage?
Comment 7 Steev Klimaszewski (RETIRED) gentoo-dev 2010-02-23 21:45:06 UTC
This also fixes an issue I was having where qlop wouldn't report the time of a package at all if there were any failed emerges of the package.

Thanks for the patch Fabio.

Also, commenting to remind solar or vapier to commit it ;) (per solar's request on IRC)
Comment 8 Raúl Porcel (RETIRED) gentoo-dev 2010-03-07 17:55:32 UTC
Can anyone confirm that this still happens on 0.3.1?
Comment 9 Fabio Rossi 2010-03-08 23:00:53 UTC
I have just found there are some cases not caught by 'qlop -g' but detected correctly by 'qlop -l' so there is a discrepancy in the behavior.
Comment 10 badboy 2010-03-08 23:03:05 UTC
(In reply to comment #8)
> Can anyone confirm that this still happens on 0.3.1?

0.3.1 works fine.
Comment 11 Fabio Rossi 2010-03-13 09:19:02 UTC
(In reply to comment #8)
> Can anyone confirm that this still happens on 0.3.1?

As I don't see any patch in the repository, I assume you were referring to the case that 0.3.1 is working as is without patches. This is wrong, the problem is still there. I'm updating my previous patch to be more correct.
Comment 12 Fabio Rossi 2010-03-13 09:20:00 UTC
Created attachment 223381 [details, diff]
qlop.c.diff
Comment 13 Balint Dobai-Pataky 2010-05-18 08:29:02 UTC
i confirm, portage-utils-0.3.1 still has the bug,
and the patch works for 0.3.1
thanks
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2010-05-29 15:29:05 UTC
Mike, can we get the patch applied, please?

Thanks
Comment 15 SpanKY gentoo-dev 2010-07-18 17:48:27 UTC
the coding style is not correct.  please use linux kernel style.

you also have excessive parenthesis and need whitespace around the commas.

run `make check` to see some of the errors
Comment 16 Fabio Rossi 2010-07-18 22:08:25 UTC
Created attachment 239315 [details, diff]
qlop.c.diff

Updated the patch fixing the style
Comment 17 SpanKY gentoo-dev 2010-07-19 00:30:03 UTC
there was one or two left, but i fixed them myself since you did most of them

now in cvs, thanks
http://sources.gentoo.org/gentoo-projects/portage-utils/qlop.c?r1=1.53&r2=1.54
Comment 18 Raúl Porcel (RETIRED) gentoo-dev 2010-09-19 17:13:05 UTC
*** Bug 334903 has been marked as a duplicate of this bug. ***
Comment 19 Tomasz Golinski 2010-11-15 02:17:27 UTC
Is there a plan to release an ebuild which would truly resolve this bug for users? Right now, for all practical purposes, it is not finally resolved.