All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Problems compiling any 2.6.x UML
@ 2004-09-02 15:28 Dominik Jürgens
  2004-09-02 16:02 ` Ralph Paßgang
  2004-09-03 18:02 ` p g
  0 siblings, 2 replies; 9+ messages in thread
From: Dominik Jürgens @ 2004-09-02 15:28 UTC (permalink / raw)
  To: user-mode-linux-devel

I have a problem with compiling user-mode-linux on my debian sarge
system. Some importent package versions:
 
Hostkernel 2.6.8.1
gcc (GCC) 3.3.4 (Debian 1:3.3.4-6sarge1)
GNU Make 3.80
GNU binutils version 2.14.90.0.7 20031029 Debian GNU/Linux

Problem: When I try to compile any 2.6.x UML-Kernel I get following
message:

make ARCH=um linux \n
...
<--zip-->
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  MAIN    arch/um/main.o
  LD      vmlinux
/bin/sh: Syntax error: "(" unexpected
  CPP     arch/um/uml.lds.s
gcc -Wl,-T,arch/um/uml.lds.s -static -Wl,--wrap,malloc -Wl,--wrap,free
-Wl,--wrap,calloc \
        -o linux arch/um/main.o vmlinux -L/usr/lib -lutil
/usr/bin/ld:arch/um/uml.lds.s:150: syntax error
collect2: ld returned 1 exit status
make: *** [linux] Fehler 1
</--zip-->

The content of the 'arch/um/uml.lds.s' file arround line 150:
<--zip-->
147:  init.data : { *(init.data) }
148:  .data :
149:  {
150:    . = ALIGN(); /* init_task */
151:    *(.data.init_task)
152:    *(.data)
153:    *(.gnu.linkonce.d*)
154:    CONSTRUCTORS
155:  }
</--zip-->

I googled for it a longer time and found nothing. 

Thanks for helping me :-)
Dominik Juergens



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-02 15:28 [uml-devel] Problems compiling any 2.6.x UML Dominik Jürgens
@ 2004-09-02 16:02 ` Ralph Paßgang
  2004-09-03 18:02 ` p g
  1 sibling, 0 replies; 9+ messages in thread
From: Ralph Paßgang @ 2004-09-02 16:02 UTC (permalink / raw)
  To: user-mode-linux-devel

Hi,

I have builded debian packages for 2.6 umls, or better I made the original 
debian sourcepackage include a 2.6 kernel and compile cleanly.

You can get the source-package at:
deb http://packages.debianbase.de/sources/uml-exp/ ./

and the binaries for sarge at:
deb http://packages.debianbase.de/sarge/i386/uml-exp/ ./

The last version available there is 2.6.8, but I would suggest that you test 
the 2.6.6 package, because I know that this version works without any problem 
on more than just my machine. The 2.6.7 should be fine, too.

I have problems myself with the 2.6.8 package, but I have to take a closer 
look at this, because I don't know if its a debian packaging problem or 
something like this or actually a uml bug. But any of these source packages 
compiles cleanly without any problem.

Ah, before I forget it: with skas patch in the host kernel the umls are 
running very smoothly... Without skas patch the umls sometimes doesn't start 
(diffrent kernel panics).  I don't know why, but I am a bit confussed because 
the uml kernel doesn't always hang at the same point... Maybe there is 
something broken in the uml or in the debian system...

Hope this helps a bit...

--Ralph

