Skip to contentSkip to conversation

ref-manual: remove checkpkg task

PATCH Superseded Michael Opdenacker 2 participants 9 messages Sep 15, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ref-manual: remove checkpkg task

It doesn't exist any more and its functionality is now taken care of by "devtool check-upgrade-status"

---
 documentation/ref-manual/tasks.rst     | 31 --------------------------
 documentation/ref-manual/variables.rst |  4 ++--
 2 files changed, 2 insertions(+), 33 deletions(-)
documentation/ref-manual/tasks.rst +0 -31
index ecc701856c..4edae33392 100644
@@ -438,37 +438,6 @@ Manually Called Tasks
 These tasks are typically manually triggered (e.g. by using the
 ``bitbake -c`` command-line option):
 
-.. _ref-tasks-checkpkg:
-
-``do_checkpkg``
----------------
-
-Provides information about the recipe including its upstream version and
-status. The upstream version and status reveals whether or not a version
-of the recipe exists upstream and a status of not updated, updated, or
-unknown.
-
-To check the upstream version and status of a recipe, use the following
-devtool commands::
-
-   $ devtool latest-version
-   $ devtool check-upgrade-status
-
-See the ":ref:`ref-manual/devtool-reference:\`\`devtool\`\` quick reference`"
-chapter for more information on
-``devtool``. See the ":ref:`devtool-checking-on-the-upgrade-status-of-a-recipe`"
-section for information on checking the upgrade status of a recipe.
-
-To build the ``checkpkg`` task, use the ``bitbake`` command with the
-"-c" option and task name::
-
-   $ bitbake core-image-minimal -c checkpkg
-
-By default, the results are stored in :term:`$LOG_DIR <LOG_DIR>` (e.g.
-``$BUILD_DIR/tmp/log``).
-
-.. _ref-tasks-checkuri:
-
 ``do_checkuri``
 ---------------
 
documentation/ref-manual/variables.rst +2 -2
index 5caada6260..74d04dfd49 100644
@@ -8485,7 +8485,7 @@ system and gives an overview of their function and contents.
 
    :term:`UPSTREAM_CHECK_GITTAGREGEX`
       You can perform a per-recipe check for what the latest upstream
-      source code version is by calling ``bitbake -c checkpkg`` recipe. If
+      source code version is by calling ``devtool latest-version recipe``. If
       the recipe source code is provided from Git repositories, the
       OpenEmbedded build system determines the latest upstream version by
       picking the latest tag from the list of all repository tags.
@@ -8508,7 +8508,7 @@ system and gives an overview of their function and contents.
 
    :term:`UPSTREAM_CHECK_URI`
       You can perform a per-recipe check for what the latest upstream
-      source code version is by calling ``bitbake -c checkpkg`` recipe. If
+      source code version is by calling ``devtool latest-version recipe``. If
       the source code is provided from tarballs, the latest version is
       determined by fetching the directory listing where the tarball is and
       attempting to find a later tarball. When this approach does not work,
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/4 ref-manual: improve "devtool check-upgrade-status" details

- Mention "devtool latest-version recipe" to process a single version
- Explain that the mechanism is controlled by the UPSTREAM_CHECK* variables, which are not referred to anywhere else in the manuals, except in the variable index.

---
 documentation/ref-manual/devtool-reference.rst | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
documentation/ref-manual/devtool-reference.rst +12 -6
index 5fd51569a3..5a0d6c25ae 100644
@@ -328,12 +328,18 @@ Checking on the Upgrade Status of a Recipe
 Upstream recipes change over time. Consequently, you might find that you
 need to determine if you can upgrade a recipe to a newer version.
 
-To check on the upgrade status of a recipe, use the
-``devtool check-upgrade-status`` command. The command displays a table
-of your current recipe versions, the latest upstream versions, the email
-address of the recipe's maintainer, and any additional information such
-as commit hash strings and reasons you might not be able to upgrade a
-particular recipe.
+To check on the upgrade status of a recipe, you can use the
+``devtool latest-version recipe`` command, which quickly shows the current
+version and the latest version available upstream. To get such information
+for all available recipes,  use the ``devtool check-upgrade-status`` command.
+The command displays a table of your current recipe versions, the latest
+upstream versions, the email address of the recipe's maintainer, and any
+additional information such as commit hash strings and reasons you might
+not be able to upgrade a particular recipe.
+
+This upgrade checking mechanism relies on the :term:`UPSTREAM_CHECK_URI`,
+:term:`UPSTREAM_CHECK_REGEX` and :term:`UPSTREAM_CHECK_GITTAGREGEX` variables
+which can be defined in each recipe.
 
 .. note::
 
