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: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-14 16:36 UTC by Jan Psota
Modified: 2021-04-15 18:14 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.