From: Olof Johansson <olof.johansson@axis.com>
To: <openembedded-core@lists.openembedded.org>
Subject: PV from filename, not reflected in siginfo?
Date: Mon, 18 Jan 2016 13:44:28 +0100 [thread overview]
Message-ID: <20160118124428.GK31212@axis.com> (raw)
Hi,
I'm currently investigating reports of bitbake not correctly
handling a type of change to a recipe, where the only change is a
filename rename to update the PV.
With bitbake-dumpsigs:
...
Variable PV value is ${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}
Variable PN value is ${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}
...
... with nothing containing the resolved value of PV. I would
expect the computed value of PV to be a part of the siginfo. The
consquence of this seems to be that bitbake doesn't schedule
dependents to be rebuilt, i.e. if I rename the recipe
foo_1.2.3.bb to foo_1.2.4.bb, the recipe foo is rebuilt, but the
image isn't.
I tried some changes:
- Changing the PV assignment in bitbake.conf to :=. Didn't work,
got errors that I suspect are related to not being able to
include foo-${PV}.inc files. The value of PV was clobbered.
Also played around with using BB_FILENAME instead, but didn't
help.
- Changes within Bitbake that assigned the version part of the
filename to PV when loading new files ending with .bb. This
worked but is really ugly.
- Moving the PV assignment into the recipe (as an explicit
assignment). This works, makes dependents build as expected
and bitbake-dumpsigs lists the value, but is also ugly.
I suspect this isn't usually a problem in OE-Core, since most
recipe updates requires updates within the recipe as well
(tarball checksums, for instance), but that's not as true for our
internal recipes.
Is this a known issue? Any ideas on how to solve this? Nicer
workarounds?
Thanks,
--
olofjn
next reply other threads:[~2016-01-18 12:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-18 12:44 Olof Johansson [this message]
2016-01-18 14:37 ` PV from filename, not reflected in siginfo? Richard Purdie
2016-01-18 16:12 ` Olof Johansson
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=20160118124428.GK31212@axis.com \
--to=olof.johansson@axis.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