[oe-commits] Alexandru-Cezar Sardan : libgcc: make sure symlinks are created in a valid directory

git at git.openembedded.org git at git.openembedded.org
Fri Mar 7 14:52:27 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: ea297e807f4f84c281e0f8c6c4470ee3f3fa949b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ea297e807f4f84c281e0f8c6c4470ee3f3fa949b

Author: Alexandru-Cezar Sardan <alexandru.sardan at freescale.com>
Date:   Mon Mar  3 19:45:38 2014 +0200

libgcc: make sure symlinks are created in a valid directory

When adding extra symlinks, we have to make sure that the directory
that the links are created in is valid. Added a check for this.

This is an incremental addition to commit
97f2a81d6796ddaf7bbaab86c2ab9039673c732c

Signed-off-by: Alexandru-Cezar Sardan <alexandru.sardan at freescale.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-devtools/gcc/libgcc.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/libgcc.inc b/meta/recipes-devtools/gcc/libgcc.inc
index b185660..96f1969 100644
--- a/meta/recipes-devtools/gcc/libgcc.inc
+++ b/meta/recipes-devtools/gcc/libgcc.inc
@@ -150,7 +150,7 @@ python do_extra_symlinks() {
     if targetsysnoext != d.getVar('TARGET_SYS', True):
         dest = d.getVar('D', True) + d.getVar('libdir', True) + '/' + targetsysnoext
         src = d.getVar('TARGET_SYS', True)
-        if not os.path.lexists(dest):
+        if not os.path.lexists(dest) and os.path.lexists(d.getVar('D', True) + d.getVar('libdir', True)):
             os.symlink(src, dest)
 }
 



More information about the Openembedded-commits mailing list