Resolution - add: sed -i s:soundfonts/default.sf2:sounds/sf2/FluidR3_GM.sf2: cmake_admin/DefaultDirs.cmake in line 44 of ebuild (at a top of src_configure section). (setting it in /etc/fluidsynth.conf does affect only daemon)
It may be the other way around. media-sound/fluidsynth is correct. media-sound/fluid-soundfont installs FluidR3_GM.sf2 and FluidR3_GS.sf2 into wrong directory. See archlinux: https://github.com/archlinux/svntogit-community/blob/5bbf3b8f922af39b1a09de896a1a69a0319f1945/trunk/PKGBUILD#L16
We need something similar to app-eselect/eselect-timidity to create a symlink /usr/share/soundfonts/default.sf2 -> /usr/share/sounds/sf2/example.sf2
> We need something similar to app-eselect/eselect-timidity [...] Let's keep it simple. Working default would be enough. Your suggestion with fluid-soundfont repairing appeals to me :-)
how about providing a script that would set path to any soundfont as the default? i also wonder whether it could be done so that each user could set his/her own default. but i don't use fluidsynth this way so not sure what would be the best solution.
We currently install SF2 soundfonts to /usr/share/sounds/sf2/ which matches where Debian/Ubuntu installs them. And if you do "xzgrep Ubuntu /usr/share/doc/fluid-soundfont-3.1/README.xz" you will see that like most/all other distros, our package comes via Ubuntu. ;) Fluidsynth is to the best of my knowledge an independent project that merely shares a the root with with the almost 20 year old soundfont. If there's some LSB/XDG documentation on this, I'm very much willing to change the location of fluid-soundfont to there, since I already have an open PR for that package.
Debian build with: -DDEFAULT_SOUNDFONT=/usr/share/sounds/sf3/default-GM.sf3 https://salsa.debian.org/multimedia-team/fluidsynth/-/blob/master/debian/rules?ref_type=heads#L25
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95c93da7428b4b18762630a11e960fd51e955945 commit 95c93da7428b4b18762630a11e960fd51e955945 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-06-03 16:15:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-06-03 16:27:14 +0000 media-sound/fluidsynth: install tmpfiles config; change default soundfont path; systemd fix * Install tmpfiles config. The release notes mention this and I'd meant to do it and forgot with the other big changes done in e30fcf2e2f7b63e6e03b473bb4b5c30a70940043. * Set `-DDEFAULT_SOUNDFONT` so we can actually find media-sound/fluid-soundfont (bug #782871). In media-sound/fluid-soundfont, we do the same as Ubuntu and others by installing to /usr/share/sounds/sf2 rather than where fluidsynth looks by default at /usr/share/soundfonts/default.sf2. So, we should do as Ubuntu does and also tell fluidsynth about that. * Depend on systemd w/ USE=systemd because libsystemd is used there, though only for the native ABI as it's not used in the library. Closes: https://bugs.gentoo.org/782871 Signed-off-by: Sam James <sam@gentoo.org> .../{fluidsynth-2.4.6-r1.ebuild => fluidsynth-2.4.6-r2.ebuild} | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)