[OE-core] [PATCH] adt-installer: do not dereference symlinks when relocating
Laurentiu Palcu
laurentiu.palcu at intel.com
Tue Apr 30 15:02:10 UTC 2013
This was already fixed for meta-toolchain.
[YOCTO #4157]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
---
.../adt-installer/scripts/adt_installer_internal | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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!"
--
1.7.9.5
More information about the Openembedded-core
mailing list