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 <osbpau@gmail.com>
This commit is contained in:
Paul Osborne
2015-03-11 00:10:58 -05:00
parent 61b4d4c989
commit 09ecda80af
+1 -3
View File
@@ -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 () {