Summary: | media-sound/alsa-utils: the script /etc/init.d/alsasound doesn't work properly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabio Cavallo <fhorse> |
Component: | Current packages | Assignee: | Gentoo ALSA team <alsa-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | agent_jdh, dv, mschiff |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
alsasound.initd-r3.diff
alsasound.initd-r3.diff |
Description
Fabio Cavallo
2009-02-21 23:07:37 UTC
Supposed to be fixed in r1. Reopening as this bug still isn't fixed in media-sound/alsasound-1.0.20-r2 The offending part in the alsasound init script is this line: modprobe -l | sed -n -e '/snd.*oss/ s:\/.*\/\(.*\).ko:\1:p' which results in the following output on all of my machines: barcelona:~ # modprobe -l | sed -n -e '/snd.*oss/ s:\/.*\/\(.*\).ko:\1:p' kernelsnd-mixer-oss kernelsnd-pcm-oss kernelsnd-seq-oss barcelona:~ # I fixed it this way: barcelona:~ # modprobe -l | sed -n -e '/snd.*oss/ s:.*\/\(.*\).ko:\1:p' snd-mixer-oss snd-pcm-oss snd-seq-oss barcelona:~ # I'll attach a patch whith the fix I used in the alsasound init script. Created attachment 199827 [details, diff]
alsasound.initd-r3.diff
Maybe using something like
modprobe -l | sed -n -e '/snd.*oss/ s:.*\/\([[:alnum:]_-]\+\).ko:\1:p'
might even be better but I leave this to our alsa experts.
(In reply to comment #2) > Reopening as this bug still isn't fixed in media-sound/alsasound-1.0.20-r2 oops, this should be media-sound/alsa-utils-1.0.20-r2 of course... Created attachment 199843 [details, diff]
alsasound.initd-r3.diff
My previous patch only fixed one out of three lines where a change is necessary. This patch fixes all three lines.
This patch also uses the [:alnum:] regexp rather than the .* wildcard.
Lars, that updated alsasound patch of your works here - alsa-utils got re-emerged due to dropping midi USE flag and this problem arose. Was about to open a new ug then saw this. *** Bug 280021 has been marked as a duplicate of this bug. *** +*alsa-utils-1.0.20-r3 (02 Aug 2009) + + 02 Aug 2009; Samuli Suominen <ssuominen@gentoo.org> + +alsa-utils-1.0.20-r3.ebuild, +files/alsasound.initd-r4: + Fix init script wrt #259861, thanks to Lars Wendler for patch. *** Bug 280323 has been marked as a duplicate of this bug. *** |