Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204713 - media-sound/timidity++-2.13.2-r6 initscript fails to run if ALSA is using LADSPA plugins
Summary: media-sound/timidity++-2.13.2-r6 initscript fails to run if ALSA is using LAD...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-07 08:29 UTC by Adam Nielsen
Modified: 2009-07-24 08:14 UTC (History)
2 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 Adam Nielsen 2008-01-07 08:29:06 UTC
If you use a LADSPA plugin in your ALSA configuration (e.g. http://gentoo-wiki.com/HOWTO_Set_up_a_system-wide_equaliser_with_ALSA_and_LADSPA) then Timidity will fail to load when called from /etc/init.d/timidity because it can't open an ALSA device.

The reason it can't open an ALSA device is because it can't find the LADSPA plugins that ALSA has been configured to use.  The path is stored in /etc/env.d/60ladspa, which sets the LADSPA_PATH environment variable.  If this environment variable hasn't been set, nothing can open an ALSA device (even aplay fails.)

I fixed this by adding "LADSPA_PATH" into /etc/conf.d/env_whitelist which made sure the environment variable was available for initscripts, and this allowed /etc/init.d/timidity to start Timidity successfully.

There's probably a better way of doing this, but either way the LADSPA_PATH variable needs to be present when loading Timidity (or any ALSA program for that matter.)

Reproducible: Always

Steps to Reproduce:
1. emerge timidity
2. Add a LADSPA plugin to the default ALSA PCM device
3. Run "/etc/init.d/timidity start" and observe its failure

Actual Results:  
Timidity was unable to open an ALSA device

Expected Results:  
Timidity should have opened the ALSA device and daemonised successfully.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-05-12 16:01:31 UTC
Is this still a problem with -r8, or -r9? I've changed init script a bit for other bug, which included a change from group nobody to group audio.

I suspect it is still a problem, I think I got it, trying to figure something out..
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-07-24 08:14:07 UTC
+  24 Jul 2009; Samuli Suominen <ssuominen@gentoo.org>
+  +timidity++-2.13.2-r11.ebuild, +files/conf.d.timidity.2,
+  +files/timidity.desktop.2:
+  LADSPA_PATH is now configurable from inside conf.d/timidity wrt #204713,
+  thanks to Adam Nielsen. Revert -polling.patch since it breaks realtime
+  playing with FluidR3 soundfont wrt #275198. Desktop entry now prefers GTK+
+  frontend if available wrt #207311.