Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Herbert Xu
On Sat, Sep 30, 2000 at 03:13:02PM +0100, Alan Cox wrote: > > Please replace which with "command -v" which is required by SuS in /bin/sh. > > command -v breaks on some setups. One problem can be seen easily by doing this > > # command -v ls > alias ls='ls --color=tty' .bashrc is only read for

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Miquel van Smoorenburg
In article <[EMAIL PROTECTED]>, Alan Cox <[EMAIL PROTECTED]> wrote: >I'll play with the proposed which based fixes first, unless you have clever >ideas ? Include a script in scripts/kwhich that tells you the path to a certain binary. Below is a simple implementation. If you condense it you can

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Alan Cox
> Please replace which with "command -v" which is required by SuS in /bin/sh. command -v breaks on some setups. One problem can be seen easily by doing this # command -v ls alias ls='ls --color=tty' Because I build kernels with several compilers for several architectures I have gcc aliased,

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Herbert Xu
Alan Cox <[EMAIL PROTECTED]> wrote: > Those distros that use which versions that are alias magic in bash > need this to build 2.2.18pre12 Please replace which with "command -v" which is required by SuS in /bin/sh. -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Petri Kaukasoina
On Sat, Sep 30, 2000 at 01:16:21AM +0100, Alan Cox wrote: > -CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2>/dev/null`" ]; then echo >"`which gcc272`";\ > - else if [ -n "`which kgcc 2>/dev/null`" ]; then echo "`which kgcc`"; else\ > +CC =$(CROSS_COMPILE)$(shell if [ -n "`which

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Peter Samuelson
[AC] > -CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2>/dev/null`" ]; then echo >"`which gcc272`";\ > - else if [ -n "`which kgcc 2>/dev/null`" ]; then echo "`which kgcc`"; else\ > +CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 >/dev/null 2>/dev/null`" ]; >then echo "`which

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Peter Samuelson
[AC] -CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2/dev/null`" ]; then echo "`which gcc272`";\ - else if [ -n "`which kgcc 2/dev/null`" ]; then echo "`which kgcc`"; else\ +CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 /dev/null 2/dev/null`" ]; then echo "`which

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Petri Kaukasoina
On Sat, Sep 30, 2000 at 01:16:21AM +0100, Alan Cox wrote: -CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272 2/dev/null`" ]; then echo "`which gcc272`";\ - else if [ -n "`which kgcc 2/dev/null`" ]; then echo "`which kgcc`"; else\ +CC =$(CROSS_COMPILE)$(shell if [ -n "`which gcc272

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Herbert Xu
Alan Cox [EMAIL PROTECTED] wrote: Those distros that use which versions that are alias magic in bash need this to build 2.2.18pre12 Please replace which with "command -v" which is required by SuS in /bin/sh. -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Alan Cox
Please replace which with "command -v" which is required by SuS in /bin/sh. command -v breaks on some setups. One problem can be seen easily by doing this # command -v ls alias ls='ls --color=tty' Because I build kernels with several compilers for several architectures I have gcc aliased, and

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Alan Cox [EMAIL PROTECTED] wrote: I'll play with the proposed which based fixes first, unless you have clever ideas ? Include a script in scripts/kwhich that tells you the path to a certain binary. Below is a simple implementation. If you condense it you can even

Re: 2.2.18pre12 fix for some distros

2000-09-30 Thread Herbert Xu
On Sat, Sep 30, 2000 at 03:13:02PM +0100, Alan Cox wrote: Please replace which with "command -v" which is required by SuS in /bin/sh. command -v breaks on some setups. One problem can be seen easily by doing this # command -v ls alias ls='ls --color=tty' .bashrc is only read for

Re: 2.2.18pre12 fix for some distros

2000-09-29 Thread Horst von Brand
2.2.18pre12 fix for some distros said: > Those distros that use which versions that are alias magic in bash > need this to build 2.2.18pre12 No dice on Red Hat 6.9.5, it selects cc (and barfs). The unpatched version works. In any case, with "> /dev/null" you are throwing

2.2.18pre12 fix for some distros

2000-09-29 Thread Alan Cox
Those distros that use which versions that are alias magic in bash need this to build 2.2.18pre12 --- Makefile~ Sat Sep 30 00:01:26 2000 +++ MakefileSat Sep 30 00:10:28 2000 @@ -22,8 +22,8 @@ AS =$(CROSS_COMPILE)as LD =$(CROSS_COMPILE)ld -CC =$(CROSS_COMPILE)$(shell if [

2.2.18pre12 fix for some distros

2000-09-29 Thread Alan Cox
Those distros that use which versions that are alias magic in bash need this to build 2.2.18pre12 --- Makefile~ Sat Sep 30 00:01:26 2000 +++ MakefileSat Sep 30 00:10:28 2000 @@ -22,8 +22,8 @@ AS =$(CROSS_COMPILE)as LD =$(CROSS_COMPILE)ld -CC =$(CROSS_COMPILE)$(shell if [

Re: 2.2.18pre12 fix for some distros

2000-09-29 Thread Horst von Brand
2.2.18pre12 fix for some distros said: Those distros that use which versions that are alias magic in bash need this to build 2.2.18pre12 No dice on Red Hat 6.9.5, it selects cc (and barfs). The unpatched version works. In any case, with " /dev/null" you are throwing away the