mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 18:53:13 +01:00
base.bbclass: Enable fakeroot (pseudo) usage during install and packaging
Use the virtual fakeroot program when installing a package and also during packaging. This is important as it allows us to track full permissions, owners, groups and special files generated by packages. Signed-off-by: Mark Hatle <mhatle@windriver.com>
This commit is contained in:
@@ -453,6 +453,17 @@ do_build[func] = "1"
|
||||
python () {
|
||||
import exceptions
|
||||
|
||||
# If we're building a target package we need to use fakeroot (pseudo)
|
||||
# in order to capture permissions, owners, groups and special files
|
||||
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
|
||||
deps = (bb.data.getVarFlag('do_install', 'depends', d) or "").split()
|
||||
deps.append('virtual/fakeroot-native:do_populate_sysroot')
|
||||
bb.data.setVarFlag('do_install', 'depends', " ".join(deps),d)
|
||||
bb.data.setVarFlag('do_install', 'fakeroot', 1, d)
|
||||
deps = (bb.data.getVarFlag('do_package', 'depends', d) or "").split()
|
||||
deps.append('virtual/fakeroot-native:do_populate_sysroot')
|
||||
bb.data.setVarFlag('do_package', 'depends', " ".join(deps),d)
|
||||
bb.data.setVarFlag('do_package', 'fakeroot', 1, d)
|
||||
source_mirror_fetch = bb.data.getVar('SOURCE_MIRROR_FETCH', d, 0)
|
||||
if not source_mirror_fetch:
|
||||
need_host = bb.data.getVar('COMPATIBLE_HOST', d, 1)
|
||||
|
||||
Reference in New Issue
Block a user