From: Max Krummenacher <max.oss.09@gmail.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: packageconfig, add depends if feature is disabled
Date: Wed, 22 Jun 2016 21:25:03 +0200 [thread overview]
Message-ID: <1466623503.2906.1.camel@gmail.com> (raw)
In-Reply-To: <CAJTo0LbtjhRL+ugz9sNjszXTePZ=R=R19vA1fQG-A5R1b7uDQg@mail.gmail.com>
Hi Ross
Am Sonntag, den 19.06.2016, 20:51 +0100 schrieb Burton, Ross:
> On 19 June 2016 at 10:52, Max Krummenacher <max.oss.09@gmail.com>
> wrote:
>
> > PACKAGECONFIG ?= "gtk3"
> > PACKAGECONFIG[gtk2] = ",,gtk+"
> > PACKAGECONFIG[gtk3] = "--enable-gtk3,,gtk+3"
> >
>
> PACKAGECONFIGs are meant to be explicit so "thing which is enabled
> when
> something else is disabled" is obvious unless you write log comments
> explaining the options.
>
> For example, what if PACKAGECONFIG was set to "" but gtk+ was already
> in
> the sysroot. By the logic you've described that would result in your
> recipe being built with gtk+ despite being told not to, or maybe if
> gtk3 is
> autodetected first and that's also in the sysroot then gtk3 gets used
> instead. You literally can't tell, and if bitbake can't tell then
> you'll
> have binary packages changing when they shouldn't be.
>
> Idiomatically you'd have - or expect - something like
>
> PACKAGECONFIG ?= "gtk3"
> PACKAGECONFIG[gtk2] = "--enable-gtk2,--disable-gtk2,gtk+"
> PACKAGECONFIG[gtk3] = "--enable-gtk3,--disable-gtk3,gtk+3"
>
> If the upstream doesn't support this then you're hoping that they
> don't
> change the default values, or the configure doesn't attempt to auto
> -detect,
> or various other ways that having options with no enable or disable
> values
> can break. At that point I'd actually fix upstream's configure and
> send a
> patch instead of attempting to work around it.
>
> Ross
Understood. Will have a look into configure of the packages.
Thanks
Max
prev parent reply other threads:[~2016-06-22 19:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-19 9:52 packageconfig, add depends if feature is disabled Max Krummenacher
2016-06-19 19:51 ` Burton, Ross
2016-06-22 19:25 ` Max Krummenacher [this message]
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=1466623503.2906.1.camel@gmail.com \
--to=max.oss.09@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/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.