Am Donnerstag 02 September 2004 17:28 schrieb Dominik Jürgens:
> I have a problem with compiling user-mode-linux on my debian sarge
> system. Some importent package versions:
>
> Hostkernel 2.6.8.1
> gcc (GCC) 3.3.4 (Debian 1:3.3.4-6sarge1)
> GNU Make 3.80
> GNU binutils version 2.14.90.0.7 20031029 Debian GNU/Linux
>
> Problem: When I try to compile any 2.6.x UML-Kernel I get following
> message:
>
> make ARCH=um linux \n
> ...
> <--zip-->
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
>   KSYM    .tmp_kallsyms1.S
>   AS      .tmp_kallsyms1.o
>   LD      .tmp_vmlinux2
>   KSYM    .tmp_kallsyms2.S
>   AS      .tmp_kallsyms2.o
>   MAIN    arch/um/main.o
>   LD      vmlinux
> /bin/sh: Syntax error: "(" unexpected
>   CPP     arch/um/uml.lds.s
> gcc -Wl,-T,arch/um/uml.lds.s -static -Wl,--wrap,malloc -Wl,--wrap,free
> -Wl,--wrap,calloc \
>         -o linux arch/um/main.o vmlinux -L/usr/lib -lutil
> /usr/bin/ld:arch/um/uml.lds.s:150: syntax error
> collect2: ld returned 1 exit status
> make: *** [linux] Fehler 1
> </--zip-->
>
> The content of the 'arch/um/uml.lds.s' file arround line 150:
> <--zip-->
> 147:  init.data : { *(init.data) }
> 148:  .data :
> 149:  {
> 150:    . = ALIGN(); /* init_task */
> 151:    *(.data.init_task)
> 152:    *(.data)
> 153:    *(.gnu.linkonce.d*)
> 154:    CONSTRUCTORS
> 155:  }
> </--zip-->
>
> I googled for it a longer time and found nothing.
>
> Thanks for helping me :-)
> Dominik Juergens
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-02 15:28 [uml-devel] Problems compiling any 2.6.x UML Dominik Jürgens
  2004-09-02 16:02 ` Ralph Paßgang
@ 2004-09-03 18:02 ` p g
  2004-09-04 12:11   ` Dominik Jürgens
  1 sibling, 1 reply; 9+ messages in thread
From: p g @ 2004-09-03 18:02 UTC (permalink / raw)
  To: dcdom, user-mode-linux-devel

 --- Dominik Jürgens <dcdom@gmx.de> ha scritto: 
> I have a problem with compiling user-mode-linux on
> my debian sarge
> system. Some importent package versions:
>  
> Hostkernel 2.6.8.1
> gcc (GCC) 3.3.4 (Debian 1:3.3.4-6sarge1)
> GNU Make 3.80
> GNU binutils version 2.14.90.0.7 20031029 Debian
> GNU/Linux
> 
> Problem: When I try to compile any 2.6.x UML-Kernel
> I get following
> message:
> 
> make ARCH=um linux \n
> ...
> <--zip-->
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
>   KSYM    .tmp_kallsyms1.S
>   AS      .tmp_kallsyms1.o
>   LD      .tmp_vmlinux2
>   KSYM    .tmp_kallsyms2.S
>   AS      .tmp_kallsyms2.o
>   MAIN    arch/um/main.o
>   LD      vmlinux
> /bin/sh: Syntax error: "(" unexpected
If /bin/sh is not bash, this is the problem.
Also make sure you properly configured your kernel
with make *config ARCH=um
>   CPP     arch/um/uml.lds.s
> gcc -Wl,-T,arch/um/uml.lds.s -static
> -Wl,--wrap,malloc -Wl,--wrap,free
> -Wl,--wrap,calloc \
>         -o linux arch/um/main.o vmlinux -L/usr/lib
> -lutil
> /usr/bin/ld:arch/um/uml.lds.s:150: syntax error
> collect2: ld returned 1 exit status
> make: *** [linux] Fehler 1
> </--zip-->
> 
> The content of the 'arch/um/uml.lds.s' file arround
> line 150:
> <--zip-->
> 147:  init.data : { *(init.data) }
> 148:  .data :
> 149:  {
> 150:    . = ALIGN(); /* init_task */
> 151:    *(.data.init_task)
> 152:    *(.data)
> 153:    *(.gnu.linkonce.d*)
> 154:    CONSTRUCTORS
> 155:  }
> </--zip-->
> 
> I googled for it a longer time and found nothing. 
> 
> Thanks for helping me :-)
> Dominik Juergens
> 
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic
> Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1
> today.
>
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
>  


	

	
		
___________________________________
Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! 
http://companion.yahoo.it


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-03 18:02 ` p g
@ 2004-09-04 12:11   ` Dominik Jürgens
  2004-09-04 14:29     ` Henrik Nordstrom
  2004-09-04 15:37     ` BlaisorBlade
  0 siblings, 2 replies; 9+ messages in thread
From: Dominik Jürgens @ 2004-09-04 12:11 UTC (permalink / raw)
  To: p g; +Cc: user-mode-linux-devel

Thank you very very much, that really fixed the problem!

But why does anyone use the /bin/sh in any script, when he wants to use
the bash? That is in my opinion a very bad fault!!

My /bin/sh was linked to the /bin/dash, not because I linked it, but
anything else! It does not seem to be very failure tolerant to suppose
that /bin/sh is the bash...

Greatings from Braunschweig, Germany
Dominik Jürgens

Am Fr, den 03.09.2004 schrieb p g um 20:02:
>  --- Dominik Jürgens <dcdom@gmx.de> ha scritto: 
> > I have a problem with compiling user-mode-linux on
> > my debian sarge
> > system. Some importent package versions:
> >  
> > Hostkernel 2.6.8.1
> > gcc (GCC) 3.3.4 (Debian 1:3.3.4-6sarge1)
> > GNU Make 3.80
> > GNU binutils version 2.14.90.0.7 20031029 Debian
> > GNU/Linux
> > 
> > Problem: When I try to compile any 2.6.x UML-Kernel
> > I get following
> > message:
> > 
> > make ARCH=um linux \n
> > ...
> > <--zip-->
> >   LD      init/built-in.o
> >   LD      .tmp_vmlinux1
> >   KSYM    .tmp_kallsyms1.S
> >   AS      .tmp_kallsyms1.o
> >   LD      .tmp_vmlinux2
> >   KSYM    .tmp_kallsyms2.S
> >   AS      .tmp_kallsyms2.o
> >   MAIN    arch/um/main.o
> >   LD      vmlinux
> > /bin/sh: Syntax error: "(" unexpected
> If /bin/sh is not bash, this is the problem.
> Also make sure you properly configured your kernel
> with make *config ARCH=um
> >   CPP     arch/um/uml.lds.s
> > gcc -Wl,-T,arch/um/uml.lds.s -static
> > -Wl,--wrap,malloc -Wl,--wrap,free
> > -Wl,--wrap,calloc \
> >         -o linux arch/um/main.o vmlinux -L/usr/lib
> > -lutil
> > /usr/bin/ld:arch/um/uml.lds.s:150: syntax error
> > collect2: ld returned 1 exit status
> > make: *** [linux] Fehler 1
> > </--zip-->
> > 
> > The content of the 'arch/um/uml.lds.s' file arround
> > line 150:
> > <--zip-->
> > 147:  init.data : { *(init.data) }
> > 148:  .data :
> > 149:  {
> > 150:    . = ALIGN(); /* init_task */
> > 151:    *(.data.init_task)
> > 152:    *(.data)
> > 153:    *(.gnu.linkonce.d*)
> > 154:    CONSTRUCTORS
> > 155:  }
> > </--zip-->
> > 
> > I googled for it a longer time and found nothing. 
> > 
> > Thanks for helping me :-)
> > Dominik Juergens
> > 
> > 
> > 
> >
> -------------------------------------------------------
> > This SF.Net email is sponsored by BEA Weblogic
> > Workshop
> > FREE Java Enterprise J2EE developer tools!
> > Get your free copy of BEA WebLogic Workshop 8.1
> > today.
> >
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> > _______________________________________________
> > User-mode-linux-devel mailing list
> > User-mode-linux-devel@lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
> >  
> 
> 
> 	
> 
> 	
> 		
> ___________________________________
> Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! 
> http://companion.yahoo.it
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> User-mode-linux-devel mailing list
> User-mode-linux-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
> 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-04 12:11   ` Dominik Jürgens
@ 2004-09-04 14:29     ` Henrik Nordstrom
  2004-09-04 14:52       ` Dominik Jürgens
  2004-09-04 15:37     ` BlaisorBlade
  1 sibling, 1 reply; 9+ messages in thread
From: Henrik Nordstrom @ 2004-09-04 14:29 UTC (permalink / raw)
  To: Dominik Jürgens; +Cc: p g, user-mode-linux-devel

On Sat, 4 Sep 2004, Dominik [ISO-8859-1] Jürgens wrote:

> But why does anyone use the /bin/sh in any script, when he wants to use
> the bash? That is in my opinion a very bad fault!!

/bin/sh is by UNIX standard a "UNIX compatible shell". It does not need to 
be bash, but it needs to implement the UNIX standard shell syntax.

So any shell script using the UNIX shell syntax should be using /bin/sh

Any shell script explicitly written for bash only shold be using /bin/bash

Assuming /bin/sh understands bash specific extensions to the UNIX shell 
syntax is wrong.

Regards
Henrik


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-04 14:29     ` Henrik Nordstrom
@ 2004-09-04 14:52       ` Dominik Jürgens
  0 siblings, 0 replies; 9+ messages in thread
From: Dominik Jürgens @ 2004-09-04 14:52 UTC (permalink / raw)
  To: Henrik Nordstrom

Am Sa, den 04.09.2004 schrieb Henrik Nordstrom um 16:29:
> On Sat, 4 Sep 2004, Dominik Jürgens wrote:
> 
> > But why does anyone use the /bin/sh in any script, when he wants to use
> > the bash? That is in my opinion a very bad fault!!
> 
> /bin/sh is by UNIX standard a "UNIX compatible shell". It does not need to 
> be bash, but it needs to implement the UNIX standard shell syntax.
O.K!
> 
> So any shell script using the UNIX shell syntax should be using /bin/sh
> 
> Any shell script explicitly written for bash only shold be using /bin/bash

> 
> Assuming /bin/sh understands bash specific extensions to the UNIX shell 
> syntax is wrong.
I thought that any script in the build process uses such an extention,
so I wanted to report this. If not, I agree to you!

> Regards
> Henrik
> 

Dominik Juergens



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-04 12:11   ` Dominik Jürgens
  2004-09-04 14:29     ` Henrik Nordstrom
@ 2004-09-04 15:37     ` BlaisorBlade
  2004-09-04 18:32       ` Matt Zimmerman
  2004-09-05 20:58       ` Paul Wagland
  1 sibling, 2 replies; 9+ messages in thread
