mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
classes: Only enable fakeroot on setscene tasks with packaging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
59df74164d
commit
47cfaec4ea
|
|
@ -485,6 +485,7 @@ python () {
|
|||
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)
|
||||
bb.data.setVarFlag('do_package_setscene', '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)
|
||||
|
|
|
|||
|
|
@ -1096,8 +1096,6 @@ python do_package_setscene () {
|
|||
sstate_setscene(d)
|
||||
}
|
||||
addtask do_package_setscene
|
||||
do_package_setscene[fakeroot] = "1"
|
||||
|
||||
|
||||
# Dummy task to mark when all packaging is complete
|
||||
do_package_write () {
|
||||
|
|
|
|||
|
|
@ -273,7 +273,6 @@ python do_package_write_deb_setscene () {
|
|||
sstate_setscene(d)
|
||||
}
|
||||
addtask do_package_write_deb_setscene
|
||||
do_package_write_deb_setscene[fakeroot] = "1"
|
||||
|
||||
python () {
|
||||
if bb.data.getVar('PACKAGES', d, True) != '':
|
||||
|
|
@ -282,6 +281,7 @@ python () {
|
|||
deps.append('virtual/fakeroot-native:do_populate_sysroot')
|
||||
bb.data.setVarFlag('do_package_write_deb', 'depends', " ".join(deps), d)
|
||||
bb.data.setVarFlag('do_package_write_deb', 'fakeroot', "1", d)
|
||||
bb.data.setVarFlag('do_package_write_deb_setscene', 'fakeroot', "1", d)
|
||||
}
|
||||
|
||||
python do_package_write_deb () {
|
||||
|
|
|
|||
|
|
@ -317,7 +317,6 @@ python do_package_write_ipk_setscene () {
|
|||
sstate_setscene(d)
|
||||
}
|
||||
addtask do_package_write_ipk_setscene
|
||||
do_package_write_ipk_setscene[fakeroot] = "1"
|
||||
|
||||
python () {
|
||||
if bb.data.getVar('PACKAGES', d, True) != '':
|
||||
|
|
@ -326,6 +325,7 @@ python () {
|
|||
deps.append('virtual/fakeroot-native:do_populate_sysroot')
|
||||
bb.data.setVarFlag('do_package_write_ipk', 'depends', " ".join(deps), d)
|
||||
bb.data.setVarFlag('do_package_write_ipk', 'fakeroot', "1", d)
|
||||
bb.data.setVarFlag('do_package_write_ipk_setscene', 'fakeroot', "1", d)
|
||||
}
|
||||
|
||||
python do_package_write_ipk () {
|
||||
|
|
|
|||
|
|
@ -545,6 +545,7 @@ python () {
|
|||
deps.append('virtual/fakeroot-native:do_populate_sysroot')
|
||||
bb.data.setVarFlag('do_package_write_rpm', 'depends', " ".join(deps), d)
|
||||
bb.data.setVarFlag('do_package_write_rpm', 'fakeroot', 1, d)
|
||||
bb.data.setVarFlag('do_package_write_rpm_setscene', 'fakeroot', 1, d)
|
||||
}
|
||||
|
||||
SSTATETASKS += "do_package_write_rpm"
|
||||
|
|
@ -556,7 +557,6 @@ python do_package_write_rpm_setscene () {
|
|||
sstate_setscene(d)
|
||||
}
|
||||
addtask do_package_write_rpm_setscene
|
||||
do_package_write_rpm_setscene[fakeroot] = "1"
|
||||
|
||||
python do_package_write_rpm () {
|
||||
bb.build.exec_func("read_subpackage_metadata", d)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user