* [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod
@ 2013-11-13 18:23 Mike Frysinger
2013-11-13 18:23 ` [PATCH [alsa-utils] 2/2] alsaconf: update gentoo to use modprobe.d method as everyone else Mike Frysinger
2013-11-14 7:53 ` [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod Takashi Iwai
0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2013-11-13 18:23 UTC (permalink / raw)
To: alsa-devel
The m-i-t package made it up to 3.10 versions before ending, so update
the glob to handle those too.
Most distros are moving on to kmod, so we also want to handle the version
string that package outputs.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
alsaconf/alsaconf.in | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in
index 5c23787..59f25d1 100644
--- a/alsaconf/alsaconf.in
+++ b/alsaconf/alsaconf.in
@@ -308,9 +308,11 @@ elif [ "$kernel" = "new" ]; then
cfgout="/etc/modprobe.d/50-sound.conf"
cfgoldout="/etc/modprobe.d/sound"
if [ ! -f $cfgout ]; then
- modver=$(modprobe -V | sed -e's/^module-init-tools version //')
- case "$modver" in
- 3.[789]*)
+ case "$(modprobe -V)" in
+ "module-init-tools version "3.[789]*|\
+ "module-init-tools version "3.1[0-9]*)
+ ;;
+ "kmod version "*)
;;
*)
cfgout="/etc/modprobe.d/sound"
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH [alsa-utils] 2/2] alsaconf: update gentoo to use modprobe.d method as everyone else
2013-11-13 18:23 [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod Mike Frysinger
@ 2013-11-13 18:23 ` Mike Frysinger
2013-11-14 7:53 ` [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2013-11-13 18:23 UTC (permalink / raw)
To: alsa-devel
We migrated off modules.d a long time ago.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
alsaconf/alsaconf.in | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in
index 59f25d1..3d6adca 100644
--- a/alsaconf/alsaconf.in
+++ b/alsaconf/alsaconf.in
@@ -300,9 +300,7 @@ if [ -n "$cfgfile" ]; then
exit 1
fi
else
-if [ "$distribution" = "gentoo" ]; then
- cfgfile="/etc/modules.d/alsa"
-elif [ "$kernel" = "new" ]; then
+if [ "$kernel" = "new" ]; then
cfgfile="/etc/modprobe.conf"
if [ -d /etc/modprobe.d ]; then
cfgout="/etc/modprobe.d/50-sound.conf"
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod
2013-11-13 18:23 [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod Mike Frysinger
2013-11-13 18:23 ` [PATCH [alsa-utils] 2/2] alsaconf: update gentoo to use modprobe.d method as everyone else Mike Frysinger
@ 2013-11-14 7:53 ` Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2013-11-14 7:53 UTC (permalink / raw)
To: Mike Frysinger; +Cc: alsa-devel
At Wed, 13 Nov 2013 13:23:47 -0500,
Mike Frysinger wrote:
>
> The m-i-t package made it up to 3.10 versions before ending, so update
> the glob to handle those too.
>
> Most distros are moving on to kmod, so we also want to handle the version
> string that package outputs.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Thanks, applied both patches.
alsaconf is rarely used nowadays, or better to avoid using, but it's
still good to fix potential issues.
Takashi
> ---
> alsaconf/alsaconf.in | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in
> index 5c23787..59f25d1 100644
> --- a/alsaconf/alsaconf.in
> +++ b/alsaconf/alsaconf.in
> @@ -308,9 +308,11 @@ elif [ "$kernel" = "new" ]; then
> cfgout="/etc/modprobe.d/50-sound.conf"
> cfgoldout="/etc/modprobe.d/sound"
> if [ ! -f $cfgout ]; then
> - modver=$(modprobe -V | sed -e's/^module-init-tools version //')
> - case "$modver" in
> - 3.[789]*)
> + case "$(modprobe -V)" in
> + "module-init-tools version "3.[789]*|\
> + "module-init-tools version "3.1[0-9]*)
> + ;;
> + "kmod version "*)
> ;;
> *)
> cfgout="/etc/modprobe.d/sound"
> --
> 1.8.3.2
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-14 7:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13 18:23 [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod Mike Frysinger
2013-11-13 18:23 ` [PATCH [alsa-utils] 2/2] alsaconf: update gentoo to use modprobe.d method as everyone else Mike Frysinger
2013-11-14 7:53 ` [PATCH [alsa-utils] 1/2] alsaconf: support newer m-i-t and kmod Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).