[Bug 1285689] [NEW] wrong sourcing of build.sh with a local live-build branch
Luigi Capriotti
1285689 at bugs.launchpad.net
Thu Feb 27 14:25:37 UTC 2014
Public bug reported:
$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
$ apt-cache policy live-build
live-build:
Installed: 3.0~a57-1ubuntu9
Candidate: 3.0~a57-1ubuntu9
Version table:
*** 3.0~a57-1ubuntu9 0
500 http://it.archive.ubuntu.com/ubuntu/ saucy/main i386 Packages
100 /var/lib/dpkg/status
Most live-build scripts include the following line:
( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || .
/usr/lib/live/build.sh
but that line fails to source build.sh and all the functions file from
the local live-build branch hence builds stop with a syntax error when
evaluating "Echo".
That line on upstream repo is instead implemented with:
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && .
"${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh
which works correctly in both cases.
** Affects: live-build (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to live-build in Ubuntu.
https://bugs.launchpad.net/bugs/1285689
Title:
wrong sourcing of build.sh with a local live-build branch
Status in “live-build” package in Ubuntu:
New
Bug description:
$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10
$ apt-cache policy live-build
live-build:
Installed: 3.0~a57-1ubuntu9
Candidate: 3.0~a57-1ubuntu9
Version table:
*** 3.0~a57-1ubuntu9 0
500 http://it.archive.ubuntu.com/ubuntu/ saucy/main i386 Packages
100 /var/lib/dpkg/status
Most live-build scripts include the following line:
( . "${LIVE_BUILD}/scripts/build.sh" > /dev/null 2>&1 || true ) || .
/usr/lib/live/build.sh
but that line fails to source build.sh and all the functions file from
the local live-build branch hence builds stop with a syntax error when
evaluating "Echo".
That line on upstream repo is instead implemented with:
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && .
"${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh
which works correctly in both cases.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/live-build/+bug/1285689/+subscriptions
More information about the foundations-bugs
mailing list