Files
gentoo/gui-libs
Eli Schwartz b224f71c76 gui-libs/xdg-desktop-portal-wlr: fix broken any-of dependency on basu
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>
2026-11-02 10:05:14 -05:00
..
…
2026-09-19 23:35:19 +02:00
…
2026-10-19 19:46:10 +03:00