[meta-ti] [PATCH] ti-unpack.inc: abort if 32 bit libs are not installed

Luca Ceresoli luca at lucaceresoli.net
Tue Jul 23 03:05:13 PDT 2019


ti_bin_do_unpack() detects the absence of the required 32 bit libraries,
but only emits a warning. Later on the build will fail with a mysterious
error.

Fail immediately so the user can clearly read the error message and the
(always appreciated) instructions on how to fix the problem.

Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
---
 recipes-ti/includes/ti-unpack.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-ti/includes/ti-unpack.inc b/recipes-ti/includes/ti-unpack.inc
index dbc4949..81fcf6a 100644
--- a/recipes-ti/includes/ti-unpack.inc
+++ b/recipes-ti/includes/ti-unpack.inc
@@ -24,7 +24,7 @@ python ti_bin_do_unpack() {
     if os.path.exists('/lib64') and (os.path.islink('/lib64') or os.path.islink('/lib') or os.path.exists('/lib32')):
         lib32path = '/lib32'
     if not os.path.exists('%s/libc.so.6' % lib32path) and not os.path.exists('%s/i386-linux-gnu/libc.so.6' % lib32path):
-        bb.warn("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian")
+        bb.fatal("TI installer requires 32bit glibc libraries for proper operation\nrun 'yum install glibc.i686' on Fedora or 'apt-get install libc6:i386' on Ubuntu/Debian")
 
     localdata = bb.data.createCopy(d)
     bb.data.update_data(localdata)
-- 
2.7.4



More information about the meta-ti mailing list