From 09ecda80af4e3c6c8767d2241843206d09adea52 Mon Sep 17 00:00:00 2001 From: Paul Osborne Date: Wed, 11 Mar 2015 00:10:58 -0500 Subject: [PATCH] rust: replace pushd usage in rust do_install In dizzy, the following error was encountered when running do_install on the rust recipe: pushd: not found According to the bitbake user manual, /bin/sh is used and bashisms (like pushd) should be avoided. In my case, /bin/sh turns out to be zsh (with no extra configuration, so pushd is not present). Signed-off-by: Paul Osborne --- recipes/rust/rust.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/recipes/rust/rust.inc b/recipes/rust/rust.inc index 9ce3fe6..3a93392 100644 --- a/recipes/rust/rust.inc +++ b/recipes/rust/rust.inc @@ -358,9 +358,7 @@ rust_do_install () { ## rust will complain about multiple providers of the runtime libs ## (libstd, libsync, etc.) without this. - pushd "${D}${libdir}" - ln -sf "rustlib/${HOST_SYS}/lib/lib"*.so . - popd + (cd "${D}${libdir}" && ln -sf "rustlib/${HOST_SYS}/lib/lib"*.so .) } do_install () {