Buildroot on Ubuntu 6.10
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings:
Just a warning to the buildroot users. The newest Ubuntu (6.10 - released 10/26) has modified /bin/sh. In previous versions /bin/sh was a link to bash. In the newest version it is a link to dash, a smaller, limited function shell based on bash that Debian developed to use on their boot floppies.
Dash is missing a lot of functionality that bash contains, and I've been having a lot of trouble building using it. Ubuntu's claim is that dash is a POSIX shell and that if you needed the additional functionality of bash, you should have used #!/bin/bash instead of #!/bin/sh as the header in your script.
In any event, just changing the /bin/sh link from dash to bash fixed all of my problems with no noticeable problems on the workstation. If you're having problems building on a Ubuntu 6.10 system, that's a good place to start.
- -Scott Reese
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFUS6sS7FYdPX6+iYRAsR1AJoCEPiyV44Jg8DuMT6enNMDOcc2lgCfSpCf +rUBnQADY6gIzTS4n1seeq4=
=BroF
-----END PGP SIGNATURE-----
Quoted 18 lines · Scott Reese
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Greetings:
Just a warning to the buildroot users. The newest Ubuntu (6.10 - released 10/26) has modified
/bin/sh. In previous versions/bin/shwas a link to bash. In the newest version it is a link to dash, a smaller, limited function shell based on bash that Debian developed to use on their boot floppies.Dash is missing a lot of functionality that bash contains, and I've been having a lot of trouble building using it. Ubuntu's claim is that dash is a POSIX shell and that if you needed the additional functionality of bash, you should have used #!/bin/bash instead of #!/bin/sh as the header in your script.
Quoted 7 lines
In any event, just changing the
/bin/shlink from dash to bash fixed all of my problems with no noticeable problems on the workstation. If you're having problems building on a Ubuntu 6.10 system, that's a good place to start.- -Scott Reese
I think a lot of people who write scripts have gotten used to the fact that /bin/sh -> /bin/bash and assume that that's how it's going to be in all systems. It isn't a bad idea to explicitly add #!/bin/bash if you wish to use BASH functionality.
Signature · 4 lines
~ Ashwin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://busybox.net/lists/buildroot/attachments/20061107/d7240a32/attachment.html
Quoted 4 lines · Scott Reese
In any event, just changing the
/bin/shlink from dash to bash fixed all of my problems with no noticeable problems on the workstation. If you're having problems building on a Ubuntu 6.10 system, that's a good place to start.
I'm running ubuntu 6.10 on my box, with /bin/sh pointing to dash, and thus far I've not had any serious problems. If you have specific failures, I'd love to know about them,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons-- -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://busybox.net/lists/buildroot/attachments/20061108/0ac3ed65/attachment.pgp
2006/11/8, Erik Andersen <[email protected]>:
Quoted 9 lines · Scott Reese
Quoted 4 lines
In any event, just changing the
/bin/shlink from dash to bash fixed all of my problems with no noticeable problems on the workstation. If you're having problems building on a Ubuntu 6.10 system, that's a good place to start.I'm running ubuntu 6.10 on my box, with
/bin/shpointing to dash, and thus far I've not had any serious problems.
The same for me. Everything's running fine.
If you have specific failures, I'd love to know about them,
Quoted 1 line
-Erik
Quoted 14 lines
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons-------BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)iD8DBQFFUYzlX5tkPjDTkFcRApL/AKC/krgZ9zBO6elogqm7FqN3/xI8/ACfWAH3 loqdNdI313pZ10Fo/eaaP7Q> =IdN6
-----END PGP SIGNATURE-----
Quoted 6 lines
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20061108/a9f933ea/attachment.html
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Erik Andersen
Quoted 4 lines · Scott Reese
In any event, just changing the
/bin/shlink from dash to bash fixed all of my problems with no noticeable problems on the workstation. If you're having problems building on a Ubuntu 6.10 system, that's a good place to start.I'm running ubuntu 6.10 on my box, with
/bin/shpointing to dash, and thus far I've not had any serious problems. If you have specific failures, I'd love to know about them,
Quoted 5 lines
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
Greetings:
I spent the entire evening trying to reproduce the problem and could not. I was having problems in the binutils build. It was failing to compile the documentation. I'm willing to chalk it up to some other problem with the 6.06->6.10 upgrade. I lost the unifdef package somewhere in the upgrade process, but removing it didn't cause the problem to come back, so that wasn't it.
Sorry to waste everyone's time.
- -Scott
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFUyQBS7FYdPX6+iYRAjRkAKCbSYjX3Nd+/OF9IS1yAtNhkxTQBACcC1BX aFXO97NYL49YGXfqT68GpV4=
=hz03
-----END PGP SIGNATURE-----