Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46702 - equery tool ignores settings in /etc/portage/package.unmask causing commands to fail
Summary: equery tool ignores settings in /etc/portage/package.unmask causing commands ...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2004-04-03 09:43 UTC by Gareth Owen
Modified: 2004-04-03 11:01 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Gareth Owen 2004-04-03 09:43:21 UTC
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

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

# <> (18 Mar 2004)
# The big gnome 2.6 mask
# Note : The servers have been compromized with unknown impact
# at this point. Take this into consideration when using these packages.
# gst
# gnome-accessibility
# these two were already in the tree before announcing them as gnome 2.6
# packages, so we'll let them be.
# 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 #
Comment 1 Gareth Owen 2004-04-03 11:00:46 UTC
Forgot to add the ACCEPT_KEWORD="~x86" to the command.  With this it words as expected.
Comment 2 Gareth Owen 2004-04-03 11:01:22 UTC
Opened in error