Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 782871 - media-sound/fluidsynth does not find soundfont from media-sound/fluid-soundfont by default
Summary: media-sound/fluidsynth does not find soundfont from media-sound/fluid-soundfo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-14 16:36 UTC by Jan Psota
Modified: 2025-06-03 16:27 UTC (History)
4 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 Jan Psota 2021-04-14 16:36:35 UTC
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)
Comment 1 jospezial 2021-04-14 17:40:18 UTC
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
Comment 2 jospezial 2021-04-14 18:40:50 UTC
We need something similar to app-eselect/eselect-timidity to create a symlink
/usr/share/soundfonts/default.sf2 -> /usr/share/sounds/sf2/example.sf2
Comment 3 Jan Psota 2021-04-14 18:54:14 UTC
> 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 :-)
Comment 4 Miroslav Šulc gentoo-dev 2021-04-15 13:53:55 UTC
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.
Comment 5 Niklāvs Koļesņikovs 2021-04-15 18:10:13 UTC
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.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-06-03 16:12:30 UTC
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
Comment 7 Larry the Git Cow gentoo-dev 2025-06-03 16:27:36 UTC
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(-)