Skip to contentSkip to conversation

971c47c - Do not use $SHELL to invoke our scripts

Qemu-devel Jordan Justen 3 participants 8 messages Aug 13, 2009

lore
Share & tools
lore
#0 lore raw

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04. I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash. The build is okay if I change the first line of configure from /bin/sh to /bin/bash. Should configure point directly at bash?

-Jordan

#1 lore raw
Quoted 7 lines · On Wednesday 12 August 2009 21:01:52 Jordan Justen wrote:

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04. I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash. The build is okay if I change the first line of configure from /bin/sh to /bin/bash. Should configure point directly at bash?

-Jordan

Not unless your goal is to break building on every other OS out there.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#2 lore raw
Quoted 10 lines · Brad
Quoted 7 lines · On Wednesday 12 August 2009 21:01:52 Jordan Justen wrote:

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04.  I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash.  The build is okay if I change the first line of configure from /bin/sh to /bin/bash.  Should configure point directly at bash?

-Jordan

Not unless your goal is to break building on every other OS out there.

So, this is an issue of dash being an inadequate /bin/sh rather than configure being dependent on bash?

Quoted 7 lines

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

#3 lore raw
Quoted 8 lines · On Wednesday 12 August 2009 21:15:25 Jordan Justen wrote:
Quoted 7 lines · Brad
Quoted 6 lines · On Wednesday 12 August 2009 21:01:52 Jordan Justen wrote:

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04.  I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash.  The build is okay if I change the first line of configure from /bin/sh to /bin/bash.  Should configure point directly at bash?

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

-Jordan

Not unless your goal is to break building on every other OS out there.

So, this is an issue of dash being an inadequate /bin/sh rather than configure being dependent on bash?

I cannot comment about dash but configure does not need bash.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#4 lore raw
In reply to Jordan Justen
Quoted 5 lines · Jordan Justen

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04. I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash. The build is okay if I change the first line of configure from /bin/sh to /bin/bash. Should configure point directly at bash?

Please be more specific, what is the error? And FWIW i mainly use ash to run QEMUs configure (and dash is derived from ash as far as i can tell)

Signature · 1 line
mailto:[email protected]
#5 lore raw
Quoted 11 lines · malc
Quoted 5 lines · Jordan Justen

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04.  I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash.  The build is okay if I change the first line of configure from /bin/sh to /bin/bash.  Should configure point directly at bash?

Please be more specific, what is the error? And FWIW i mainly use ash to run QEMUs configure (and dash is derived from ash as far as i can tell)

It seems to only be an issue with dash if I run it as './configure'. 'dash configure' is okay.

With /bin/sh -> bash, if I insert an 'echo $_' before this line in configure:
THISSHELL=${_:-/bin/sh}
then $_ is blank.

With /bin/sh -> dash, 'echo $_' just before that line will show $_ to be './configure'. Therefore THISSHELL becomes './configure', which is obviously invalid.

I'm not sure of a fix yet...

Quoted 4 lines

--
mailto:[email protected]

#6 lore raw
Quoted 20 lines · Jordan Justen
Quoted 11 lines · malc
Quoted 5 lines · Jordan Justen

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04.  I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash.  The build is okay if I change the first line of configure from /bin/sh to /bin/bash.  Should configure point directly at bash?

Please be more specific, what is the error? And FWIW i mainly use ash to run QEMUs configure (and dash is derived from ash as far as i can tell)

It seems to only be an issue with dash if I run it as './configure'. 'dash configure' is okay.

With /bin/sh -> bash, if I insert an 'echo $_' before this line in configure:
THISSHELL=${_:-/bin/sh}
then $_ is blank.

Quoted 5 lines

With /bin/sh -> dash, 'echo $_' just before that line will show $_ to be './configure'. Therefore THISSHELL becomes './configure', which is obviously invalid.

I'm not sure of a fix yet...

Thanks for analysis, i've pushed the "fix" hopefully it would finally put an end to this.

Signature · 1 line
mailto:[email protected]
#7 lore raw

2009/8/12 malc <[email protected]>:

Quoted 22 lines · Jordan Justen
Quoted 21 lines · malc
Quoted 11 lines · Jordan Justen
Quoted 6 lines

Regarding commit 971c47c, this causes a build error for me on Ubuntu 9.04.  I think this might be because Ubuntu/Debian have moved /bin/sh from bash to dash.  The build is okay if I change the first line of configure from /bin/sh to /bin/bash.  Should configure point directly at bash?

Please be more specific, what is the error? And FWIW i mainly use ash to run QEMUs configure (and dash is derived from ash as far as i can tell)

It seems to only be an issue with dash if I run it as './configure'. 'dash configure' is okay.

With /bin/sh -> bash, if I insert an 'echo $_' before this line in configure:
THISSHELL=${_:-/bin/sh}
then $_ is blank.

Quoted 8 lines
Quoted 5 lines

With /bin/sh -> dash, 'echo $_' just before that line will show $_ to be './configure'.  Therefore THISSHELL becomes './configure', which is obviously invalid.

I'm not sure of a fix yet...

Thanks for analysis, i've pushed the "fix" hopefully it would finally put an end to this.

Your new version works well for me. Thanks.

Quoted 3 lines

--
mailto:[email protected]