Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258930 - media-sound/alsa-utils-1.0.19: problem with module-init-tools 3.6
Summary: media-sound/alsa-utils-1.0.19: problem with module-init-tools 3.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
: 258496 259271 260039 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-14 03:11 UTC by Boney McCracker
Modified: 2009-02-23 19:06 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Revised initscript for alsa (proposed) (alsasound,6.68 KB, text/plain)
2009-02-14 17:26 UTC, Boney McCracker
Details
modify sed expression to parse module-init-tools-3.6 `modprobe -l` output (alsasound.patch,999 bytes, patch)
2009-02-17 00:51 UTC, Zac Medico
Details | Diff
Init script I am using now (alsasound.initd.patch,1.00 KB, patch)
2009-02-21 12:48 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Boney McCracker 2009-02-14 03:11:32 UTC
I imagine it was an update to openrc or module-init-tools that broke this, but the fix is probably in the sed expressions in /etc/init.d/alsasound, so I filed it here.

Summary: it's trying to load a number of modules like "kernelsnd-seq" instead of "snd-seq".

Reproducible: Always

Steps to Reproduce:

Actual Results:  
# /etc/init.d/alsasound start
* Loading ALSA modules...
*   Loading: kernelsnd-mixer-oss...
FATAL: Module kernelsnd_mixer_oss not found.                  [ !! ]
*   Loading: kernelsnd-pcm-oss...
FATAL: Module kernelsnd_pcm_oss not found.                    [ !! ]
*   Loading: kernelsnd-seq-oss...
FATAL: Module kernelsnd_seq_oss not found.                    [ !! ]
*   Loading: kernelsnd-seq...
FATAL: Module kernelsnd_seq not found.                        [ ok ]
* Restoring Mixer Levels...


media-sound/alsa-utils-1.0.19
sys-apps/module-init-tools-3.6
sys-apps/openrc-0.4.3-r1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-14 16:19:38 UTC
Please post your `emerge --info' too.
Comment 2 Rafał Mużyło 2009-02-14 16:54:56 UTC
The forums are rather clear about it:
this is caused by a behavior change in 'modprobe -l' output
in sys-apps/module-init-tools-3.6,
but it's the script in alsa-utils that needs to be changed.
Comment 3 Boney McCracker 2009-02-14 17:19:32 UTC
(In reply to comment #1)
> Please post your `emerge --info' too.
> 
I really don't see how that is needed, but here you go:

~ # emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_1400MHz-with-glibc2.0
Timestamp of tree: Sat, 14 Feb 2009 10:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.6
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fforce-addr -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fforce-addr -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://gentoo.osuosl.org/ http://open-systems.ufl.edu/mirrors/gentoo "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu"
LINGUAS="en_US en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X alsa berkdb bzip2 cairo caps cdr cli cracklib crypt dbus dri dvd exif ffmpeg gdbm gif gpm gtk hal iconv java jpeg lcms midi mmx mp3 mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png python readline reflection session spl sse sse2 ssl svg sysfs theora threads tiff truetype unicode vorbis win32codecs x86 xcb xorg xulrunner zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Boney McCracker 2009-02-14 17:26:20 UTC
Created attachment 182024 [details]
Revised initscript for alsa (proposed)

I have attached a proposed revised initscript.  I have only tested this on one machine.  Sorry for not making a patch, I already trashed the original.

