Skip to contentSkip to conversation

oestats-client.bbclass: send USERDISTRO value

PATCH In review Petr Štetiar 3 participants 9 messages Oct 16, 2010 – Oct 19, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oestats-client.bbclass: send USERDISTRO value

With this patch it's now possible to see the correct Angstrom distro version in the Tinderbox. Now the distribution value is always 'angstrom', with this patch it would be more detailed version 'angstrom-2008.1' for example.

---
 classes/oestats-client.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
classes/oestats-client.bbclass +1 -1
index 4415461..a98c9d1 100644
@@ -77,7 +77,7 @@ def oestats_start(server, builder, d):
 			'metadata_branch': bb.data.getVar('METADATA_BRANCH', d, True),
 			'metadata_revision': bb.data.getVar('METADATA_REVISION', d, True),
 			'machine': bb.data.getVar('MACHINE', d, True),
-			'distro': bb.data.getVar('DISTRO', d, True),
+			'distro': bb.data.getVar('USERDISTRO', d, True),
 		})
 		if re.match("^\d+$", data): id=data
 	except:
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw

2010/10/16 Petr Štetiar <[email protected]>:

Quoted 20 lines

With this patch it's now possible to see the correct Angstrom distro version in the Tinderbox. Now the distribution value is always 'angstrom', with this patch it would be more detailed version 'angstrom-2008.1' for example.

---
 classes/oestats-client.bbclass |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
classes/oestats-client.bbclass +1 -1
index 4415461..a98c9d1 100644
@@ -77,7 +77,7 @@ def oestats_start(server, builder, d):
                        'metadata_branch': bb.data.getVar('METADATA_BRANCH', d, True),
                        'metadata_revision': bb.data.getVar('METADATA_REVISION', d, True),
                        'machine': bb.data.getVar('MACHINE', d, True),
-                       'distro': bb.data.getVar('DISTRO', d, True),
+                       'distro': bb.data.getVar('USERDISTRO', d, True),
                })
Quoted 5 lines

               if re.match("^\d+$", data): id=data except:
--
1.7.0.4

#2 lore raw
Quoted 9 lines · Frans Meulenbroeks
Quoted 8 lines
classes/oestats-client.bbclass +1 -2
-                       'distro': bb.data.getVar('DISTRO', d, True),
+                       'distro': bb.data.getVar('USERDISTRO', d, True),
               })
               if re.match("^\d+$", data): id=data
       except:
--

1.7.0.4

Is USERDISTRO always guaranteed to be set, or should it fall back to DISTRO?
(haven't checked, I feel lazy, sue me :)

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#3 lore raw

Chris Larson <[email protected]> [2010-10-16 20:12:52]:

Quoted 2 lines

Is USERDISTRO always guaranteed to be set, or should it fall back to DISTRO?
(haven't checked, I feel lazy, sue me :)

ynezz@ntbk:/media/data/devel/oe/ts72xx.git/openembedded/conf$ grep USERDISTRO . -R
./distro/include/kaeilos.inc:USERDISTRO := "${DISTRO}"
./distro/include/kaeilos-2010.inc:USERDISTRO := "${DISTRO}"
./distro/include/angstrom.inc:USERDISTRO := "${DISTRO}"
./bitbake.conf:# USERDISTRO should always contain original DISTRO value as set by user
./bitbake.conf:# overrides like it wants), USERDISTRO must be reassigned with := first
./bitbake.conf:USERDISTRO = "${DISTRO}"

-- ynezz

#4 lore raw
In reply to Chris Larson

2010/10/17 Chris Larson <[email protected]>:

Quoted 11 lines
Quoted 8 lines · Frans Meulenbroeks
Quoted 8 lines

-                       'distro': bb.data.getVar('DISTRO', d, True),
+                       'distro': bb.data.getVar('USERDISTRO', d, True), })
               if re.match("^\d+$", data): id=data
       except:
--
1.7.0.4

Quoted 6 lines
Quoted 1 line

Is USERDISTRO always guaranteed to be set, or should it fall back to DISTRO? (haven't checked, I feel lazy, sue me :)
--

Yes, checked that, before I acked because I also had that concern. It is done in bitbake.conf
see also the grep from Petr

Frans

#5 lore raw

Frans Meulenbroeks <[email protected]> [2010-10-17 12:56:32]:

Quoted 2 lines

Yes, checked that, before I acked because I also had that concern. It is done in bitbake.conf see also the grep from Petr.

Can we get this in just before next testing? Thanks.

-- ynezz

#6 lore raw

2010/10/19 Petr Štetiar <[email protected]>:

Quoted 8 lines

Frans Meulenbroeks <[email protected]> [2010-10-17 12:56:32]:

Quoted 2 lines

Yes, checked that, before I acked because I also had that concern. It is done in bitbake.conf see also the grep from Petr.

Can we get this in just before next testing? Thanks.

-- ynezz

I'm happy to push it when there is a 2nd ack.

Frans

Acked-by
#7 lore raw
In reply to Frans Meulenbroeks
Quoted 31 lines · Frans Meulenbroeks

2010/10/16 Petr Štetiar <[email protected]>:

Quoted 1 line

With this patch it's now possible to see the correct Angstrom distro

version

Quoted 1 line

in the Tinderbox. Now the distribution value is always 'angstrom', with

this

Review

Quoted 8 lines

patch it would be more detailed version 'angstrom-2008.1' for example.

---
 classes/oestats-client.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0

b/classes/oestats-client.bbclass

classes/oestats-client.bbclass def oestats_start(server, builder, d): · line 77

Quoted 5 lines

index 4415461..a98c9d1 100644

classes/oestats-client.bbclass +0 -0
@@ -77,7 +77,7 @@ def oestats_start(server, builder, d):
                       'metadata_branch':

bb.data.getVar('METADATA_BRANCH', d, True),

classes/oestats-client.bbclass def oestats_start(server, builder, d): · line 78

Quoted 1 line
classes/oestats-client.bbclass +0 -0
                       'metadata_revision':

bb.data.getVar('METADATA_REVISION', d, True),

Quoted 9 lines
classes/oestats-client.bbclass +1 -2
                       'machine': bb.data.getVar('MACHINE', d, True),
-                       'distro': bb.data.getVar('DISTRO', d, True),
+                       'distro': bb.data.getVar('USERDISTRO', d, True),
               })
               if re.match("^\d+$", data): id=data
       except:
--

1.7.0.4

Quoted 2 lines
Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics