Bug#344008: [Pkg-alsa-devel] Bug#344008: alsa-utils: patch to alsaconf
Juan A. Diaz
juan at linux.org.ar
Tue May 30 07:12:15 UTC 2006
El lun, 29-05-2006 a las 12:35 +0200, Elimar Riesebieter escribió:
> tags wontfix 344008
>
> thanks
>
> On Sun, 28 May 2006 the mental interface of
> Juan A. Diaz told:
>
> > Package: alsa-utils
> > Version: 1.0.11-4
> > Followup-For: Bug #344008
> >
> >
> > alsaconf cannot find the snd-powerpc module, because the expression used
> > in the search does not match.
> [...]
> > --- alsaconf.orig 2006-05-28 18:12:59.000000000 -0500
> > +++ alsaconf 2006-05-28 18:15:12.000000000 -0500
> > @@ -717,7 +717,7 @@
> > #
> > if grep -q MacRISC $PROCFS/cpuinfo; then
> > MODDIR=/lib/modules/`uname -r`
> > - find $MODDIR -name 'snd-powermac' -print | \
> > + find $MODDIR -name 'snd-powermac*' -print | \
> > while read i; do
> > i=${i##*/}
> > i=${i%%.o}
>
> The modules name is snd-powermac, so why do we need an asterisk?
> BTW, works great on my pb without * ;)
>
> Elimar
>
>
you use powerpc for test this problem???
if your see the lines 715 to 727 from /usr/sbin/alsaconf
715 #
716 # PowerMac
717 #
718 if grep -q MacRISC $PROCFS/cpuinfo; then
719 MODDIR=/lib/modules/`uname -r`
720 find $MODDIR -name 'snd-powermac' -print | \
721 while read i; do
722 i=${i##*/}
723 i=${i%%.o}
724 i=${i%%.ko}
725 echo "PowerMac $i" >> $FOUND
726 done
727 fi
1) you can see, this lines are specific for powerpc architecture.
2) in the line 720 look for the module for powerpc named, in my case
"/lib/modules/2.6.15-1-powerpc/kernel/sound/ppc/snd-powermac.ko" but the
name doesn't match with the pattern used, doesn't return results, and
never goes inside of the while (line 721 to 727) and for this reason
doesn't found the module to use.
then if you put the asterisk in the line 720 and then the line look like
"find $MODDIR -name 'snd-powermac*' -print | \"
1) in the line 720 the find returns (in my case)
"/lib/modules/2.6.15-1-powerpc/kernel/sound/ppc/snd-powermac.ko"
2) in the line 721 the variable "i" is assigned the value
"/lib/modules/2.6.15-1-powerpc/kernel/sound/ppc/snd-powermac.ko"
3) in the line 722 cuts the basedir found at left of the filename, this
is "/lib/modules/2.6.15-1-powerpc/kernel/sound/ppc/", and the new value
of "i" is "snd-powermac.ko"
4) in the line 723 cuts the string ".o" from the value of "i", but how
the value of i not finish in ".o" nothing change
5) in the line 724 cuts the string ".ko" from the value of "i", and the
new value of "i" is now "snd-powermac"
6) in the line 725 print the string indicating the module is found :)
the rest is history.
BTW sorry for my english, and hope its helps.
nueces...
--
Juan A. Diaz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
Url : http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20060530/6a8ac757/attachment.pgp
More information about the Pkg-alsa-devel
mailing list