Signature · 1 line
2.25.1
#2 lore raw

Re: [docs] [PATCH 2/4] ref-manual: improve "devtool check-upgrade-status" details

Hi Michael,

Quoted 18 lines · Michael Opdenacker

- Mention "devtool latest-version recipe" to process a single version
- Explain that the mechanism is controlled by the UPSTREAM_CHECK* variables, which are not referred to anywhere else in the manuals, except in the variable index.

---
 documentation/ref-manual/devtool-reference.rst | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
documentation/ref-manual/devtool-reference.rst +0 -0
index 5fd51569a3..5a0d6c25ae 100644
@@ -328,12 +328,18 @@ Checking on the Upgrade Status of a Recipe
 Upstream recipes change over time. Consequently, you might find that you
 need to determine if you can upgrade a recipe to a newer version.
 

documentation/ref-manual/devtool-reference.rst Checking on the Upgrade Status of a Recipe · line 334

Quoted 10 lines
documentation/ref-manual/devtool-reference.rst +4 -6
-To check on the upgrade status of a recipe, use the
-``devtool check-upgrade-status`` command. The command displays a table
-of your current recipe versions, the latest upstream versions, the email
-address of the recipe's maintainer, and any additional information such
-as commit hash strings and reasons you might not be able to upgrade a
-particular recipe.
+To check on the upgrade status of a recipe, you can use the
+``devtool latest-version recipe`` command, which quickly shows the current
+version and the latest version available upstream. To get such information
+for all available recipes,  use the ``devtool check-upgrade-status`` command.

Spurious space before use here.

documentation/ref-manual/devtool-reference.rst Checking on the Upgrade Status of a Recipe · line 343

Quoted 9 lines
documentation/ref-manual/devtool-reference.rst +8 -0
+The command displays a table of your current recipe versions, the latest
+upstream versions, the email address of the recipe's maintainer, and any
+additional information such as commit hash strings and reasons you might
+not be able to upgrade a particular recipe.
+
+This upgrade checking mechanism relies on the :term:`UPSTREAM_CHECK_URI`,
+:term:`UPSTREAM_CHECK_REGEX` and :term:`UPSTREAM_CHECK_GITTAGREGEX` variables
+which can be defined in each recipe.
 

I think the "can be defined in each recipe" might generate confusion and tell people it can be defined elsewhere.

What about:

"""
This upgrade checking mechanism relies on the optional[...] variables which are defined in package recipes.
"""

What do you think?

Cheers,
Quentin

#3 lore raw

Re: [docs] [PATCH 2/4] ref-manual: improve "devtool check-upgrade-status" details

Hello Quentin,

Thanks again for the reviews.

Quoted 6 lines · Quentin Schulz

documentation/ref-manual/devtool-reference.rst Checking on the Upgrade Status of a Recipe · line 334

Quoted 5 lines
documentation/ref-manual/devtool-reference.rst +4 -0
+To check on the upgrade status of a recipe, you can use the
+``devtool latest-version recipe`` command, which quickly shows the current
+version and the latest version available upstream. To get such information
+for all available recipes,  use the ``devtool check-upgrade-status`` command.

Spurious space before use here.

Good catch, fixed, thanks.

Quoted 13 lines

documentation/ref-manual/devtool-reference.rst Checking on the Upgrade Status of a Recipe · line 342

Quoted 10 lines
documentation/ref-manual/devtool-reference.rst +8 -0
+The command displays a table of your current recipe versions, the latest
+upstream versions, the email address of the recipe's maintainer, and any
+additional information such as commit hash strings and reasons you might
+not be able to upgrade a particular recipe.
+
+This upgrade checking mechanism relies on the :term:`UPSTREAM_CHECK_URI`,
+:term:`UPSTREAM_CHECK_REGEX` and :term:`UPSTREAM_CHECK_GITTAGREGEX` variables
+which can be defined in each recipe.

