* [PATCH] sstate: Add detail to shared area warning
@ 2012-10-02 22:00 Saul Wold
2012-10-02 22:00 ` Phil Blundell
0 siblings, 1 reply; 8+ messages in thread
From: Saul Wold @ 2012-10-02 22:00 UTC (permalink / raw)
To: openembedded-core
[YOCTO #3191]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
meta/classes/sstate.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 03f083e..ca50483 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -158,7 +158,7 @@ def sstate_install(ss, d):
if realmatch:
match.append(f)
if match:
- bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
+ bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
# Write out the manifest
f = open(manifest, "w")
--
1.7.9.5
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH] sstate: Add detail to shared area warning
2012-10-02 22:00 [PATCH] sstate: Add detail to shared area warning Saul Wold
@ 2012-10-02 22:00 ` Phil Blundell
2012-10-02 22:06 ` Saul Wold
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Phil Blundell @ 2012-10-02 22:00 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On Tue, 2012-10-02 at 15:00 -0700, Saul Wold wrote:
> - bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
> + bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
That seems potentially misleading: the file that needs fixing isn't
necessarily the one that triggers this warning. What would be ideal
would be to have it output the names of all recipes that have tried to
stage the files in question so that the user can make an informed
decision about which one ought to be putting them there.
p.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] sstate: Add detail to shared area warning
2012-10-02 22:00 ` Phil Blundell
@ 2012-10-02 22:06 ` Saul Wold
2012-10-02 22:05 ` Phil Blundell
2012-10-02 22:11 ` Martin Jansa
2012-10-02 22:20 ` Richard Purdie
2 siblings, 1 reply; 8+ messages in thread
From: Saul Wold @ 2012-10-02 22:06 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
On 10/02/2012 03:00 PM, Phil Blundell wrote:
> On Tue, 2012-10-02 at 15:00 -0700, Saul Wold wrote:
>> - bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
>> + bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
>
> That seems potentially misleading: the file that needs fixing isn't
> necessarily the one that triggers this warning. What would be ideal
> would be to have it output the names of all recipes that have tried to
> stage the files in question so that the user can make an informed
> decision about which one ought to be putting them there.
>
True enough, but we don't have that information at that time, but it
gives more information than we had before, as to which recipe was adding
the files, I guess if I change the wording to something like
"verify" or "check"?
Sau!
> p.
>
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] sstate: Add detail to shared area warning
2012-10-02 22:06 ` Saul Wold
@ 2012-10-02 22:05 ` Phil Blundell
0 siblings, 0 replies; 8+ messages in thread
From: Phil Blundell @ 2012-10-02 22:05 UTC (permalink / raw)
To: Saul Wold; +Cc: openembedded-core
On Tue, 2012-10-02 at 15:06 -0700, Saul Wold wrote:
> On 10/02/2012 03:00 PM, Phil Blundell wrote:
> > On Tue, 2012-10-02 at 15:00 -0700, Saul Wold wrote:
> >> - bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
> >> + bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
> >
> > That seems potentially misleading: the file that needs fixing isn't
> > necessarily the one that triggers this warning. What would be ideal
> > would be to have it output the names of all recipes that have tried to
> > stage the files in question so that the user can make an informed
> > decision about which one ought to be putting them there.
> >
> True enough, but we don't have that information at that time, but it
> gives more information than we had before, as to which recipe was adding
> the files, I guess if I change the wording to something like
> "verify" or "check"?
Yeah, sounds good.
p.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] sstate: Add detail to shared area warning
2012-10-02 22:00 ` Phil Blundell
2012-10-02 22:06 ` Saul Wold
@ 2012-10-02 22:11 ` Martin Jansa
2012-10-02 22:22 ` Richard Purdie
2012-10-02 22:20 ` Richard Purdie
2 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2012-10-02 22:11 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]
On Tue, Oct 02, 2012 at 11:00:53PM +0100, Phil Blundell wrote:
> On Tue, 2012-10-02 at 15:00 -0700, Saul Wold wrote:
> > - bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
> > + bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
>
> That seems potentially misleading: the file that needs fixing isn't
> necessarily the one that triggers this warning. What would be ideal
> would be to have it output the names of all recipes that have tried to
> stage the files in question so that the user can make an informed
> decision about which one ought to be putting them there.
Maybe something like master.list was before
http://git.openembedded.org/openembedded-core/commit/?id=603daf343ad3f18c8adb799e3625ae2a18d94f56
with added recipe name, but that doesn't detect files already
stored in sysroot directly from do_configure/do_compile etc like RP
suspects python recipe is doing in this case.
And yes it does, to use that to compile own extensions later.
do_compile:
install -d ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
install -d ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
install -m 0644 pyconfig.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
install -m 0644 Makefile ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
..
Cheers,
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] sstate: Add detail to shared area warning
2012-10-02 22:11 ` Martin Jansa
@ 2012-10-02 22:22 ` Richard Purdie
2012-10-03 1:00 ` McClintock Matthew-B29882
0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2012-10-02 22:22 UTC (permalink / raw)
To: Martin Jansa; +Cc: Phil Blundell, openembedded-core
On Wed, 2012-10-03 at 00:11 +0200, Martin Jansa wrote:
> On Tue, Oct 02, 2012 at 11:00:53PM +0100, Phil Blundell wrote:
> > On Tue, 2012-10-02 at 15:00 -0700, Saul Wold wrote:
> > > - bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
> > > + bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
> >
> > That seems potentially misleading: the file that needs fixing isn't
> > necessarily the one that triggers this warning. What would be ideal
> > would be to have it output the names of all recipes that have tried to
> > stage the files in question so that the user can make an informed
> > decision about which one ought to be putting them there.
>
> Maybe something like master.list was before
> http://git.openembedded.org/openembedded-core/commit/?id=603daf343ad3f18c8adb799e3625ae2a18d94f56
> with added recipe name, but that doesn't detect files already
We can list any sstate manifest files (tmp/sstate-control) also adding
that file which may or may not have a listing of it. We might as well
just grep those files and print matches.
We are not going back to a master.list file, its a performance headache.
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] sstate: Add detail to shared area warning
2012-10-02 22:22 ` Richard Purdie
@ 2012-10-03 1:00 ` McClintock Matthew-B29882
0 siblings, 0 replies; 8+ messages in thread
From: McClintock Matthew-B29882 @ 2012-10-03 1:00 UTC (permalink / raw)
To: Richard Purdie
Cc: Phil Blundell, Martin Jansa,
openembedded-core@lists.openembedded.org
On Tue, Oct 2, 2012 at 5:22 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2012-10-03 at 00:11 +0200, Martin Jansa wrote:
>> On Tue, Oct 02, 2012 at 11:00:53PM +0100, Phil Blundell wrote:
>> > On Tue, 2012-10-02 at 15:00 -0700, Saul Wold wrote:
>> > > - bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
>> > > + bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
>> >
>> > That seems potentially misleading: the file that needs fixing isn't
>> > necessarily the one that triggers this warning. What would be ideal
>> > would be to have it output the names of all recipes that have tried to
>> > stage the files in question so that the user can make an informed
>> > decision about which one ought to be putting them there.
>>
>> Maybe something like master.list was before
>> http://git.openembedded.org/openembedded-core/commit/?id=603daf343ad3f18c8adb799e3625ae2a18d94f56
>> with added recipe name, but that doesn't detect files already
>
> We can list any sstate manifest files (tmp/sstate-control) also adding
> that file which may or may not have a listing of it. We might as well
> just grep those files and print matches.
>
> We are not going back to a master.list file, its a performance headache.
I had to do this manually recently, so this error would be very useful ;)
-M
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] sstate: Add detail to shared area warning
2012-10-02 22:00 ` Phil Blundell
2012-10-02 22:06 ` Saul Wold
2012-10-02 22:11 ` Martin Jansa
@ 2012-10-02 22:20 ` Richard Purdie
2 siblings, 0 replies; 8+ messages in thread
From: Richard Purdie @ 2012-10-02 22:20 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
On Tue, 2012-10-02 at 23:00 +0100, Phil Blundell wrote:
> On Tue, 2012-10-02 at 15:00 -0700, Saul Wold wrote:
> > - bb.warn("The recipe is trying to install files into a shared area when those files already exist. Those files are:\n %s" % "\n ".join(match))
> > + bb.warn("The %s recipe is trying to install files into a shared area when those files already exist (please fix %s). Those files are:\n %s" % (d.getVar('PN', True), d.getVar('FILE', True), "\n ".join(match)))
>
> That seems potentially misleading: the file that needs fixing isn't
> necessarily the one that triggers this warning. What would be ideal
> would be to have it output the names of all recipes that have tried to
> stage the files in question so that the user can make an informed
> decision about which one ought to be putting them there.
*if* you can get that information. The python recipe is poking things
into the sysroot outside the knowledge of sstate, then triggering a
warning. We have no way to know who put files there if it wasn't done
through sstate.
This isn't to say we shouldn't improve the message and use the sstate
manifests to find any culprits, just that we can't find an answer in all
cases.
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-10-03 1:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 22:00 [PATCH] sstate: Add detail to shared area warning Saul Wold
2012-10-02 22:00 ` Phil Blundell
2012-10-02 22:06 ` Saul Wold
2012-10-02 22:05 ` Phil Blundell
2012-10-02 22:11 ` Martin Jansa
2012-10-02 22:22 ` Richard Purdie
2012-10-03 1:00 ` McClintock Matthew-B29882
2012-10-02 22:20 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox