[oe-commits] Laurentiu Palcu : adt-installer: do not dereference symlinks when relocating

git at git.openembedded.org git at git.openembedded.org
Wed May 22 16:08:53 UTC 2013


Module: openembedded-core.git
Branch: dylan
Commit: 52f3007a57edf4ca8c244271d08d812b62897401
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=52f3007a57edf4ca8c244271d08d812b62897401

Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date:   Tue Apr 30 18:02:10 2013 +0300

adt-installer: do not dereference symlinks when relocating

This was already fixed for meta-toolchain.

[YOCTO #4157]

(From OE-Core master rev: 9e9331a4b859c4205c2a0406ab0224ac575e351b)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../adt-installer/scripts/adt_installer_internal   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
index b80a7ed..4322964 100755
--- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
+++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal
@@ -217,7 +217,7 @@ find $OECORE_NATIVE_SYSROOT -type f -exec file '{}' \;|grep ":.*\(ASCII\|script\
 
 # change all symlinks pointing to /opt/${DISTRO}/${SDK_VERSION}
 for l in $(find $NATIVE_INSTALL_DIR -type l); do
-    $SUDO ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
+    $SUDO ln -sfn $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
 done
 
 echo_info "\nSuccessfully installed selected native ADT!"



More information about the Openembedded-commits mailing list