I think the "can be defined in each recipe" might generate confusion and tell people it can be defined elsewhere.

Quoted 8 lines

What about:

"""
This upgrade checking mechanism relies on the optional[...] variables which are defined in package recipes.
"""

What do you think?

Great. I wasn't really happy with the way I wrote it, and this is just right! Adopted.
Many thanks,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH 3/4 ref-manual: improve documentation for RECIPE_NO_UPDATE_REASON

In reply to Michael Opdenacker

This add a description of this variable to the variable index, and clarifies the explanations given in the devtool reference section.

---
 documentation/ref-manual/devtool-reference.rst | 13 ++++---------
 documentation/ref-manual/variables.rst         |  7 +++++++
 2 files changed, 11 insertions(+), 9 deletions(-)
documentation/ref-manual/devtool-reference.rst +4 -9
index 5a0d6c25ae..761c7cb738 100644
@@ -375,15 +375,10 @@ Following is a partial example table that reports on all the recipes.
 Notice the reported reason for not upgrading the ``base-passwd`` recipe.
 In this example, while a new version is available upstream, you do not
 want to use it because the dependency on ``cdebconf`` is not easily
-satisfied.
-
-.. note::
-
-   When a reason for not upgrading displays, the reason is usually
-   written into the recipe using the ``RECIPE_NO_UPDATE_REASON``
-   variable. See the
-   :yocto_git:`base-passwd.bb </poky/tree/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb>`
-   recipe for an example.
+satisfied. Maintainers can explicit the reason that is shown by adding
+the :term:`RECIPE_NO_UPDATE_REASON` variable to the corresponding recipe.
+See :yocto_git:`base-passwd.bb </poky/tree/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb>`
+for an example.
 
 ::
 
documentation/ref-manual/variables.rst +7 -0
index 74d04dfd49..ecad6acfff 100644
@@ -6132,6 +6132,13 @@ system and gives an overview of their function and contents.
       BitBake User Manual for additional information on tasks and
       dependencies.
 
+   :term:`RECIPE_NO_UPDATE_REASON`
+      If a recipe should not be replaced by a more recent upstream version,
+      setting this variable in a recipe allows to explain the reason why in
+      the output of the ``devtool check-upgrade-status`` command, as explained
+      in the ":ref:`ref-manual/devtool-reference:checking on the upgrade Status of a recipe`"
+      section.
+
    :term:`REQUIRED_DISTRO_FEATURES`
       When inheriting the
       :ref:`features_check <ref-classes-features_check>`
Signature · 1 line
2.25.1
#5 lore raw

Re: [docs] [PATCH 3/4] ref-manual: improve documentation for RECIPE_NO_UPDATE_REASON

Hi Michael,

Quoted 39 lines · Michael Opdenacker

This add a description of this variable to the variable index, and clarifies the explanations given in the devtool reference section.

---
 documentation/ref-manual/devtool-reference.rst | 13 ++++---------
 documentation/ref-manual/variables.rst         |  7 +++++++
 2 files changed, 11 insertions(+), 9 deletions(-)
documentation/ref-manual/devtool-reference.rst +4 -9
index 5a0d6c25ae..761c7cb738 100644
@@ -375,15 +375,10 @@ Following is a partial example table that reports on all the recipes.
 Notice the reported reason for not upgrading the ``base-passwd`` recipe.
 In this example, while a new version is available upstream, you do not
 want to use it because the dependency on ``cdebconf`` is not easily
-satisfied.
-
-.. note::
-
-   When a reason for not upgrading displays, the reason is usually
-   written into the recipe using the ``RECIPE_NO_UPDATE_REASON``
-   variable. See the
-   :yocto_git:`base-passwd.bb </poky/tree/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb>`
-   recipe for an example.
+satisfied. Maintainers can explicit the reason that is shown by adding
+the :term:`RECIPE_NO_UPDATE_REASON` variable to the corresponding recipe.
+See :yocto_git:`base-passwd.bb </poky/tree/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb>`
+for an example.
 
 ::
 
documentation/ref-manual/variables.rst +0 -0
index 74d04dfd49..ecad6acfff 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 6137

