]> code.ossystems Code Review - openembedded-core.git/commit
base.bbclass: clean up dead symlink when handling hosttools
authorChen Qi <Qi.Chen@windriver.com>
Wed, 25 Dec 2019 07:01:13 +0000 (15:01 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Dec 2019 08:45:02 +0000 (08:45 +0000)
commitb03577cf85784fc052b89083054d911816f8c6e1
treea16929d6f9088cbc3225f97f6345946da46a1372
parent39825cba4761a6b4b2473825705975f9f421ec8b
base.bbclass: clean up dead symlink when handling hosttools

When some hosttool is a dead symlink, bitbake any recipe will
fail with error like below.

  FileExistsError: [Errno 17] File exists: '/usr/bin/chrpath' -> '/path/to/builddir/tmp-glibc/hosttools/chrpath'

So we remove dead symlink under hostools/ directory to avoid
such error.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass