Patchwork adt-installer: do not dereference symlinks when relocating

login
register
mail settings
Submitter Laurentiu Palcu
Date April 30, 2013, 3:02 p.m.
Message ID <1367334130-8919-1-git-send-email-laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/49153/
State Accepted
Commit 9e9331a4b859c4205c2a0406ab0224ac575e351b
Headers show

Comments

Laurentiu Palcu - April 30, 2013, 3:02 p.m.
This was already fixed for meta-toolchain.

[YOCTO #4157]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 .../adt-installer/scripts/adt_installer_internal   |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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!"