package_ipk/deb/rpm: Drop recursive do_build task dependencies
RFC PATCH 1/1 package_ipk/deb/rpm: Drop recursive do_build task dependencies
This is a controversial change which removes the recursive dependencies from the do_build target of packaging tasks of recipes.
Currently this means when you "bitbake <image>" or "bitbake <recipe>", the packaging tasks run for all packaging backends enabled for all recipes in the dependency chain. The same therefore then applies to images.
We don't actually need that, it is a convinience thing. Removing it massively simplifies the task graph and causes much fewer tasks to execute in many common scenarios. It also means less sstate is fetched for example when building an image.
--- meta/classes/package_deb.bbclass | 2 -- meta/classes/package_ipk.bbclass | 2 -- meta/classes/package_rpm.bbclass | 2 -- 3 files changed, 6 deletions(-)
meta/classes/package_deb.bbclass +0 -2
@@ -320,5 +320,3 @@ addtask package_write_deb after do_packagedata do_package PACKAGEINDEXDEPS += "dpkg-native:do_populate_sysroot" PACKAGEINDEXDEPS += "apt-native:do_populate_sysroot" - -do_build[recrdeptask] += "do_package_write_deb"
meta/classes/package_ipk.bbclass +0 -2
@@ -278,5 +278,3 @@ addtask package_write_ipk after do_packagedata do_package PACKAGEINDEXDEPS += "opkg-utils-native:do_populate_sysroot" PACKAGEINDEXDEPS += "opkg-native:do_populate_sysroot" - -do_build[recrdeptask] += "do_package_write_ipk"
meta/classes/package_rpm.bbclass +0 -2
@@ -752,5 +752,3 @@ addtask package_write_rpm after do_packagedata do_package PACKAGEINDEXDEPS += "rpm-native:do_populate_sysroot" PACKAGEINDEXDEPS += "createrepo-c-native:do_populate_sysroot" - -do_build[recrdeptask] += "do_package_write_rpm"
Signature · 1 line
2.32.0
Quoted 4 lines · Richard Purdie
This is a controversial change which removes the recursive dependencies from the
do_buildtarget of packaging tasks of recipes.
Quoted 8 lines
Currently this means when you "bitbake <image>" or "bitbake <recipe>", the packaging tasks run for all packaging backends enabled for all recipes in the dependency chain. The same therefore then applies to images.
We don't actually need that, it is a convinience thing. Removing it massively simplifies the task graph and causes much fewer tasks to execute in many common scenarios. It also means less sstate is fetched for example when building an image.
Faster builds in the common cases seems like a great idea!
If someone really needs the old behavior, is there a mechanism to do the equivalent to what it was doing?
Quoted 44 lines
Signed-off-by Richard Purdie <[email protected]>--- meta/classes/package_deb.bbclass | 2 -- meta/classes/package_ipk.bbclass | 2 -- meta/classes/package_rpm.bbclass | 2 -- 3 files changed, 6 deletions(-)meta/classes/package_deb.bbclass +0
-2@@ -320,5 +320,3 @@ addtask package_write_deb after do_packagedata do_package PACKAGEINDEXDEPS += "dpkg-native:do_populate_sysroot" PACKAGEINDEXDEPS += "apt-native:do_populate_sysroot" - -do_build[recrdeptask] += "do_package_write_deb"meta/classes/package_ipk.bbclass +0
-2@@ -278,5 +278,3 @@ addtask package_write_ipk after do_packagedata do_package PACKAGEINDEXDEPS += "opkg-utils-native:do_populate_sysroot" PACKAGEINDEXDEPS += "opkg-native:do_populate_sysroot" - -do_build[recrdeptask] += "do_package_write_ipk"meta/classes/package_rpm.bbclass +0
-3@@ -752,5 +752,3 @@ addtask package_write_rpm after do_packagedata do_package PACKAGEINDEXDEPS += "rpm-native:do_populate_sysroot" PACKAGEINDEXDEPS += "createrepo-c-native:do_populate_sysroot" - -do_build[recrdeptask] += "do_package_write_rpm" --2.32.0
Quoted 15 lines · Joshua Watt
Quoted 4 lines · Richard Purdie
This is a controversial change which removes the recursive dependencies from the
do_buildtarget of packaging tasks of recipes.Quoted 8 lines
Currently this means when you "bitbake <image>" or "bitbake <recipe>", the packaging tasks run for all packaging backends enabled for all recipes in the dependency chain. The same therefore then applies to images.
We don't actually need that, it is a convinience thing. Removing it massively simplifies the task graph and causes much fewer tasks to execute in many common scenarios. It also means less sstate is fetched for example when building an image.
Quoted 4 lines
Faster builds in the common cases seems like a great idea!
If someone really needs the old behavior, is there a mechanism to do the equivalent to what it was doing?
In this context, "bitbake XXX --runall build" would be equivalent to the current "bitbake XXX".
Cheers,
Richard
Quoted 16 lines · Richard Purdie
Quoted 15 lines · Joshua Watt
Quoted 12 lines · Richard Purdie
This is a controversial change which removes the recursive dependencies from the
do_buildtarget of packaging tasks of recipes.Currently this means when you "bitbake <image>" or "bitbake <recipe>", the packaging tasks run for all packaging backends enabled for all recipes in the dependency chain. The same therefore then applies to images.
We don't actually need that, it is a convinience thing. Removing it massively simplifies the task graph and causes much fewer tasks to execute in many common scenarios. It also means less sstate is fetched for example when building an image.
Quoted 8 lines
Quoted 4 lines
Faster builds in the common cases seems like a great idea!
If someone really needs the old behavior, is there a mechanism to do the equivalent to what it was doing?
In this context, "bitbake XXX --runall build" would be equivalent to the current "bitbake XXX".
This is good, since it can be used to catch packaging issues when not all packages formats are getting built. Will this be the default for the Autobuilder? That would ensure packaging issues are caught?
The --runall should be required for anyone doing updates to ensure that all package formats are being generated correctly for the update.
Sau!
Quoted 8 lines
Cheers,
Richard
Signature · 1 line
Sau!