Skip to contentSkip to conversation

ti-unpack.inc: abort if 32 bit libs are not installed

PATCH New Luca Ceresoli 1 participant 1 message Jul 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-unpack.inc: abort if 32 bit libs are not installed

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.

---
 recipes-ti/includes/ti-unpack.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-ti/includes/ti-unpack.inc +1 -1
index dbc4949..81fcf6a 100644
@@ -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)
Signature · 1 line
2.7.4