]> code.ossystems Code Review - openembedded-core.git/commit
sstate.bbclass: Check file ownership before doing 'touch -a'
authorNorman Stetter <norman.stetter@garz-fricke.com>
Fri, 25 Sep 2020 11:49:43 +0000 (13:49 +0200)
committerSteve Sakoman <steve@sakoman.com>
Wed, 30 Sep 2020 14:35:15 +0000 (04:35 -1000)
commit8e7bb01564d5b06bcbda402cf4d29d7a0ff170c5
tree6f9dcf11dd2cd272e714c9057f909eee1b410f6d
parentff61cf5777c63a7ebecde5ada1cf01d7bafe265d
sstate.bbclass: Check file ownership before doing 'touch -a'

In contrast to 'touching' a file without parameters 'touch -a' can only be
performed by the file owner. In case of a shared sstate-cache served
locally (e.g. over NFS),  where the user running bitbake is not the
owner of sstate-cache files, even if he has write access on group level,
the sstate_unpack_package task will fail.
Checking if the file is owned by the user before attempting to run
'touch -a' on it solves this.

Signed-off-by: Norman Stetter <norman.stetter@garz-fricke.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f1554e8bd40c640fd58daac18ecf7b458e754109)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/sstate.bbclass