[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Patch] /usr/bin/lb does not work for /bin/bash



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I found that /usr/bin/lb (live-build 3.0~a55-1) does not work for /bin/bash.
The problem is on this line:
( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || .
/usr/lib/live/build.sh

Here the problem is:
$ bash -x /usr/bin/lb
+ set -e
+ . /scripts/build.sh
+ true
++ Echo 'utility to build Debian Live systems'
/usr/bin/lb: line 17: Echo: command not found
+ DESCRIPTION=

However, if using dash, no such issue:
$ dash -x /usr/bin/lb
+ set -e
+ . /scripts/build.sh
+ . /usr/lib/live/build.sh
+ [ -e local/live-build ]
+ [ -e /functions/*.sh ]
...

Attached please find a patch for this issue.
My 2 cents.

Steven.

- -- 
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAXT7oACgkQCLPj15didVou5wCdFMZyjn763cHlvrxhOBOOskXY
f+UAmwYHiHNBzN04NtJGW3CaajMaSMLq
=jWEg
-----END PGP SIGNATURE-----

--- lb.orig	2012-07-31 11:05:55.969078102 +0800
+++ lb.new	2012-07-31 11:06:08.677141112 +0800
@@ -11,7 +11,7 @@
 set -e
 
 # Including common functions
-( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || . /usr/lib/live/build.sh
+( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 ) || . /usr/lib/live/build.sh
 
 # Setting static variables
 DESCRIPTION="$(Echo 'utility to build Debian Live systems')"

Reply to: