media-libs/libcanberra is still broadly used as sound event library, even media-video/pipewire[X] depends on it. media-libs/libcanberra has IUSE=+sounds, which currently pulls in x11-themes/sound-theme-freedesktop. But it can be replaced by other sound themes as long as they adhere to freedesktop.org spec - of which in KDE world there are two -, which essentially seems to come down to standardised notification sound names and some index file in /usr/share/sounds/<theme-name>/index.theme In its simplest form, virtual dependencies would look like this right now: > RDEPEND=" > sound? ( || ( > x11-themes/sound-theme-freedesktop > kde-plasma/ocean-sound-theme:* > >=kde-plasma/oxygen-sounds-6.0.0:* > ) ) > " But it is possible there are other themes already in ::gentoo that I am not aware of, or maybe other DE maintainers have their own ideas, so CCing relevant maintainers. PR will follow.
Current x11-themes/sound-theme-freedesktop RDEPENDs: gnome-base/gnome gnome-extra/gnome-tweaks kde-plasma/kpipewire kde-plasma/plasma-pa media-libs/libcanberra-0.30-r7:sound See also: https://qa-reports.gentoo.org/output/genrdeps/rindex/x11-themes/sound-theme-freedesktop
@Pacho, 14 years after bug 323379#c4 would you agree that IUSE sound for 601.70 KiB (x11-themes/sound-theme-freedesktop) or 2.17 MiB (kde-plasma/ocean-sound-theme) of files falls under this policy: > USE flags must not be used to control installing files that are small, non- > intrusive, do not introduce additional build-time dependencies or cause a > significant increase in build time. I tend to make libcanberra RDEPEND on virtual/sound-theme unconditionally.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f7b42f18c432793351933d75539cb80b644d82b commit 9f7b42f18c432793351933d75539cb80b644d82b Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-09-17 20:08:31 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-11-04 18:38:28 +0000 media-libs/libcanberra: update EAPI 7 -> 8, drop IUSE gtk2, gtk3 Package is also used by non-GTK centric packages. This is a way to get around a default enabled USE=gtk. Drop IUSE sound, hard-depend on x11-themes/sound-theme-freedesktop instead. Dead upstream so no downside to maintenance. Remove all parts colliding with subsequent media-libs/libcanberra-gtk3. Bug: https://bugs.gentoo.org/769464 Bug: https://bugs.gentoo.org/941986 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-libs/libcanberra/libcanberra-0.30-r8.ebuild | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+)
Deferred for now. Apparently, sound-theme-freedesktop is supposed to be an always present fallback per the spec, and apparently applications can install custom sounds in there (no idea of an example). That's what I got from Plasma upstream devs.
(In reply to Andreas Sturmlechner from comment #2) > @Pacho, 14 years after bug 323379#c4 would you agree that IUSE sound for > 601.70 KiB (x11-themes/sound-theme-freedesktop) or 2.17 MiB > (kde-plasma/ocean-sound-theme) of files falls under this policy: > Proceed as you wish :)