From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: base.bbclass: Implement PACKAGECONFIG
Date: Thu, 06 Oct 2011 15:56:55 +0100 [thread overview]
Message-ID: <1317913023.6398.114.camel@ted> (raw)
In-Reply-To: <20111006142426.GA3485@jama.jama.net>
On Thu, 2011-10-06 at 16:24 +0200, Martin Jansa wrote:
> On Thu, Oct 06, 2011 at 03:18:27PM +0100, Richard Purdie wrote:
> > These enabled options to be specified in the form:
> >
> > PACKAGECONFIG ?? = "<default options>"
> > PACKAGECONFIG[foo] = "--enable-foo,--disable-foo,foo_depends,foo_runtime_depends"
> >
> > So that DEPENDS, RDEPENDS_${PN} and EXTRA_OECONF can be automatically
> > built from specific options. Those options can easily be customised
> > by the distro config or the user.
> >
> > Based on some ideas from Chris Elston <celston@katalix.com> but with
> > an improved easier to use one line interface.
>
> 1) How can user check on target if his package was built with foo enabled?
> - is there some plan to keep this in ipk/deb metadata?
No plan. I'll state very clearly here for the record:
THESE OPTIONS SHOULD ONLY BE USED WITH ONE SETTING FOR A GIVEN DISTRO
(otherwise the package feeds would be inconsistent).
There is no realistic way we can do anything else. We're giving users a
smoking gun here, if they chose to shoot themselves with it, that is
their own problem.
There are a lot of good reasons people may want to configure things, I
don't think it acceptable to make it difficult but it does mean people
need to take a certain about of responsibility.
> 2) Is it possible to force some PACKAGECONFIG enable/disabled from
> DEPENDS/RDEPENDS, ie bar_1.0.bb with foo enabled, depends not only on
> abc recipe but needs abc also with foo enabled.
No. Distros (or the user) are going to be responsible for setting up a
consistent set of PACKAGECONFIG options.
Cheers,
Richard
next prev parent reply other threads:[~2011-10-06 15:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-06 14:18 base.bbclass: Implement PACKAGECONFIG Richard Purdie
2011-10-06 14:24 ` Martin Jansa
2011-10-06 14:56 ` Richard Purdie [this message]
2011-10-06 14:46 ` Koen Kooi
2011-10-06 15:55 ` 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=1317913023.6398.114.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--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 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.