When calculating if an ebuild is masked or not, it appears that equery just checks the /usr/portage/profiles/package.mask file, it does not look at the /etc/portage/package.unmask file which overrides the portage mask settings. This has the result of equery failing if you unmask an ebuild in package.unmask and then install the ebuild. At the very least there should be an option for equery to ignore the masked field. Reproducible: Always Steps to Reproduce: 1. Unmask gnome 2.6 in /etc/portage/package.unmask 2. Install gnome 2.6 3. Run "equery list nautilus" 4. Run "equery which nautilus" 5. Run "equery files nautilus Actual Results: 3. As expected installed nautilus packages are listed (and shown as masked?) goliath root # equery list nautilus Searching for package 'nautilus' in all categories among: * installed packages [I--] [M~] gnome-base/nautilus-2.6.0 (0) [I--] [M~] gnome-extra/nautilus-media-0.8.0 (0) [I--] [M~] gnome-extra/nautilus-cd-burner-2.6.0 (0) [I--] [ ] x11-themes/nautilus-themes-1.0 (0) 4. "which" incorrectly points to the uninstalled version, not the installed (masked) version... goliath root # equery which nautilus /usr/portage/gnome-base/nautilus/nautilus-2.4.2.ebuild 5. "files" doesn't find package: goliath root # equery files nautilus Searching for packages matching 'nautilus'... goliath root # Expected Results: 3. As expected, although it could be argued that the packages shouldn't show up as masked 4. "which" should reported the installed package, not the last unmasked one. 5. "files" should find the installed package My /etc/portage/package.unmask file # <foser@gentoo.org> (18 Mar 2004) # The big gnome 2.6 mask # # Note : The gnome.org servers have been compromized with unknown impact # at this point. Take this into consideration when using these packages. # http://mail.gnome.org/archives/gnome-announce-list/2004-March/msg00113.html >=gnome-base/gnome-2.5 >=gnome-base/gconf-2.5 >=gnome-base/ORBit2-2.10 >=gnome-base/control-center-2.5 >=gnome-base/eel-2.5 >=gnome-base/nautilus-2.5 >=gnome-base/gnome-applets-2.5 >=gnome-base/gnome-desktop-2.5 >=gnome-base/libbonobo-2.5 >=gnome-base/libbonoboui-2.5 >=gnome-base/libglade-2.3 >=gnome-base/libgnome-2.5 >=gnome-base/libgnomecanvas-2.5 >=gnome-base/libgnomeui-2.5 >=gnome-base/libgnomeprint-2.5 >=gnome-base/libgnomeprintui-2.5 =gnome-extra/libgtkhtml-2.6* =gnome-extra/libgtkhtml-2.5* >=gnome-base/libgtop-2.5 >=gnome-base/librsvg-2.6 >=gnome-base/gnome-vfs-2.5 gnome-base/gnome-keyring >=gnome-base/gnome-panel-2.5 >=gnome-base/gnome-session-2.5 >=gnome-extra/gconf-editor-2.5 >=gnome-extra/bug-buddy-2.5 >=gnome-extra/nautilus-cd-burner-0.6.5 >=gnome-extra/nautilus-media-0.7 >=gnome-extra/yelp-2.5 >=gnome-extra/zenity-2.5 >=gnome-extra/gnome-utils-2.5 >=gnome-extra/gnome2-user-docs-2.5 >=gnome-extra/gnome-games-2.5 >=gnome-extra/gnome-media-2.5 >=gnome-extra/gnome-system-monitor-2.5 >=gnome-extra/gucharmap-1.3 >=gnome-extra/gcalctool-4.3.50 >=media-gfx/eog-2.5 >=net-www/epiphany-1.2 net-analyzer/gnome-netstatus >=net-print/gnome-cups-manager-0.17-r03202004 >=app-arch/file-roller-2.5 >=app-editors/gedit-2.5 >=app-text/ggv-2.5 >=app-text/gpdf-0.125 >=x11-terms/gnome-terminal-2.5 >=x11-themes/gnome-themes-2.5 >=x11-themes/gnome-icon-theme-1.1 >=x11-libs/gtksourceview-0.9 >=x11-libs/libwnck-2.5 >=x11-wm/metacity-2.7 # gst >=media-libs/gstreamer-0.8 >=media-libs/gst-plugins-0.8 >=media-plugins/gst-plugins-oss-0.8 >=media-plugins/gst-plugins-gnomevfs-0.8 >=media-plugins/gst-plugins-mad-0.8 >=media-plugins/gst-plugins-ogg-0.8 >=media-plugins/gst-plugins-vorbis-0.8 >=media-plugins/gst-plugins-esd-0.8 >=media-plugins/gst-plugins-alsa-0.8 >=media-plugins/gst-plugins-ffmpeg-0.8 >=media-plugins/gst-plugins-mpeg2dec-0.8 >=media-plugins/gst-plugins-flac-0.8 >=media-plugins/gst-plugins-libpng-0.8 >=media-plugins/gst-plugins-xvideo-0.8 >=media-plugins/gst-plugins-a52dec-0.8 >=media-plugins/gst-plugins-cdparanoia-0.8 >=media-plugins/gst-plugins-swfdec-0.8.0 # gnome-accessibility >=gnome-base/gail-1.5 >=app-accessibility/gnopernicus-0.8.1 >=app-accessibility/gok-0.9.5 >=gnome-extra/at-spi-1.4 >=app-accessibility/gnome-mag-0.10.10 # these two were already in the tree before announcing them as gnome 2.6 # packages, so we'll let them be. #>=app-accessibility/gnome-speech-0.3.2 #>=gnome-extra/libgail-gnome-1.0.3 # # End of gnome 2.6 mask # "etcat -v" output for the nautilus package... goliath root # etcat -v nautilus [ Results for search key : nautilus ] [ Candidate applications found : 3 ] Only printing found installed programs. * gnome-base/nautilus : [ ] 1.0.6-r9 (0) [ ] 2.4.2 (0) [M~I] 2.6.0 (0) goliath root #
Forgot to add the ACCEPT_KEWORD="~x86" to the command. With this it words as expected.
Opened in error