1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-04-20 03:31:58 +00:00

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.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Luca Ceresoli
2019-07-23 16:05:13 +00:00
committed by Denys Dmytriyenko
parent 804f108d50
commit 834e7f606d

View File

@@ -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)