From: Detlef Vollmann <dv@vollmann.ch>
To: openembedded-devel@openembedded.org
Subject: Re: BB_STAMP_POLICY
Date: Tue, 03 Jun 2008 00:09:55 +0200 [thread overview]
Message-ID: <48446FB3.8000201@vollmann.ch> (raw)
In-Reply-To: <1212404836.5008.16.camel@dax.rpnet.com>
Richard Purdie wrote:
> The correct solution from a bitbake/OE perspective is to have multiple
> providers, one for set of options combination and to switch between them
> using PREFERRED_PROVIDER.
I understand, and that's why I started that way.
But it starts to explode, and I have some uncomfortable feeling about
breaking changes going unnoticed...
> The biggest challenge you find when doing this is lots of recipes use
> ${PN} internally and by creating a new package you then need to hardcode
> that variable.
Another problem is the hardcoded name of packages inside recipes
(glibc-package.bbclass is a prominent example for that).
> Since thats the main barrier to doing this
I wouldn't say that's the main barrier. It's annoying, but once
you know what to look for it's just some search and replace.
The biggest problem I see are silent breaks, because of changes in
some configuration files that are not tracked by dependency checking.
> I'd propose trying to remove
> that obstacle. We could do this by having:
>
> bitbake.conf:
>
> PKGPN ?= "${PN}"
>
> and then using PKGPN in recipes instead of PN. If you then create a
> glibc-some-extra-option you can just add a line which says:
>
> PKGPN = "glibc"
>
> and it should all work. This would also be useful for -sdk and -native
> recipes for example which currently have nastier workarounds for this
> problem.
>
> Would this solve the problem?
It would make the the setup of the additional recipes easier, but
it doesn't solve the main problem of breaking changes.
For that maybe something in insane.bbclass could check and complain
about settings like EXTRA_OECONF_xyz in a conig file when
BB_STAMP_POLICY is set.
Detlef
next prev parent reply other threads:[~2008-06-02 22:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-28 13:13 BB_STAMP_POLICY Koen Kooi
2008-06-02 10:35 ` BB_STAMP_POLICY Detlef Vollmann
2008-06-02 11:07 ` BB_STAMP_POLICY Richard Purdie
2008-06-02 22:09 ` Detlef Vollmann [this message]
2008-06-02 23:45 ` BB_STAMP_POLICY Richard Purdie
2008-06-03 5:05 ` BB_STAMP_POLICY Detlef Vollmann
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=48446FB3.8000201@vollmann.ch \
--to=dv@vollmann.ch \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@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 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.