All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toaster: resolve missing 'native[sdk]:' prefixes
@ 2017-01-20 21:18 Reyna, David
  2017-01-23 16:50 ` Joshua Lock
  0 siblings, 1 reply; 13+ messages in thread
From: Reyna, David @ 2017-01-20 21:18 UTC (permalink / raw)
  To: toaster@yoctoproject.org, AVERY, BRIAN

Some task events are missing the 'virtual:native[sdk]:' prefixes.
The Toaster has code to help match missing prefixes, but needs
additional help resolving between 'native:' and 'nativesdk:', by
way of the '_package' event field.

[YOCTO #10849]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 5ed150d..f1fc551 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1258,6 +1258,15 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
                 if len(candidates) == 1:
                     identifier = candidates[0]
+                # break tie if missing 'native[sdk]:' prefix
+                if (len(candidates) == 2) and hasattr(event,'_package'):
+                    if (0 <= str(event._package).find('native-')):
+                        identifier = 'native:' + identifier
+                    if (0 <= str(event._package).find('nativesdk-')):
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [PATCH] toaster: resolve missing 'native[sdk]:' prefixes
@ 2017-02-15  6:04 Reyna, David
  2017-02-15 17:03 ` Joshua Lock
  0 siblings, 1 reply; 13+ messages in thread
From: Reyna, David @ 2017-02-15  6:04 UTC (permalink / raw)
  To: toaster@yoctoproject.org, LOCK, JOSHUA

From da520beb19ee6a49178ae1181d12d088017acaf1 Mon Sep 17 00:00:00 2001
From: David Reyna <David.Reyna@windriver.com>
Date: Tue, 14 Feb 2017 20:56:30 -0800
Subject: [PATCH] toaster: resolve missing 'native[sdk]:' prefixes

Some task events are missing the 'virtual:native[sdk]:' prefixes.
The Toaster has code to help match missing prefixes, but needs
additional help resolving between 'native:' and 'nativesdk:', by
way of the '_package' event field.

[YOCTO #10849]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 5ed150d..dee40c4 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1258,6 +1258,15 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
                 if len(candidates) == 1:
                     identifier = candidates[0]
+                # break tie if missing 'native[sdk]:' prefix
+                if (len(candidates) == 2) and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [PATCH] toaster: resolve missing 'native[sdk]:' prefixes
@ 2017-03-02  0:12 Reyna, David
  0 siblings, 0 replies; 13+ messages in thread
From: Reyna, David @ 2017-03-02  0:12 UTC (permalink / raw)
  To: toaster@yoctoproject.org, AVERY, BRIAN

From b50e74277d8d4556388e34e3e9ed30837e401ae4 Mon Sep 17 00:00:00 2001
From: David Reyna <David.Reyna@windriver.com>
Date: Wed, 1 Mar 2017 15:56:55 -0800
Subject: [PATCH] toaster: resolve missing 'native[sdk]:' prefixes

Some task events are missing the 'virtual:native[sdk]:' prefixes.
The Toaster has code to help match missing prefixes, but needs
additional help resolving between 'native:' and 'nativesdk:', by
way of the '_package' event field.

[YOCTO #10849]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 5ed150d..92d1a1c 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
                 if len(candidates) == 1:
                     identifier = candidates[0]
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread
* [PATCH] toaster: resolve missing 'native[sdk]:' prefixes
@ 2017-03-02  0:24 David Reyna
  2017-03-06 22:05 ` Brian Avery
  0 siblings, 1 reply; 13+ messages in thread
From: David Reyna @ 2017-03-02  0:24 UTC (permalink / raw)
  To: toaster

From: David Reyna <David.Reyna@windriver.com>

Some task events are missing the 'virtual:native[sdk]:' prefixes.
The Toaster has code to help match missing prefixes, but needs
additional help resolving between 'native:' and 'nativesdk:', by
way of the '_package' event field.

[YOCTO #10849]

Signed-off-by: David Reyna <David.Reyna@windriver.com>
---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 5ed150d..92d1a1c 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
                 if len(candidates) == 1:
                     identifier = candidates[0]
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-03-08 15:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20 21:18 [PATCH] toaster: resolve missing 'native[sdk]:' prefixes Reyna, David
2017-01-23 16:50 ` Joshua Lock
  -- strict thread matches above, loose matches on Subject: below --
2017-02-15  6:04 Reyna, David
2017-02-15 17:03 ` Joshua Lock
2017-03-01 16:34   ` Brian Avery
2017-03-01 16:35     ` Reyna, David
2017-03-02  0:12 Reyna, David
2017-03-02  0:24 David Reyna
2017-03-06 22:05 ` Brian Avery
2017-03-06 22:06   ` Reyna, David
2017-03-08  3:23     ` Brian Avery
2017-03-06 22:07   ` Brian Avery
2017-03-08 15:56     ` Reyna, David

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.