]> code.ossystems Code Review - openembedded-core.git/commit
classes/buildhistory: fix permissions in package file listing
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 26 Aug 2015 13:21:40 +0000 (14:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:38 +0000 (12:34 +0100)
commit1380aa333ed90559f4a24d52aefc52cadb60646c
tree13f4933796c3805fe14eebd9b9747e12e74dca27
parent6f3992728613c39403ef59bbcf1cb67d9e8c526b
classes/buildhistory: fix permissions in package file listing

If we want the correct file permissions to show up here as they would on
the target, we need to run the command under pseudo. Normally we'd set
the fakeroot varflag on the function and that would be enough, but it
turns out that setting fakeroot on a non-task function that you execute
using bb.build.exec_func() isn't working at the moment. Work around this
by simply using FAKEROOTENV and FAKEROOTCMD. Unfortunately that means we
have to duplicate the command for the two cases but I couldn't find a
better means of doing that that actually works.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildhistory.bbclass