* problems compiling current CVS
@ 2003-06-02 23:08 Paul Davis
[not found] ` <20030603031534.GA27280@ds0.van.maves.ca>
0 siblings, 1 reply; 6+ messages in thread
From: Paul Davis @ 2003-06-02 23:08 UTC (permalink / raw)
To: alsa-devel
this is with CVS as of this morning (US EST), trying to build alsa-driver
outside a 2.4.20 kernel using:
./cvscompile --with-oss=yes --with-sequencer=yes --with-cards=rme9652,hd
sp,trident
[ ... ]
ake[2]: Entering directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/acor
e/ioctl32'
make[2]: Leaving directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/acor
e/ioctl32'
make -C oss fastdep
make[2]: Entering directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/aco
re/oss'
/bin/sh: ${xtmp:0:5}: bad substitution
make[2]: *** [mixer_oss.c] Error 1
make[2]: Leaving directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/acor
e/oss'
make[1]: *** [_sfdep_oss] Error 2
make[1]: Leaving directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/acor
e'
make: *** [dep] Error 1
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems compiling current CVS
[not found] ` <20030603031534.GA27280@ds0.van.maves.ca>
@ 2003-06-03 3:54 ` Paul Davis
2003-06-03 9:54 ` Takashi Iwai
[not found] ` <20030603034728.GA29666@ds0.van.maves.ca>
[not found] ` <E19N2mg-0008HZ-00@dewey.paralynx.net>
2 siblings, 1 reply; 6+ messages in thread
From: Paul Davis @ 2003-06-03 3:54 UTC (permalink / raw)
To: Matthew Clarke; +Cc: alsa-devel
>This bit:
>
> ${xtmp:0:5}
>
>is a Bash-ism. Normal Bourne shells don't understand this. I'm guessing
>that your system's /bin/sh isn't Bash. You might be able to put a
>
> SHELL=/bin/bash
paul[2846]>which sh
/bin/sh
paul[2847]>ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Aug 16 2000 /bin/sh -> bash
paul[2852]>bash -version
GNU bash, version 1.14.7(1)
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems compiling current CVS
[not found] ` <20030603034728.GA29666@ds0.van.maves.ca>
@ 2003-06-03 4:20 ` Matthew Clarke
0 siblings, 0 replies; 6+ messages in thread
From: Matthew Clarke @ 2003-06-03 4:20 UTC (permalink / raw)
To: alsa-devel
Hmph. My SMTP server is not an open relay or a spam source, even if it
is in an ADSL dynamic IP address pool, thank you very much. <bleep>ing
spammers.
Let's try sending this to alsa-devel again ...
I wrote:
> lundi, le 2 juin, 2003, Paul Davis nous a dit ceci:
>
> > this is with CVS as of this morning (US EST), trying to build alsa-driver
> > outside a 2.4.20 kernel using:
> >
> > ./cvscompile --with-oss=yes --with-sequencer=yes --with-cards=rme9652,hd
> > sp,trident
> >
> > [ ... ]
> >
> > ake[2]: Entering directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/acor
> > e/ioctl32'
> > make[2]: Leaving directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/acor
> > e/ioctl32'
> > make -C oss fastdep
> > make[2]: Entering directory `/usr/local/music/src/alsa-cvs/newer/alsa-driver/aco
> > re/oss'
> > /bin/sh: ${xtmp:0:5}: bad substitution
>
> Hmph. This syntax is in configure now too.
>
> This bit:
>
> ${xtmp:0:5}
>
> is a Bash-ism. Normal Bourne shells don't understand this. I'm guessing
> that your system's /bin/sh isn't Bash. You might be able to put a
>
> SHELL=/bin/bash
>
> line into alsa-driver/acore/oss/Makefile right before the include of
> $(TOPDIR)/Rules.make. (I say "might" because I can't build ALSA right now
> due to a (real) kernel compiler / system compiler mismatch.)
>
> Alternatively, if you have root, you could temporarily replace /bin/sh
> with a symlink to /bin/bash, build, then restore /bin/sh.
>
> Matt.
> --
> For a successful technology, reality must take precedence over public
> relations, for nature cannot be fooled.
> -- Richard P. Feynman
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems compiling current CVS
[not found] ` <E19N2mg-0008HZ-00@dewey.paralynx.net>
@ 2003-06-03 4:38 ` Matthew Clarke
0 siblings, 0 replies; 6+ messages in thread
From: Matthew Clarke @ 2003-06-03 4:38 UTC (permalink / raw)
To: Paul Davis; +Cc: alsa-devel
lundi, le 2 juin, 2003, Paul Davis nous a dit ceci:
> >This bit:
> >
> > ${xtmp:0:5}
> >
> >is a Bash-ism. Normal Bourne shells don't understand this. I'm guessing
> >that your system's /bin/sh isn't Bash. You might be able to put a
> >
> > SHELL=/bin/bash
>
> paul[2846]>which sh
> /bin/sh
> paul[2847]>ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Aug 16 2000 /bin/sh -> bash
> paul[2852]>bash -version
> GNU bash, version 1.14.7(1)
Looks like I guessed wrong. The only system I still have access to with
Bash 1.x on it isn't accessible right now, and the newer ones I do have
access to don't say when the ${foo:0:5} syntax was added.
Dunno why it's not working. You might try bash2, viz.:
------------------------------------------------------------------------------
21:34 [clamat@ds0:~] 168 > /bin/bash -version
GNU bash, version 2.04.0(1)-release (i586-pc-linux-gnu)
Copyright 1999 Free Software Foundation, Inc.
21:35 [clamat@ds0:~] 169 > /bin/bash
bash-2.04$ x=testvalue
bash-2.04$ echo ${x:0:5}
testv
bash-2.04$ exit
21:35 [clamat@ds0:~] 170 >
------------------------------------------------------------------------------
Matt.
--
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
-- Richard P. Feynman
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems compiling current CVS
2003-06-03 3:54 ` Paul Davis
@ 2003-06-03 9:54 ` Takashi Iwai
2003-06-03 12:43 ` Takashi Iwai
0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2003-06-03 9:54 UTC (permalink / raw)
To: Paul Davis; +Cc: Matthew Clarke, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 762 bytes --]
At Mon, 02 Jun 2003 23:54:09 -0400,
Paul Davis wrote:
>
> >This bit:
> >
> > ${xtmp:0:5}
> >
> >is a Bash-ism. Normal Bourne shells don't understand this. I'm guessing
> >that your system's /bin/sh isn't Bash. You might be able to put a
> >
> > SHELL=/bin/bash
>
> paul[2846]>which sh
> /bin/sh
> paul[2847]>ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Aug 16 2000 /bin/sh -> bash
> paul[2852]>bash -version
> GNU bash, version 1.14.7(1)
i'm not sure, too, whether bash1 doesn't support the format above.
anyway, please try the patch attached below. it replaces the function
with sed & co.
(unfortunately, we cannot use $(subst acore,core,$(MODCURDIR)) because
the word "acore" might match inside the pathname.)
Takashi
[-- Attachment #2: old-bash-fix.dif --]
[-- Type: application/octet-stream, Size: 2727 bytes --]
Index: alsa-driver/Rules.make
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/Rules.make,v
retrieving revision 1.26
diff -u -r1.26 Rules.make
--- alsa-driver/Rules.make 2 Jun 2003 10:07:19 -0000 1.26
+++ alsa-driver/Rules.make 3 Jun 2003 09:49:55 -0000
@@ -92,17 +92,10 @@
endif
%.c: %.patch
- @xtmp="$(MODCURDIR)"; \
- if [ "$${xtmp:0:5}" = "acore" ]; then \
- xtmp1=$${xtmp:6} ; \
- if [ ! -z "$${xtmp1}" ]; then xtmp1="$${xtmp1}/" ; fi ; \
- echo "coping file alsa-kernel/core/$${xtmp1}$@"; \
- cp $(TOPDIR)/alsa-kernel/core/$${xtmp1}$@ $@; \
- else \
- echo "Coping file alsa-kernel/core/$${xtmp}/$@"; \
- cp $(TOPDIR)/alsa-kernel/$${xtmp}/$@ $@; \
- fi
- @patch -p0 -i $<
+ @xtmp=`echo $(MODCURDIR) | sed -e 's/^acore/core/'`/$@;\
+ echo "copying file alsa-kernel/$$xtmp";\
+ cp "$(TOPDIR)/alsa-kernel/$$xtmp" $@;\
+ patch -p0 -i $<
%.isapnp: %.c
$(CPP) -C -D__KERNEL__ $(CFLAGS) $(EXTRA_CFLAGS) -D__isapnp_now__ -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) $(CFLAGS_$@) $< | $(TOPDIR)/utils/convert_isapnp_ids > $@
Index: alsa-driver/configure.in
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/configure.in,v
retrieving revision 1.124
diff -u -r1.124 configure.in
--- alsa-driver/configure.in 2 Jun 2003 10:07:19 -0000 1.124
+++ alsa-driver/configure.in 3 Jun 2003 09:29:43 -0000
@@ -210,22 +210,29 @@
dnl
kernel_compiler_type=`echo $kernel_compiler | cut -d ' ' -f 1`
kernel_compiler_version=`echo $kernel_compiler | cut -d ' ' -f 2`
-if test "${kernel_compiler_version:0:5}" = "egcs-"; then
+case "$kernel_compiler_version" in
+egcs-*)
kernel_compiler_type="egcs"
- kernel_compiler_version=`echo ${kernel_compiler_version:5} | cut -d ' ' -f 1`
-fi
-if test "${my_compiler:0:4}" = "gcc-"; then
+ kernel_compiler_version=`echo "$kernel_compiler_version" | cut -b 6-`
+ ;;
+esac
+case "$my_compiler" in
+gcc-*)
my_compiler_type="gcc"
- my_compiler_version=`echo ${my_compiler:4} | cut -d ' ' -f 1`
-else
- if test "${my_compiler:0:5}" = "egcs-"; then
+ my_compiler_version=`echo "$my_compiler" | cut -b 5-`
+ ;;
+*)
+ case "$my_compiler" in
+ egcs-*)
my_compiler_type="egcs"
- my_compiler_version=`echo ${my_compiler:5} | cut -d ' ' -f 1`
- else
+ my_compiler_version=`echo "$my_compiler" | cut -b 6-`
+ ;;
+ *)
my_compiler_type=`echo $my_compiler | cut -d ' ' -f 1`
- my_compiler_version=`echo $my_compiler | cut -d ' ' -f 3`
- fi
-fi
+ my_compiler_version=`echo "$my_compiler" | cut -d ' ' -f 3`
+ ;;
+ esac
+esac
if test "$my_compiler_type" = "$my_compiler_version"; then
my_compiler_type="gcc"
fi
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems compiling current CVS
2003-06-03 9:54 ` Takashi Iwai
@ 2003-06-03 12:43 ` Takashi Iwai
0 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2003-06-03 12:43 UTC (permalink / raw)
To: Paul Davis; +Cc: Matthew Clarke, alsa-devel
At Tue, 03 Jun 2003 11:54:01 +0200,
私 wrote:
>
> [1 <text/plain; US-ASCII (7bit)>]
> At Mon, 02 Jun 2003 23:54:09 -0400,
> Paul Davis wrote:
> >
> > >This bit:
> > >
> > > ${xtmp:0:5}
> > >
> > >is a Bash-ism. Normal Bourne shells don't understand this. I'm guessing
> > >that your system's /bin/sh isn't Bash. You might be able to put a
> > >
> > > SHELL=/bin/bash
> >
> > paul[2846]>which sh
> > /bin/sh
> > paul[2847]>ls -l /bin/sh
> > lrwxrwxrwx 1 root root 4 Aug 16 2000 /bin/sh -> bash
> > paul[2852]>bash -version
> > GNU bash, version 1.14.7(1)
>
> i'm not sure, too, whether bash1 doesn't support the format above.
> anyway, please try the patch attached below. it replaces the function
> with sed & co.
btw, the patch was already checked in to cvs.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-06-03 12:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-02 23:08 problems compiling current CVS Paul Davis
[not found] ` <20030603031534.GA27280@ds0.van.maves.ca>
2003-06-03 3:54 ` Paul Davis
2003-06-03 9:54 ` Takashi Iwai
2003-06-03 12:43 ` Takashi Iwai
[not found] ` <20030603034728.GA29666@ds0.van.maves.ca>
2003-06-03 4:20 ` Matthew Clarke
[not found] ` <E19N2mg-0008HZ-00@dewey.paralynx.net>
2003-06-03 4:38 ` Matthew Clarke
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.