* [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe
@ 2011-06-20 9:51 Mei Lei
2011-06-20 9:51 ` [PATCH 1/1] distrodata.bbclass: Get the extend recipe's information from non bbextended recipe Mei Lei
2011-06-30 3:53 ` [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Mei Lei @ 2011-06-20 9:51 UTC (permalink / raw)
To: openembedded-core
Hi Saul,
This patch will fix the issue that "native" and "nativesdk" and some other extend recipes colud not get some information(like matainer information or laskchecktime).
Please review it.
Thanks,
Lei
The following changes since commit 2163461ec94528ecf046a04edc5db3d2dd3a6b8b:
Tom Zanussi (1):
systemtap: remove non-core COMPATIBLE_MACHINES
are available in the git repository at:
git://git.pokylinux.org/poky-contrib lmei3/distrodata
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lmei3/distrodata
Mei Lei (1):
distrodata.bbclass: Get the extend recipe's information from non
bbextended recipe
meta/classes/distrodata.bbclass | 46 ++++++++++++++++++++++++++++-----------
1 files changed, 33 insertions(+), 13 deletions(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] distrodata.bbclass: Get the extend recipe's information from non bbextended recipe
2011-06-20 9:51 [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe Mei Lei
@ 2011-06-20 9:51 ` Mei Lei
2011-06-30 3:53 ` [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Mei Lei @ 2011-06-20 9:51 UTC (permalink / raw)
To: openembedded-core
This patch will check whether the recipe is an extened recipe, if yes, some informaiton couldn't be got, so collect those information(like maintainer information or lastcheckversion) from non bbextended recipe.
Signed-off-by: Mei Lei <lei.mei@intel.com>
---
meta/classes/distrodata.bbclass | 46 ++++++++++++++++++++++++++++-----------
1 files changed, 33 insertions(+), 13 deletions(-)
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index f24cff8..e91200d 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -215,6 +215,7 @@ python checkpkg_eventhandler() {
addtask checkpkg
do_checkpkg[nostamp] = "1"
python do_checkpkg() {
+ localdata = bb.data.createCopy(d)
import sys
import re
import tempfile
@@ -435,18 +436,38 @@ python do_checkpkg() {
"""generate package information from .bb file"""
pname = bb.data.getVar('PN', d, True)
- pdesc = bb.data.getVar('DESCRIPTION', d, True)
- pgrp = bb.data.getVar('SECTION', d, True)
- pversion = bb.data.getVar('PV', d, True)
- plicense = bb.data.getVar('LICENSE', d, True)
- psection = bb.data.getVar('SECTION', d, True)
- phome = bb.data.getVar('HOMEPAGE', d, True)
- prelease = bb.data.getVar('PR', d, True)
- ppriority = bb.data.getVar('PRIORITY', d, True)
- pdepends = bb.data.getVar('DEPENDS', d, True)
- pbugtracker = bb.data.getVar('BUGTRACKER', d, True)
- ppe = bb.data.getVar('PE', d, True)
- psrcuri = bb.data.getVar('SRC_URI', d, True)
+
+ if pname.find("-native") != -1:
+ pnstripped = pname.split("-native")
+ bb.note("Native Split: %s" % pnstripped)
+ bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
+ bb.data.update_data(localdata)
+
+ if pname.find("-cross") != -1:
+ pnstripped = pname.split("-cross")
+ bb.note("cross Split: %s" % pnstripped)
+ bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
+ bb.data.update_data(localdata)
+
+ if pname.find("-initial") != -1:
+ pnstripped = pname.split("-initial")
+ bb.note("initial Split: %s" % pnstripped)
+ bb.data.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + bb.data.getVar('OVERRIDES', d, True), localdata)
+ bb.data.update_data(localdata)
+
+ pdesc = bb.data.getVar('DESCRIPTION', localdata, True)
+ pgrp = bb.data.getVar('SECTION', localdata, True)
+ pversion = bb.data.getVar('PV', localdata, True)
+ plicense = bb.data.getVar('LICENSE', localdata, True)
+ psection = bb.data.getVar('SECTION', localdata, True)
+ phome = bb.data.getVar('HOMEPAGE', localdata, True)
+ prelease = bb.data.getVar('PR', localdata, True)
+ ppriority = bb.data.getVar('PRIORITY', localdata, True)
+ pdepends = bb.data.getVar('DEPENDS', localdata, True)
+ pbugtracker = bb.data.getVar('BUGTRACKER', localdata, True)
+ ppe = bb.data.getVar('PE', localdata, True)
+ psrcuri = bb.data.getVar('SRC_URI', localdata, True)
+ maintainer = bb.data.getVar('RECIPE_MAINTAINER', localdata, True)
found = 0
for uri in src_uri.split():
@@ -616,7 +637,6 @@ python do_checkpkg() {
else:
pmstatus = "UPDATE"
- maintainer = bb.data.getVar('RECIPE_MAINTAINER', d, True)
psrcuri = psrcuri.split()[0]
pdepends = "".join(pdepends.split("\t"))
pdesc = "".join(pdesc.split("\t"))
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe
2011-06-20 9:51 [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe Mei Lei
2011-06-20 9:51 ` [PATCH 1/1] distrodata.bbclass: Get the extend recipe's information from non bbextended recipe Mei Lei
@ 2011-06-30 3:53 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2011-06-30 3:53 UTC (permalink / raw)
To: openembedded-core
On 06/20/2011 02:51 AM, Mei Lei wrote:
> Hi Saul,
> This patch will fix the issue that "native" and "nativesdk" and some other extend recipes colud not get some information(like matainer information or laskchecktime).
> Please review it.
>
> Thanks,
> Lei
>
> The following changes since commit 2163461ec94528ecf046a04edc5db3d2dd3a6b8b:
> Tom Zanussi (1):
> systemtap: remove non-core COMPATIBLE_MACHINES
>
> are available in the git repository at:
>
> git://git.pokylinux.org/poky-contrib lmei3/distrodata
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lmei3/distrodata
>
> Mei Lei (1):
> distrodata.bbclass: Get the extend recipe's information from non
> bbextended recipe
>
> meta/classes/distrodata.bbclass | 46 ++++++++++++++++++++++++++++-----------
> 1 files changed, 33 insertions(+), 13 deletions(-)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
Pulled into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-30 3:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 9:51 [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe Mei Lei
2011-06-20 9:51 ` [PATCH 1/1] distrodata.bbclass: Get the extend recipe's information from non bbextended recipe Mei Lei
2011-06-30 3:53 ` [PATCH 0/1]distrodata.bbclass:Get the extend recipe's information from nonbbextended recipe Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox