On Tue, Sep 24, 2024, 07:41 Arsen Arsenović <ar...@gentoo.org> wrote:
> I do wonder if we should keep s6, runit and daemontools in that virutal > though, given that we can't boot them. Perhaps they'd be fine behind a > USE flag. I'll propose that. > So, this is a case where you definitely always need one of the dependencies, and sometimes you might want two, but the reason you might want the second one would not be to fulfill the purpose represented by the virtual. It sounds to me like a set of local USE flags would be perfect, with a REQUIRED_USE enforcing exactly-one-of to choose the dependency. The USE flag controls the choice, and if you pull in an alternative service manager for an unrelated reason, it doesn't change the USE flag, so it doesn't change the dependency which satisfies the virtual. The USE-disabled service managers are simply ignored. Would that work? Or is that exactly what you're planning to propose? I don't think using just one USE flag would be as safe, unless this is only an issue for daemontools. Tons of stuff tries to pull in systemd, but blockers generally prevent you from making a mess that way. -MD >