From: Patrick Ohly <patrick.ohly@intel.com>
To: Christopher Larson <kergoth@gmail.com>
Cc: "bitbake-devel@lists.openembedded.org"
<bitbake-devel@lists.openembedded.org>
Subject: Re: [PATCH] cooker.py: allow dangling bbappends if explicitly whitelisted
Date: Thu, 25 May 2017 22:01:54 +0200 [thread overview]
Message-ID: <1495742514.16923.97.camel@intel.com> (raw)
In-Reply-To: <CABcZAN=d7BHGOM9602pfbA4N6chDB8b8RDKB4xo6fhCChDx0Rg@mail.gmail.com>
On Thu, 2017-05-25 at 08:50 -0700, Christopher Larson wrote:
>
> On Mon, May 22, 2017 at 3:50 AM, Patrick Ohly <patrick.ohly@intel.com>
> wrote:
> Having a .bbappend without corresponding .bb file triggers an
> error or
> at least warning, depending on the global
> BB_DANGLINGAPPENDS_WARNONLY.
>
> Some layers (for example, meta-freescale) avoid that message
> by only
> adding .bbappends to the BBFILES when the layers they apply to
> are
> present. Others (like intel-iot-refkit) avoid such .bbappends
> by
> falling back to global assignments with _pn-<recipe> as
> override. Both
> is complicated.
>
> Now the warning code checks BBAPPENDS_DANGLING_WHITELIST and
> ignores
> all bbappends which match a file pattern in that list. This is
> an
> easier way to have bbappends which may or may not apply to an
> existing recipe.
>
> IMHO this makes it too easy to miss legitimate problems. By adding
> them only when the layers are present, you ensure that if that layer
> removes the recipe you’re appending, you’ll immediately know it. This
> hides such actual problems by suppressing for all optional appends
> across the board.
I understand that it is a double-edged sword. It's meant for layer
maintainers who know what they are doing. If a layer maintainer prefers
to be warned about missing recipes, they can simply ignore the whitelist
feature. Layer maintainers who use it need to ensure that they have
tests in place which will fail when the bbappend is no longer used.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
next prev parent reply other threads:[~2017-05-25 20:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-22 10:50 [PATCH] cooker.py: allow dangling bbappends if explicitly whitelisted Patrick Ohly
2017-05-25 15:50 ` Christopher Larson
2017-05-25 20:01 ` Patrick Ohly [this message]
2017-05-26 13:56 ` Patrick Ohly
2017-05-30 19:54 ` Mark Hatle
2017-06-02 12:58 ` Richard Purdie
2017-06-02 13:06 ` Patrick Ohly
2017-06-02 13:26 ` Mark Hatle
2017-06-02 13:42 ` Christopher Larson
2017-06-02 16:14 ` Patrick Ohly
2017-06-02 16:20 ` Mark Hatle
2017-06-07 9:03 ` [PATCH] cookerdata: Add support for BBFILES_DYNAMIC Patrick Ohly
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=1495742514.16923.97.camel@intel.com \
--to=patrick.ohly@intel.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=kergoth@gmail.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.