From: BlaisorBlade @ 2004-09-04 15:37 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Dominik Jürgens, Matt Zimmerman

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

Alle 14:11, sabato 4 settembre 2004, Dominik Jürgens ha scritto:
> Thank you very very much, that really fixed the problem!
>
> But why does anyone use the /bin/sh in any script, when he wants to use
> the bash? That is in my opinion a very bad fault!!
>
> My /bin/sh was linked to the /bin/dash, not because I linked it, but
> anything else! It does not seem to be very failure tolerant to suppose
> that /bin/sh is the bash...

1) Someone else got a similar problem, because he used a Debian, too, and he 
had /bin/sh -> /bin/dash. Why and when does Debian do this?

2) Well, I'm attaching the patch to fix this.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729

[-- Attachment #2: uml-force-bash.patch --]
[-- Type: text/x-diff, Size: 546 bytes --]



Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
---

 uml-linux-2.6.8.1-paolo/arch/um/Makefile |    2 ++
 1 files changed, 2 insertions(+)

diff -puN arch/um/Makefile~uml-force-bash arch/um/Makefile
--- uml-linux-2.6.8.1/arch/um/Makefile~uml-force-bash	2004-09-04 17:35:39.200314560 +0200
+++ uml-linux-2.6.8.1-paolo/arch/um/Makefile	2004-09-04 17:36:46.871027048 +0200
@@ -5,6 +5,8 @@
 
 ARCH_DIR = arch/um
 OS := $(shell uname -s)
+#We require it or things break.
+SHELL := /bin/bash
 
 filechk_gen_header = $<
 
_

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-04 15:37     ` BlaisorBlade
@ 2004-09-04 18:32       ` Matt Zimmerman
  2004-09-05 20:58       ` Paul Wagland
  1 sibling, 0 replies; 9+ messages in thread
From: Matt Zimmerman @ 2004-09-04 18:32 UTC (permalink / raw)
  To: user-mode-linux-devel

On Sat, Sep 04, 2004 at 05:37:29PM +0200, BlaisorBlade wrote:

> Alle 14:11, sabato 4 settembre 2004, Dominik Jürgens ha scritto:
> > Thank you very very much, that really fixed the problem!
> >
> > But why does anyone use the /bin/sh in any script, when he wants to use
> > the bash? That is in my opinion a very bad fault!!
> >
> > My /bin/sh was linked to the /bin/dash, not because I linked it, but
> > anything else! It does not seem to be very failure tolerant to suppose
> > that /bin/sh is the bash...
> 
> 1) Someone else got a similar problem, because he used a Debian, too, and he 
> had /bin/sh -> /bin/dash. Why and when does Debian do this?

Debian doesn't do this, but Debian users are permitted to do so if they
desire, in order to have a more lightweight /bin/sh.  The only requirement
is that /bin/sh be POSIX compliant, so scripts which specify #!/bin/sh must
be written with only POSIX syntax.

-- 
 - mdz


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [uml-devel] Problems compiling any 2.6.x UML
  2004-09-04 15:37     ` BlaisorBlade
  2004-09-04 18:32       ` Matt Zimmerman
@ 2004-09-05 20:58       ` Paul Wagland
  1 sibling, 0 replies; 9+ messages in thread
From: Paul Wagland @ 2004-09-05 20:58 UTC (permalink / raw)
  To: BlaisorBlade; +Cc: user-mode-linux-devel, Matt Zimmerman, Dominik Jürgens

[-- Attachment #1: Type: text/plain, Size: 1705 bytes --]


On Sep 4, 2004, at 17:37, BlaisorBlade wrote:

> Alle 14:11, sabato 4 settembre 2004, Dominik Jürgens ha scritto:
>> Thank you very very much, that really fixed the problem!
>>
>> But why does anyone use the /bin/sh in any script, when he wants to 
>> use
>> the bash? That is in my opinion a very bad fault!!
>>
>> My /bin/sh was linked to the /bin/dash, not because I linked it, but
>> anything else! It does not seem to be very failure tolerant to suppose
>> that /bin/sh is the bash...
>
> 1) Someone else got a similar problem, because he used a Debian, too, 
> and he
> had /bin/sh -> /bin/dash. Why and when does Debian do this?

Someone has already answered this, but here is a more detailed answer:

When you install the dash package it will ask you if you want to use 
this as your default shell. This should be OK, since dash is posix 
compliant, and if you ask for /bin/sh you should only expect posix 
compliance. Under debian, any package that specifies /bin/sh and then 
uses bash extensions will normally get a level 3 bug raised, which is a 
violation of packaging policy. I.e. Only use /bin/sh if you want a 
posix shell, otherwise use /bin/bash.

As to when, dash is the only package that I know of that will do this 
for you, and then only if you ask it to. Why? Dash is faster than bash, 
and could save up to a second of boot time! ;-) Seriously, some people 
use it to ensure package compliance, some people do it because it seems 
right. I do it because it has a very low overhead, and it helps me to 
ensure that my scripts are cross platform compatible.

> 2) Well, I'm attaching the patch to fix this.

Much appreciated :-)

Cheers,
Paul

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-09-05 21:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-02 15:28 [uml-devel] Problems compiling any 2.6.x UML Dominik Jürgens
2004-09-02 16:02 ` Ralph Paßgang
2004-09-03 18:02 ` p g
2004-09-04 12:11   ` Dominik Jürgens
2004-09-04 14:29     ` Henrik Nordstrom
2004-09-04 14:52       ` Dominik Jürgens
2004-09-04 15:37     ` BlaisorBlade
2004-09-04 18:32       ` Matt Zimmerman
2004-09-05 20:58       ` Paul Wagland

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.