sstate: add do_package to the noexec list in setscene_depvalid
PATCH 1/2 sstate: add do_package to the noexec list in setscene_depvalid
do_package doesn't exist and are noexec anyway for native/cross/crosssdk packages.
--- meta/classes/sstate.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/sstate.bbclass +1 -1
@@ -710,7 +710,7 @@ def setscene_depvalid(task, taskdependees, notneeded, d): return False continue # Native/Cross packages don't exist and are noexec anyway - if isNativeCross(taskdependees[dep][0]) and taskdependees[dep][1] in ['do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm', 'do_packagedata']: + if isNativeCross(taskdependees[dep][0]) and taskdependees[dep][1] in ['do_package_write_deb', 'do_package_write_ipk', 'do_package_write_rpm', 'do_packagedata', 'do_package']: continue # Consider sysroot depending on sysroot tasks
Signature · 1 line
1.7.1
PATCH 2/2 sstate: remove binutils-crosssdk from safe dependent list
binutils-crosssdk is being depended by other packages like gcc-crosssdk-initial, so it's not safe to be skipped when checking the setscene dependencies in setscene_depvalid().
--- meta/classes/sstate.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/sstate.bbclass +1 -1
@@ -679,7 +679,7 @@ def setscene_depvalid(task, taskdependees, notneeded, d): def isNativeCross(x): return x.endswith("-native") or x.endswith("-cross") or x.endswith("-cross-initial") or x.endswith("-crosssdk") or x.endswith("-crosssdk-initial") def isSafeDep(x): - if x in ["quilt-native", "autoconf-native", "automake-native", "gnu-config-native", "libtool-native", "pkgconfig-native", "gcc-cross", "binutils-cross", "gcc-cross-initial", "gcc-crosssdk", "binutils-crosssdk", "gcc-crosssdk-initial"]: + if x in ["quilt-native", "autoconf-native", "automake-native", "gnu-config-native", "libtool-native", "pkgconfig-native", "gcc-cross", "binutils-cross", "gcc-cross-initial", "gcc-crosssdk", "gcc-crosssdk-initial"]: return True return False def isPostInstDep(x):
Signature · 1 line
1.7.1
Re: [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list
Quoted 3 lines · Ming Liu
binutils-crosssdk is being depended by other packages like gcc-crosssdk-initial, so it's not safe to be skipped when checking the setscene dependencies in
setscene_depvalid().
Can you explain this change a bit more please?
Personally, I think the code is right as it is, if the sstate object exists, it was already compiled and we don't ever need bintuils* so its a 'safe' dep and can be skipped?
Cheers,
Richard
Re: [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list
Quoted 9 lines · Richard Purdie
Quoted 3 lines · Ming Liu
binutils-crosssdk is being depended by other packages like gcc-crosssdk-initial, so it's not safe to be skipped when checking the setscene dependencies in
setscene_depvalid().Can you explain this change a bit more please?
Personally, I think the code is right as it is, if the sstate object exists, it was already compiled and we don't ever need bintuils* so its a 'safe' dep and can be skipped?
Actually I am not very clear about why the binutils-crosssdk should be a build time dependency, because based on my test, it's seems to being required by gcc-crosssdk-initial at runtime, the steps:
bitbake nativesdk-eglibc-initial -c cleansstate
bitbake gcc-crosssdk-initial binutils-crosssdk -c clean
bitbake gcc-crosssdk-initial
bitbake nativesdk-eglibc-initial
the above will fail due to lacking binutils-crosssdk stuff in sysroot.
//Ming Liu
Quoted 7 lines
Cheers,
Richard