[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4958/8267] guile: fix a bashism
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 4958/8267] guile: fix a bashism
- Date: Sun, 17 Dec 2017 02:45:59 +0000 (UTC)
commit 0808926dc297cc45427165feddb2b6568f089bd1
Author: Ming Liu <peter x liu external atlascopco com>
Date: Fri Feb 24 12:57:31 2017 +0100
guile: fix a bashism
A following flaw was detected by verify-bashisms script:
......
meta/recipes-devtools/guile/guile_2.0.13.bb
possible bashism in guile_cross_config line 94 ($'...' should be "$(printf '...')"):
echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define %guile-build-info
'\'\( \
> ${B}/guile-config.cross
......
Fixed by removing $'...' from echo command, using a printf instead.
(From OE-Core rev: 7b73fbc64fe087098b9d1744aeb781eede355f12)
Signed-off-by: Ming Liu <peter x liu external atlascopco com>
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/recipes-devtools/guile/guile_2.0.14.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meta/recipes-devtools/guile/guile_2.0.14.bb b/meta/recipes-devtools/guile/guile_2.0.14.bb
index e0350e4..d2306e6 100644
--- a/meta/recipes-devtools/guile/guile_2.0.14.bb
+++ b/meta/recipes-devtools/guile/guile_2.0.14.bb
@@ -90,7 +90,7 @@ guile_cross_config() {
then
# Create guile-config returning target values instead of native values
install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}
- echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define
%guile-build-info '\'\( \
+ printf '#!%s \\\n--no-auto-compile -e main -s\n!#\n(define %%guile-build-info %s(\n' $(which
${BUILD_SYS}-guile) "'" \
> ${B}/guile-config.cross
sed -n -e 's:^[ \t]*{[ \t]*": (:' \
-e 's:",[ \t]*": . ":' \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]