From: "Antonin Godard" <antonin.godard@bootlin.com>
To: "Quentin Schulz" <quentin.schulz@cherry.de>,
<docs@lists.yoctoproject.org>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [docs] [yocto-docs PATCH 09/14] Drop support for BB_DANGLINGAPPENDS_WARNONLY
Date: Fri, 20 Dec 2024 10:17:04 +0100 [thread overview]
Message-ID: <D6GEY2500NU7.3L242F0REPJWX@bootlin.com> (raw)
In-Reply-To: <1a101f50-7b94-4aea-bb28-b00ba0571986@cherry.de>
Hi Quentin,
On Tue Dec 17, 2024 at 3:08 PM CET, Quentin Schulz wrote:
> Hi Antonin,
>
> On 12/17/24 10:27 AM, Antonin Godard via lists.yoctoproject.org wrote:
>> Support for this variable was dropped in BitBake, see commit
>> fca9c9e3cb6f8e9f99bf51dc5e8a8d83f4c84c69 ("cooker: Drop support for
>> BB_DANGLINGAPPENDS_WARNONLY").
>>
>> Drop this variable here as well and rewrite the "Appending Other Layers
>> Metadata With Your Layer" section to advise to rename the recipe and
>> check if the bbappend is still relevant - otherwise to use BBWARN.
>>
>> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
>> ---
>> documentation/dev-manual/layers.rst | 15 ++++++++++-----
>> documentation/ref-manual/variables.rst | 18 ------------------
>> 2 files changed, 10 insertions(+), 23 deletions(-)
>>
>> diff --git a/documentation/dev-manual/layers.rst b/documentation/dev-manual/layers.rst
>> index 89c84669337c9ecdc90110fdf34b7949459a1b9f..365991c225159d051f6dc4122625616b81f01ee3 100644
>> --- a/documentation/dev-manual/layers.rst
>> +++ b/documentation/dev-manual/layers.rst
>> @@ -470,11 +470,16 @@ corresponding recipe file. For example, the append file
>> means the original recipe and append filenames are version
>> number-specific. If the corresponding recipe is renamed to update to a
>> newer version, you must also rename and possibly update the
>> -corresponding ``.bbappend`` as well. During the build process, BitBake
>> -displays an error on starting if it detects a ``.bbappend`` file that
>> -does not have a corresponding recipe with a matching name. See the
>> -:term:`BB_DANGLINGAPPENDS_WARNONLY`
>> -variable for information on how to handle this error.
>> +corresponding ``.bbappend`` as well.
>> +
>> +During the build process, BitBake displays an error on startup if it detects a
>> +``.bbappend`` file that does not have a corresponding recipe with a matching
>> +name. To handle these errors, the better practice is to rename the ``.bbappend``
>
> We usually say best practice in the docs (haven't found one occurrence
> of better practice with a naive grep search). Did you mean best practice
> maybe?
Oops, "best" it is yes :)
>> +to match the original recipe version. This also gives you the opportunity to see
>> +if the ``.bbappend`` is still relevant for the new version of the recipe.
>> +
>> +Another method to deal with these errors is to use the variable :term:`BBMASK`,
>> +especially in cases where modifying the ``.bbappend`` is not possible.
>>
>
> And another method is to make use of the % character in the filename
> where possible? E.g. for minor updates (I still like my gstreamer
> bbappend example since it continues to happen to me during rebases :) ),
> one could use someapp_3.%.bbappend.
Yes, that's right, I will also add this method. I'll mention matching the minor
version only if possible, not the entire version, to avoid masking too much when
updating. It's good to take a look at a bbappend every once and a while. :)
> Otherwise looks good to me, should be part of the migration manual I
> believe?
Yes absolutely, thanks!
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-12-20 9:17 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-17 9:26 [yocto-docs PATCH 00/14] Updates from recent core changes Antonin Godard
2024-12-17 9:27 ` [yocto-docs PATCH 01/14] ref-manual/variables: document the KERNEL_CONSOLE variable Antonin Godard
2024-12-17 10:05 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 02/14] ref-manual/classes: drop the migrate_localcount class Antonin Godard
2024-12-17 10:14 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 03/14] ref-manual/variables: document the FIRMWARE_COMPRESSION variable Antonin Godard
2024-12-17 10:28 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 04/14] ref-manual/variables: add missing entries to SDK_ARCHIVE_TYPE Antonin Godard
2024-12-17 10:34 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 05/14] ref-manual/variables: document the WIC_SECTOR_SIZE variable Antonin Godard
2024-12-17 10:37 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 06/14] ref-manual/variable: remove obsolete SETUPTOOLS_INSTALL_ARGS Antonin Godard
2024-12-17 10:39 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 07/14] ref-manual/classes: document the cython class Antonin Godard
2024-12-17 10:48 ` [docs] " Quentin Schulz
2024-12-20 9:06 ` Antonin Godard
2024-12-17 9:27 ` [yocto-docs PATCH 08/14] Remove debug-tweaks references Antonin Godard
2024-12-17 9:27 ` [yocto-docs PATCH 09/14] Drop support for BB_DANGLINGAPPENDS_WARNONLY Antonin Godard
2024-12-17 14:08 ` [docs] " Quentin Schulz
2024-12-20 9:17 ` Antonin Godard [this message]
2024-12-17 9:27 ` [yocto-docs PATCH 10/14] ref-manual/variables: document the CHECKLAYER_REQUIRED_TESTS variable Antonin Godard
2024-12-17 14:14 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 11/14] ref-manual/classes: document the yocto-check-layer class Antonin Godard
2024-12-17 14:15 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 12/14] ref-manual/variables: document the CARGO_INSTALL_LIBRARIES variable Antonin Godard
2024-12-17 14:32 ` [docs] " Quentin Schulz
2024-12-17 9:27 ` [yocto-docs PATCH 13/14] ref-manual/variables: document the PREFERRED_RPROVIDER variable Antonin Godard
2024-12-17 14:43 ` [docs] " Quentin Schulz
2024-12-20 10:31 ` Antonin Godard
2024-12-17 9:27 ` [yocto-docs PATCH 14/14] migration-guides: update the release notes for 5.2 Antonin Godard
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=D6GEY2500NU7.3L242F0REPJWX@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=quentin.schulz@cherry.de \
--cc=thomas.petazzoni@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox