qlist should display slot numbers, if requested by -S but doesn't anymore with portage-utils 0.8. Version 0.6 tested just now works as expected. emerald ~ # qlist -ICSL x11-drivers/ x11-drivers/nvidia-drivers: x11-drivers/xf86-input-aiptek: x11-drivers/xf86-input-evdev: x11-drivers/xf86-input-joystick: x11-drivers/xf86-input-keyboard: x11-drivers/xf86-input-mouse: x11-drivers/xf86-input-void: x11-drivers/xf86-video-fbdev: x11-drivers/xf86-video-nv: x11-drivers/xf86-video-v4l: x11-drivers/xf86-video-vesa:
Created attachment 296483 [details, diff] portage-utils-0.8-fix-slots.patch Patch that fixes the problem. It's actually 2 bugs, the method qlist was using to obtain the slot had stopped working, and the stack was being clobbered with -U which was replacing the slot information with the first USE flag. There might be a better way of doing this, my C is pretty rusty ATM.
ah simple is simpler than that. your patch does fix the non-reentrant nature of the grab_vdb_item func, but i'm going to keep putting that off for now ;). http://sources.gentoo.org/gentoo-projects/portage-utils/qlist.c?r1=1.66&r2=1.67