Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517252 - net-analyzer/zabbix should set REQUIRED_USE instead of dying in pkg_setup()
Summary: net-analyzer/zabbix should set REQUIRED_USE instead of dying in pkg_setup()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2019-11-27
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PMASKED
: 575278 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-16 15:53 UTC by Michael Mol
Modified: 2019-12-13 15:49 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mol 2014-07-16 15:53:33 UTC
When emerging with multiple database USE flags selected globally, the package's dependency requirement isn't rejected at dependency-calculation time, and the build proceeds until portage attempts to build the package itself. At this point, it calls die:

 * 
 * You can't use more than one database type in Zabbix.
 * Select exactly one database type out of these: mysql oracle postgres sqlite
 * 
 * ERROR: net-analyzer/zabbix-2.0.12::gentoo failed (setup phase):
 *   Multiple database types selected.
 * 
 * Call stack:
 *              ebuild.sh, line  93:  Called pkg_setup
 *   zabbix-2.0.12.ebuild, line  88:  Called die
 * The specific snippet of code:
 *                      die "Multiple database types selected."

Rather than calling die to alert the user to a dependency issue, portage should be made aware that the database USE flags are mutually exclusive, so as to avoid potentially building unnecessary dependencies. (And generally wasting time on a failed build.)
Comment 1 Pacho Ramos gentoo-dev 2019-12-13 15:46:53 UTC
it looks fixed in latest versions
Comment 2 Pacho Ramos gentoo-dev 2019-12-13 15:49:10 UTC
*** Bug 575278 has been marked as a duplicate of this bug. ***