]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: some multilib systems have symlink /lib -> /lib64
authorMartin Jansa <martin.jansa@gmail.com>
Thu, 3 Mar 2011 09:39:16 +0000 (10:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Mar 2011 18:49:13 +0000 (10:49 -0800)
* ie gentoo has /lib -> /lib64
* old test assumed only /lib64 -> /lib

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index 13940f81db51a5bcdbfc90d6a5512b69542261d1..433313b54a3f2b6b1e52ba86abd551294e5f7518 100644 (file)
@@ -211,7 +211,7 @@ def check_sanity(e):
     nolibs = data.getVar('NO32LIBS', e.data, True)
     if not nolibs:
         lib32path = '/lib'
-        if os.path.exists('/lib64') and os.path.islink('/lib64'):
+        if os.path.exists('/lib64') and ( os.path.islink('/lib64') or os.path.islink('/lib') ):
            lib32path = '/lib32'
 
         if os.path.exists('%s/libc.so.6' % lib32path) and not os.path.exists('/usr/include/gnu/stubs-32.h'):