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

Bug 177829

Summary: dev-db/mysql[-community] has local use flag with same name as global use flag
Product: Gentoo Linux Reporter: Marijn Schouten (RETIRED) <hkbst>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: qa
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marijn Schouten (RETIRED) gentoo-dev 2007-05-09 16:42:26 UTC
dev-db/mysql[-community] has local use flag with same name as global use flag:

euse -i minimal
global use flags (searching: minimal)
************************************************************
[-    ] minimal - Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)

local use flags (searching: minimal)
************************************************************
[-    ] minimal (dev-db/mysql-community):
Install client programs only, no server

[-    ] minimal (dev-db/mysql):
Install client programs only, no server
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-09 17:24:49 UTC
What exactly is wrong with specifying the use flag meaning?
Comment 2 Marijn Schouten (RETIRED) gentoo-dev 2007-05-09 17:36:48 UTC
local and global use flags shouldn't share a single name.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-09 17:43:08 UTC
(In reply to comment #2)
> local and global use flags shouldn't share a single name.

Hmm? Can refer to any documentation about this? 

Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2007-05-10 09:58:54 UTC
Not a direct requirement, but I think it follows from what is there:

"If the effect of the thing USE flag upon pkg-one is substantially different from the effect it has upon pkg-two, then thing is not a suitable candidate for being made a global flag. In particular, note that if client and server USE flags are ever introduced, they can not be global USE flags for this reason."
http://devmanual.gentoo.org/general-concepts/use-flags/index.html

By having the same name as a global use flag, the "minimal" local use flag behaves effectively as a global use flag.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-05-10 10:08:32 UTC
I don't see this as anything wrong.
The global flag lists examples of what is disabled, while the local version explicitly tells you which portions are disabled (and is indeed covered under the global variant). It's not like they do different things at all.