The changes are trivial.
Comment 5 telperion 2009-02-14 19:10:01 UTC
(In reply to comment #4)
> Created an attachment (id=182024) [edit]
> Revised initscript for alsa (proposed)
> 
> I have attached a proposed revised initscript.  I have only tested this on one
> machine.  Sorry for not making a patch, I already trashed the original.
> 
> The changes are trivial.
> 

Work on my system, 
no more "FATAL: Module kernelsnd_mixer_oss not found" etc.


 # emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28.5 i686)
=================================================================
System uname: Linux-2.6.28.5-i686-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-glibc2.0
Timestamp of tree: Sat, 14 Feb 2009 14:15:02 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.7
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi berkdb branding bzip2 cairo cddb cdr cli cracklib crypt css cups dbus dri dts dv dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv id3tag imagemagick inkjar isdnlog jpeg kde lame ldap libnotify libsamplerate mad matroska mdnsresponder-compat midi mikmod mmx mng mp3 mpeg mudflap musepack musicbrainz ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png postscript ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection samba sdl session sndfile soundtouch spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora tiff truetype twolame unicode usb vcd vorbis win32codecs wmf wxwindows x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




Comment 6 Alex Turbov 2009-02-16 17:20:08 UTC
+1 works for me.

(In reply to comment #5)
> (In reply to comment #4)
> > Created an attachment (id=182024) [edit]
> > Revised initscript for alsa (proposed)
> > 
> > I have attached a proposed revised initscript.  I have only tested this on one
> > machine.  Sorry for not making a patch, I already trashed the original.
> > 
> > The changes are trivial.
> > 
> 
> Work on my system, 
> no more "FATAL: Module kernelsnd_mixer_oss not found" etc.
> 
> 
>  # emerge --info
> Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.3.3,
> glibc-2.9_p20081201-r1, 2.6.28.5 i686)
> =================================================================
> System uname:
> Linux-2.6.28.5-i686-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-glibc2.0
> Timestamp of tree: Sat, 14 Feb 2009 14:15:02 +0000
> app-shells/bash:     3.2_p48-r1
> dev-java/java-config: 1.3.7-r1, 2.1.7
> dev-lang/python:     2.5.4-r2
> dev-python/pycrypto: 2.0.1-r6
> dev-util/cmake:      2.6.2-r1
> sys-apps/baselayout: 2.0.0
> sys-apps/openrc:     0.4.3-r1
> sys-apps/sandbox:    1.3.7
> sys-devel/autoconf:  2.13, 2.63
> sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
> sys-devel/binutils:  2.19.1
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6a
> virtual/os-headers:  2.6.28-r1
> ACCEPT_KEYWORDS="x86 ~x86"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O2 -march=i686 -pipe"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
> /usr/kde/3.5/shutdown /usr/share/config"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
> /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
> CXXFLAGS="-O2 -march=i686 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms
> strict unmerge-orphans userfetch"
> GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
> http://ftp.uni-erlangen.de/pub/mirrors/gentoo
> http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
> LANG="it_IT.UTF-8"
> LDFLAGS="-Wl,-O1"
> LINGUAS="it"
> MAKEOPTS="-j3"
> PKGDIR="/usr/portage/packages"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
> --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/usr/local/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="X a52 aac acl acpi alsa avahi berkdb branding bzip2 cairo cddb cdr cli
> cracklib crypt css cups dbus dri dts dv dvd dvdr dvdread eds emboss encode esd
> evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal
> iconv id3tag imagemagick inkjar isdnlog jpeg kde lame ldap libnotify
> libsamplerate mad matroska mdnsresponder-compat midi mikmod mmx mng mp3 mpeg
> mudflap musepack musicbrainz ncurses nls nptl nptlonly ogg opengl openmp pam
> pcre pdf perl png postscript ppds pppd pulseaudio python qt3 qt3support qt4
> quicktime readline reflection samba sdl session sndfile soundtouch spell spl
> sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora tiff truetype
> twolame unicode usb vcd vorbis win32codecs wmf wxwindows x264 x86 xcb xml xorg
> xulrunner xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw
> asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
> lfloat linear meter mmap_emul mulaw multi null plug rate route share shm
> softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
> authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile
> authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate
> dir disk_cache env expires ext_filter file_cache filter headers include info
> log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
> status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
> INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
> cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it"
> USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
> PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 
Comment 7 Rafał Mużyło 2009-02-16 21:15:12 UTC
*** Bug 259271 has been marked as a duplicate of this bug. ***
Comment 8 Henning Rogge 2009-02-16 21:37:46 UTC
I had the same problem, the attached init.d file works for me.
Comment 9 Zac Medico gentoo-dev 2009-02-17 00:51:12 UTC
Created attachment 182295 [details, diff]
modify sed expression to parse module-init-tools-3.6 `modprobe -l` output

(In reply to comment #4)
> Created an attachment (id=182024) [edit]
> Revised initscript for alsa (proposed)

This is that same as the changes attached in comment #4, but in unified diff format. I have only tested it with module-init-tools-3.6, so I'm not sure if this change is compatible with earlier versions.
Comment 10 Boney McCracker 2009-02-17 03:02:36 UTC
Maybe somebody can come up with a way to satisfy the requirement for a "terminate()" function (so we can actually unload sound modules)?

:p
Comment 11 Mike Auty (RETIRED) gentoo-dev 2009-02-20 22:48:59 UTC
*** Bug 258496 has been marked as a duplicate of this bug. ***
Comment 12 Dennis Schridde 2009-02-21 12:48:25 UTC
Created attachment 182726 [details, diff]
Init script I am using now

This is the init script I am using now. It is improved in the way that it does not at all modify the module line (as given by modprobe -l) when the regexp does not match. I think this should ease debugging in the future.
Comment 13 Tony Vroon (RETIRED) gentoo-dev 2009-02-21 16:18:09 UTC
+*alsa-utils-1.0.19-r1 (21 Feb 2009)
+
+  21 Feb 2009; <chainsaw@gentoo.org> +files/alsasound-1.0.19-r1.initd,
+  +alsa-utils-1.0.19-r1.ebuild:
+  Incorporate changes suggested by Dennis <lindevel@gmx.net> to repair the
+  module loading regexes after module-init-tools 3.6 broke them. Closes bug
+  #258930.

Your contribution to Gentoo Linux is highly appreciated.
Comment 14 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-02-23 19:06:05 UTC
*** Bug 260039 has been marked as a duplicate of this bug. ***