]> code.ossystems Code Review - openembedded-core.git/commit
base.bbclass: use os.path.normpath instead of just comparing WORKDIR and S as strings
authorMartin Jansa <Martin.Jansa@gmail.com>
Fri, 9 Oct 2020 12:58:12 +0000 (14:58 +0200)
committerSteve Sakoman <steve@sakoman.com>
Thu, 28 Jan 2021 14:41:47 +0000 (04:41 -1000)
commitbbc0bdd8e3f839a5f3b398668574fc6b157db381
tree6c75bd92c5ae8e94eb83b7b59941e458e2673780
parent893f6700b21cdd86c05a1eb04f2c4849aca0b6f0
base.bbclass: use os.path.normpath instead of just comparing WORKDIR and S as strings

* cannot use os.path.samefile, because S/B might not exist at this time yet

* there is issue with PSEUDO_IGNORE_PATHS when some recipe sets e.g.
  S = "${WORKDIR}/"
  whole WORKDIR gets added to PSEUDO_IGNORE_PATHS and then the build
  can fail with various strange errors, in my case do_package was
  failing when do_package calls:
  fix_perms(.../1.0-r0/package/etc, 755, 0, 0, /etc)
  and fails with "[Errno 1] Operation not permitted:"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 50b11a61ab29acb8ec990668353e0b7305114628)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/base.bbclass