mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
The actual src_configure is very explicit about how this works. There are three `if use ...; elif use ...; else` states, and, depending on branch, one of three different dependencies will be passed as a configure option and then linked via elf NEEDED fields in the resulting binary. It is madness to use any-of for this. There is no useful use case for any-of (they are extremely straightforward usedeps) and furthermore it introduces the possibility that, since basu is always a possible option, the package could be compiled against e.g. elogind and then the elogind package could be depcleaned if basu is installed. Fixing this mess is slightly involved, since basu is not keyworded for all arches. Once basu is actually mandatory outside of an any-of group, it becomes evident that, since sd-bus is mandatory for the package and the only choice is the choice of providers, - systemd must be forced on systemd profiles - elogind must be forced on arches that don't have basu use.mask wins over p.use.force, so forcing both flags on x86-systemd is not a problem. And the only way to disable both, is on profiles where the basu dependency is available. Closes: https://bugs.gentoo.org/800788 Closes: https://bugs.gentoo.org/946988 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>