Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 304817

Summary: app-portage/gentoolkit-0.2.4.5: euse -i does not reflects /etc/portage/package.use
Product: Gentoo Linux Reporter: mndhkr
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: CONFIRMED ---    
Severity: minor CC: gravydish, kamil.kwiek
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description mndhkr 2010-02-13 08:12:42 UTC
my specific case:
using desktop profile
bluetooth useflag globally disabled in make.conf
bluetooth useflag added on media-video/totem in /etc/portage/package.use

output of 'equery uses totem':
[ Searching for packages matching totem... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-video/totem-2.26.3-r1 ]
 U I
 + + bluetooth : Enables Bluetooth Support
 - - debug     : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - doc       : Adds extra documentation (API, Javadoc, etc)
 - - galago    : Enable the galago plugin
 - - lirc      : Adds support for lirc (Linux's Infra-Red Remote Control)
 - - nautilus  : Enable the nautilus extension
 - - nsplugin  : Build plugin for browsers supporting the Netscape plugin architecture (that is almost any modern browser)
 + + python    : Adds support/bindings for the Python language
 - - tracker   : Enable the search plugin using app-misc/tracker

output of 'euse -i bluetooth':
global use flags (searching: bluetooth)
************************************************************
[- cD ] bluetooth - Enables Bluetooth Support

local use flags (searching: bluetooth)
************************************************************
[- cD ] bluetooth (media-video/totem):
Enable support for user-presence detection via the user's bluetooth handset using net-wireless/bluez-libs


shouldn't it be [+ cD ] bluetooth (media-video/totem)? 


Reproducible: Didn't try

Steps to Reproduce:
Comment 1 Jared Hancock 2011-04-25 02:34:12 UTC
Can you verify if this is fixed in gentoolkit-0.3.0?
Comment 2 irritum 2011-11-18 11:52:06 UTC
(In reply to comment #1)
> Can you verify if this is fixed in gentoolkit-0.3.0?

I confirm that the problem still exists in gentoolkit-0.3.0.4-r4.
Details are below.

So, /etc/make.conf doesn't contain 'jce' flag and /etc/portage/package.use/dev-java file contains a line:

dev-java/sun-jdk jce

My profile is:
  [4]   default/linux/amd64/10.0/desktop/kde *

Now I'm looking for with what USE flags a package was installed:

dell ~ # equery uses sun-jdk
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-java/sun-jdk-1.6.0.29:
 U I
 + + X        : Adds support for X11
 + + alsa     : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - derby    : Enable Installation of Bundled Derby (Java DB)
 - - doc      : Adds extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - examples : Install examples, usually source code
 + + jce      : Enable Java Cryptographic Extension Unlimited Strength Policy files
 + + nsplugin : Build plugin for browsers supporting the Netscape plugin architecture (that is almost any modern browser)

Above info is correct. Next, executing 'euse -i jce' gives me:

...
[-      ] jce
    dev-java/sun-jdk: Enable Java Cryptographic Extension Unlimited 
    Strength Policy files
        [+P ] (1.6) 1.6.0.26 [gentoo]
        [+P ] (1.6) 1.6.0.27 [gentoo]
        [+P ] (1.6) 1.6.0.29 [gentoo]
...

I assume that [+P ] means the 'jce' USE flag is enabled. Am I wrong?
And after that, executing 'euse -I jce', gives:

global use flags (searching: jce)
************************************************************
no matching entries found

local use flags (searching: jce)
************************************************************
[-      ] jce (dev-java/sun-jdk):
Enable Java Cryptographic Extension Unlimited Strength Policy files

I supposed, that I would see 'jce' flag enabled somewhere here. Am I wrong?
From manual:
+ if the flag is seen as active by portage, - if not

On the other hand there is also:
euse doesn't handle USE flags enabled or disabled by use.defaults, use.mask or package.use yet. It also doesn't completely understand the -* flag.

Sorry if I misunderstood how it should work now.