Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941986 - virtual/sound-theme: New package providing freedesktop.org spec compliant theme for desktop env. system sounds
Summary: virtual/sound-theme: New package providing freedesktop.org spec compliant the...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL: https://specifications.freedesktop.or...
Whiteboard:
Keywords: LATER
Depends on:
Blocks:
 
Reported: 2024-10-22 21:47 UTC by Andreas Sturmlechner
Modified: 2024-11-24 10:56 UTC (History)
7 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 Andreas Sturmlechner gentoo-dev 2024-10-22 21:47:20 UTC
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.
Comment 1 Andreas Sturmlechner gentoo-dev 2024-10-22 22:14:28 UTC
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
Comment 2 Andreas Sturmlechner gentoo-dev 2024-11-01 10:59:12 UTC
@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.
Comment 3 Larry the Git Cow gentoo-dev 2024-11-04 18:39:51 UTC
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(+)
Comment 4 Andreas Sturmlechner gentoo-dev 2024-11-04 19:04:23 UTC
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.
Comment 5 Pacho Ramos gentoo-dev 2024-11-08 20:24:28 UTC
(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 :)