* [PATCH 1/2] sstate: add do_package to the noexec list in setscene_depvalid
@ 2014-01-07 8:13 Ming Liu
2014-01-07 8:13 ` [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list Ming Liu
0 siblings, 1 reply; 4+ messages in thread
From: Ming Liu @ 2014-01-07 8:13 UTC (permalink / raw)
To: openembedded-core
do_package doesn't exist and are noexec anyway for native/cross/crosssdk
packages.
Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
meta/classes/sstate.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 2b5b7cd..35c3f85 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list
2014-01-07 8:13 [PATCH 1/2] sstate: add do_package to the noexec list in setscene_depvalid Ming Liu
@ 2014-01-07 8:13 ` Ming Liu
2014-01-07 13:58 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Ming Liu @ 2014-01-07 8:13 UTC (permalink / raw)
To: openembedded-core
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().
Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
meta/classes/sstate.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 35c3f85..9d3972f 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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):
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list
2014-01-07 8:13 ` [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list Ming Liu
@ 2014-01-07 13:58 ` Richard Purdie
2014-01-08 6:05 ` Ming Liu
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2014-01-07 13:58 UTC (permalink / raw)
To: Ming Liu; +Cc: openembedded-core
On Tue, 2014-01-07 at 16:13 +0800, Ming Liu wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list
2014-01-07 13:58 ` Richard Purdie
@ 2014-01-08 6:05 ` Ming Liu
0 siblings, 0 replies; 4+ messages in thread
From: Ming Liu @ 2014-01-08 6:05 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On 01/07/2014 09:58 PM, Richard Purdie wrote:
> On Tue, 2014-01-07 at 16:13 +0800, Ming Liu wrote:
>> 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
>
> Cheers,
>
> Richard
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-08 6:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-07 8:13 [PATCH 1/2] sstate: add do_package to the noexec list in setscene_depvalid Ming Liu
2014-01-07 8:13 ` [PATCH 2/2] sstate: remove binutils-crosssdk from safe dependent list Ming Liu
2014-01-07 13:58 ` Richard Purdie
2014-01-08 6:05 ` Ming Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox