Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298389 - IUSE_DRIZZLED_PLUGINS for dev-db/drizzle
Summary: IUSE_DRIZZLED_PLUGINS for dev-db/drizzle
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Pavel Stratil
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-26 00:13 UTC by Francesco Riosa
Modified: 2009-12-26 14:11 UTC (History)
1 user (show)

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


Attachments
extract_plugins.py try to detect plugins from configure --help output (extract_plugins.py,2.57 KB, text/plain)
2009-12-26 00:14 UTC, Francesco Riosa
Details
drizzle-2009.12.1251-r1.ebuild (drizzle-2009.12.1251-r1.ebuild,5.01 KB, text/plain)
2009-12-26 00:15 UTC, Francesco Riosa
Details
r0 -> r1 patch (drizzle-2009.12.1251-r1.patch,3.52 KB, text/plain)
2009-12-26 00:16 UTC, Francesco Riosa
Details
example metadata generated, need to be fixed (metadata.xml,3.60 KB, text/plain)
2009-12-26 00:18 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2009-12-26 00:13:04 UTC
Being Drizzle a microkernel DBMS it has a number of plugins, it would be of use to be able to select plugins at compile time.
Similarly at what gentoo does with other packages with a {alsa,video}_cards or sane_backends.

The attached python script use the output from `./configure --help` to create a $IUSE_DRIZZLED_PLUGINS variable, it's not a USE_EXPAND thing but could be easily  converted (it even attempt a metadata.xml).

Also attached an ebuild that make use of the former. Whit diff to current portage dev-db/drizzle.
Comment 1 Francesco Riosa 2009-12-26 00:14:54 UTC
Created attachment 214166 [details]
extract_plugins.py try to detect plugins from configure --help output
Comment 2 Francesco Riosa 2009-12-26 00:15:32 UTC
Created attachment 214167 [details]
drizzle-2009.12.1251-r1.ebuild
Comment 3 Francesco Riosa 2009-12-26 00:16:14 UTC
Created attachment 214169 [details]
r0 -> r1 patch
Comment 4 Francesco Riosa 2009-12-26 00:18:07 UTC
Created attachment 214171 [details]
example metadata generated, need to be fixed
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-26 01:02:04 UTC
I'd sincerely rather not make each a separate USE flag… some are already bound to USE flags (pam, memcache, gnutls), which you're filtering out with – IMHO – too much complexity, and others don't have extra dependencies so are effectively not any extra.

Sure Gentoo is based on choices, but on the other hand, too much choice just makes stuff messier. Since they are neither requiring new dependencies (with a few exceptions that can be bound to other standard USE flags), nor they are bloating the daemon (they are loadable plugins), I don't really see the reason to break them further apart.
Comment 6 Pavel Stratil 2009-12-26 02:46:31 UTC
Francesco, thanks for the initiative, but I agree with Diego on this one. Additionally to his explanation why this isnt a good idea, here's one more: There will some dependencies between plugins, i.e. the replication plugin will most probably require the gearman plugin and some plugin to handle ssl. So in the end, the ebuild would need complex use rules which would confuse users and be a hell to maintain. So, for now I'm changing this bug to wontfix.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-26 03:05:57 UTC
I'd also point out (if somebody is going to use this as a reference) that you can override ebuild choices via the EXTRA_ECONF variable set specifically for dev-db/drizzle, so there is no real reason to make the interface with user too complex.
Comment 8 Francesco Riosa 2009-12-26 14:11:14 UTC
After a good night of sleep EXTRA_ECONF seem more reasonable to me too ;)