Quoted 6 lines
documentation/ref-manual/variables.rst +3 -0
@@ -6132,6 +6132,13 @@ system and gives an overview of their function and contents.
       BitBake User Manual for additional information on tasks and
       dependencies.
 
+   :term:`RECIPE_NO_UPDATE_REASON`
+      If a recipe should not be replaced by a more recent upstream version,
+      setting this variable in a recipe allows to explain the reason why in

I think it's missing the information about what this variable should be set to (the reason - a string).

What about:
"""
If a recipe should not be replaced by a more recent upstream version, putting the reason why in this variable in a recipe allows ``devtool check-upgrade-status`` command to display it, as explained [...]
"""

What do you think?

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 6139

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      the output of the ``devtool check-upgrade-status`` command, as explained
+      in the ":ref:`ref-manual/devtool-reference:checking on the upgrade Status of a recipe`"

lowercase S in the reflink?

Cheers,
Quentin

#6 lore raw

Re: [docs] [PATCH 3/4] ref-manual: improve documentation for RECIPE_NO_UPDATE_REASON

Hi Quentin,

Many thanks for the reviews!

Quoted 16 lines · Quentin Schulz

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 6137

Quoted 5 lines
documentation/ref-manual/variables.rst +3 -0
+   :term:`RECIPE_NO_UPDATE_REASON`
+      If a recipe should not be replaced by a more recent upstream version,
+      setting this variable in a recipe allows to explain the reason why in

I think it's missing the information about what this variable should be set to (the reason - a string).

What about:
"""
If a recipe should not be replaced by a more recent upstream version, putting the reason why in this variable in a recipe allows ``devtool check-upgrade-status`` command to display it, as explained [...]
"""

Quoted 1 line

What do you think?

That's definitely clearer. Adopted, thanks!

Quoted 4 lines

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 6139

Quoted 3 lines
documentation/ref-manual/variables.rst +2 -0
+      the output of the ``devtool check-upgrade-status`` command, as explained
+      in the ":ref:`ref-manual/devtool-reference:checking on the upgrade Status of a recipe`"

lowercase S in the reflink?

Oops, forgot that one, thanks!

Cheers,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#7 lore raw

PATCH 4/4 ref-manual: update "devtool check-upgrade-status" output

In reply to Michael Opdenacker

This command now uses "INFO" insted of "NOTES" and output information in columns. Also good to show more recent versions of recipes.

---
 documentation/ref-manual/devtool-reference.rst | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
documentation/ref-manual/devtool-reference.rst +6 -9
index 761c7cb738..17b62d4048 100644
@@ -384,15 +384,12 @@ for an example.
 
    $ devtool check-upgrade-status
    ...
-   NOTE: acpid 2.0.30 2.0.31 Ross Burton <[email protected]>
-   NOTE: u-boot-fw-utils 2018.11 2019.01 Marek Vasut <[email protected]> d3689267f92c5956e09cc7d1baa4700141662bff
-   NOTE: u-boot-tools 2018.11 2019.01 Marek Vasut <[email protected]> d3689267f92c5956e09cc7d1baa4700141662bff
-   .
-   .
-   .
-   NOTE: base-passwd 3.5.29 3.5.45 Anuj Mittal <[email protected]> cannot be updated due to: Version 3.5.38 requires cdebconf for update-passwd utility
-   NOTE: busybox 1.29.2 1.30.0 Andrej Valek <[email protected]>
-   NOTE: dbus-test 1.12.10 1.12.12 Chen Qi <[email protected]>
+   INFO: bind                      9.16.20         9.16.21         Armin Kuster <[email protected]>
+   INFO: inetutils                 2.1             2.2             Tom Rini <[email protected]>
+   INFO: iproute2                  5.13.0          5.14.0          Changhyeok Bae <[email protected]>
+   INFO: openssl                   1.1.1l          3.0.0           Alexander Kanavin <[email protected]>
+   INFO: base-passwd               3.5.29          3.5.51          Anuj Mittal <[email protected]>  cannot be updated due to: Version 3.5.38 requires cdebconf for update-passwd utility
+   ...
 
 .. _devtool-upgrading-a-recipe:
 
Signature · 1 line
2.25.1