From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [RFC][PATCH 2/2] packagedata: Show error when trying to change PE/PV/PR from runtime/pkgdata
Date: Wed, 3 Apr 2013 12:14:34 +0200 [thread overview]
Message-ID: <1364984074-3636-2-git-send-email-Martin.Jansa@gmail.com> (raw)
In-Reply-To: <1364984074-3636-1-git-send-email-Martin.Jansa@gmail.com>
* causes build failure before do_package_write_ipk fails when trying to use wrong WORKDIR
---
meta/classes/packagedata.bbclass | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/meta/classes/packagedata.bbclass b/meta/classes/packagedata.bbclass
index 120cd64..b22458e 100644
--- a/meta/classes/packagedata.bbclass
+++ b/meta/classes/packagedata.bbclass
@@ -1,7 +1,10 @@
python read_subpackage_metadata () {
import oe.packagedata
+ pe = d.getVar('PE', True)
pn = d.getVar('PN', True)
+ pr = d.getVar('PR', True)
+ pv = d.getVar('PV', True)
data = oe.packagedata.read_pkgdata(pn, d)
for key in data.keys():
@@ -14,5 +17,17 @@ python read_subpackage_metadata () {
if sdata[key] != pn:
bb.fatal("Recipe %s is trying to create package %s which was already written by recipe %s. This will cause corruption, please resolve this and only provide the package from one recipe or the other or only build one of the recipes." % (pn, pkg, sdata[key]))
continue
+ if key == "PE":
+ if sdata[key] != pe:
+ bb.fatal("Recipe %s is trying to change PE from '%s' to '%s'. This will cause do_package_write_ipk failing to find right workdir." % (pn, pe, sdata[key]))
+ continue
+ if key == "PV":
+ if sdata[key] != pv:
+ bb.fatal("Recipe %s is trying to change PV from '%s' to '%s'. This will cause do_package_write_ipk failing to find right workdir." % (pn, pv, sdata[key]))
+ continue
+ if key == "PR":
+ if sdata[key] != pr:
+ bb.fatal("Recipe %s is trying to change PR from '%s' to '%s'. This will cause do_package_write_ipk failing to find right workdir." % (pn, pr, sdata[key]))
+ continue
d.setVar(key, sdata[key])
}
--
1.8.1.5
next prev parent reply other threads:[~2013-04-03 10:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 19:26 [PATCH/RFC] netbase: inherit allarch Andreas Oberritter
2013-03-20 20:18 ` Martin Jansa
2013-03-20 20:22 ` Martin Jansa
2013-04-03 10:14 ` [RFC][PATCH 1/2] packagedata: show error when there are multiple pkgdata directories Martin Jansa
2013-04-03 10:14 ` Martin Jansa [this message]
2013-04-04 15:39 ` Martin Jansa
2013-04-04 15:48 ` Paul Eggleton
2013-04-04 15:58 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364984074-3636-2-git-send-email-Martin.Jansa@gmail.com \
--to=martin.jansa@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox