Skip to contentSkip to conversation

ref-manual: classes: fix bin_package description

PATCH Superseded Antonin Godard 2 participants 5 messages Nov 27, 2024

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ref-manual: classes: fix bin_package description

The previous bin_package description was confusing: it would instruct to use the git fetcher to extract the content of an RPM package using the subpath option - but that's not possible as the git fetcher can be used to clone a repository but not to do the extraction.

Update the description by telling what it really does and what it doesn't do, and by giving an HTTPS+RPM example.

---
Changes in v3:
- Actually explain what bin_package does and what it doesn't do.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Instead of updating the example, update the description of the class
with a more common (and working) example usage of the class.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 documentation/ref-manual/classes.rst | 42 +++++++++++++++++++++---------------
 1 file changed, 25 insertions(+), 17 deletions(-)
documentation/ref-manual/classes.rst +25 -17
index b92f4e4f20ea8f702c90f4e3d29251b2461d07d0..ff9979d1f1ac0afb0ee59fcd193dec2c1323e1fe 100644
@@ -159,27 +159,35 @@ software that includes bash-completion data.
 ``bin_package``
 ===============
 
-The :ref:`ref-classes-bin-package` class is a helper class for recipes that extract the
-contents of a binary package (e.g. an RPM) and install those contents
-rather than building the binary from source. The binary package is
-extracted and new packages in the configured output package format are
-created. Extraction and installation of proprietary binaries is a good
-example use for this class.
+The :ref:`ref-classes-bin-package` class is a helper class for recipes that
+disables the :ref:`ref-tasks-configure` and :ref:`ref-tasks-compile` tasks and
+copies the content of the :term:`S` directory into the :term:`D` directory. This
+is useful for installing binary packages (e.g. RPM packages) by passing the
+package in the :term:`SRC_URI` variable and inheriting this class.
 
-.. note::
+For RPMs and other packages that do not contain a subdirectory, you should set
+the :term:`SRC_URI` option ``subdir`` to :term:`BP` so that the contents are
+extracted to the directory expected by the default value of :term:`S`. For
+example::
+
+   SRC_URI = "https://example.com/downloads/somepackage.rpm;subdir=${BP}"
 
-   For RPMs and other packages that do not contain a subdirectory, you
-   should specify an appropriate fetcher parameter to point to the
-   subdirectory. For example, if BitBake is using the Git fetcher (``git://``),
-   the "subpath" parameter limits the checkout to a specific subpath
-   of the tree. Here is an example where ``${BP}`` is used so that the files
-   are extracted into the subdirectory expected by the default value of
-   :term:`S`::
+This class assumes that the content of :term:`S` already contains the
+installation paths on the target , which is generally the case for binary
+packages. For example, a RPM package containing a library should already contain
+the ``usr/lib`` directories, and should be extracted as
+``${S}/usr/lib/<library>.so`` to be installed in :term:`D` correctly.
+
+.. note::
 
-      SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}"
+   The extraction of the package passed in :term:`SRC_URI` is not handled by the
+   :ref:`ref-classes-bin-package` class, and is done by the appropriate
+   :ref:`fetcher <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
+   depending on the nature of the package.
 
-   See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`" section in the BitBake User Manual for
-   more information on supported BitBake Fetchers.
+   See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`"
+   section in the BitBake User Manual for more information about supported
+   BitBake Fetchers.
 
 .. _ref-classes-binconfig:
 

---
base-commit: 4175839e718db49bf6971e900c1cf176d03458d7
change-id: 20241115-fix-bin-package-eed7633fbecd

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>
#1 lore raw

Hi Antonin,

Quoted 27 lines · Antonin Godard

The previous bin_package description was confusing: it would instruct to use the git fetcher to extract the content of an RPM package using the subpath option - but that's not possible as the git fetcher can be used to clone a repository but not to do the extraction.

Update the description by telling what it really does and what it doesn't do, and by giving an HTTPS+RPM example.

---
Changes in v3:
- Actually explain what bin_package does and what it doesn't do.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Instead of updating the example, update the description of the class
with a more common (and working) example usage of the class.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
  documentation/ref-manual/classes.rst | 42 +++++++++++++++++++++---------------
  1 file changed, 25 insertions(+), 17 deletions(-)
documentation/ref-manual/classes.rst +0 -0
index b92f4e4f20ea8f702c90f4e3d29251b2461d07d0..ff9979d1f1ac0afb0ee59fcd193dec2c1323e1fe 100644

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 162

Quoted 10 lines
documentation/ref-manual/classes.rst +1 -6
@@ -159,27 +159,35 @@ software that includes bash-completion data.
  ``bin_package``
  ===============
 
-The :ref:`ref-classes-bin-package` class is a helper class for recipes that extract the
-contents of a binary package (e.g. an RPM) and install those contents
-rather than building the binary from source. The binary package is
-extracted and new packages in the configured output package format are
-created. Extraction and installation of proprietary binaries is a good
-example use for this class.
+The :ref:`ref-classes-bin-package` class is a helper class for recipes that

Would put a comma after recipes so people don't think it's for recipes that extract the contents[...] but rather that the class does it for the recipes inheriting it.

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 167

Quoted 5 lines
documentation/ref-manual/classes.rst +4 -0
+disables the :ref:`ref-tasks-configure` and :ref:`ref-tasks-compile` tasks and
+copies the content of the :term:`S` directory into the :term:`D` directory. This
+is useful for installing binary packages (e.g. RPM packages) by passing the
+package in the :term:`SRC_URI` variable and inheriting this class.
 

I would also provide tarballs as another example of "binary packages", not sure how to word this though.

Quoted 6 lines
documentation/ref-manual/classes.rst +5 -1
-.. note::
+For RPMs and other packages that do not contain a subdirectory, you should set
+the :term:`SRC_URI` option ``subdir`` to :term:`BP` so that the contents are
+extracted to the directory expected by the default value of :term:`S`. For
+example::
+

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 175

Quoted 10 lines
documentation/ref-manual/classes.rst +2 -7
+   SRC_URI = "https://example.com/downloads/somepackage.rpm;subdir=${BP}"
 
-   For RPMs and other packages that do not contain a subdirectory, you
-   should specify an appropriate fetcher parameter to point to the
-   subdirectory. For example, if BitBake is using the Git fetcher (``git://``),
-   the "subpath" parameter limits the checkout to a specific subpath
-   of the tree. Here is an example where ``${BP}`` is used so that the files
-   are extracted into the subdirectory expected by the default value of
-   :term:`S`::
+This class assumes that the content of :term:`S` already contains the

"""
This class assumes that the content of the package as installed in :term:S mirrors the expected layout once installed on the target, which is generally[...] """

?

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 176

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+installation paths on the target , which is generally the case for binary

Spurious whitespace before comma.

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 177

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+packages. For example, a RPM package containing a library should already contain

s/a RPM/an RPM/

s/containing a library/for a library/ # to avoid redundant "contain" verb

s/should already contain/would usually contain/

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 178

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+the ``usr/lib`` directories, and should be extracted as

s/as/to/?

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 180

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+``${S}/usr/lib/<library>.so`` to be installed in :term:`D` correctly.
+

It'd be nice to encourage people to use versioned shared libraries even for binary packages but not sure how to word this here.

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 186

Quoted 7 lines
documentation/ref-manual/classes.rst +5 -1
+.. note::
 
-      SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}"
+   The extraction of the package passed in :term:`SRC_URI` is not handled by the
+   :ref:`ref-classes-bin-package` class, and is done by the appropriate
+   :ref:`fetcher <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
+   depending on the nature of the package.

What do you mean by "depending on the nature of the package"?

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 191

Quoted 7 lines
documentation/ref-manual/classes.rst +3 -2
-   See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`" section in the BitBake User Manual for
-   more information on supported BitBake Fetchers.
+   See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`"
+   section in the BitBake User Manual for more information about supported
+   BitBake Fetchers.
 

I'm not entirely sure this is relevant here? Or maybe we should update the BitBake docs to reflect which fetcher is extracting packages/tarballs with which option?

Cheers,
Quentin

#2 lore raw

Hi Quentin,

Quoted 33 lines · Quentin Schulz via lists.yoctoproject.org

Hi Antonin,

Quoted 30 lines · Antonin Godard

The previous bin_package description was confusing: it would instruct to use the git fetcher to extract the content of an RPM package using the subpath option - but that's not possible as the git fetcher can be used to clone a repository but not to do the extraction.

Update the description by telling what it really does and what it doesn't do, and by giving an HTTPS+RPM example.

---
Changes in v3:
- Actually explain what bin_package does and what it doesn't do.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Instead of updating the example, update the description of the class
with a more common (and working) example usage of the class.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
  documentation/ref-manual/classes.rst | 42 +++++++++++++++++++++---------------
  1 file changed, 25 insertions(+), 17 deletions(-)
documentation/ref-manual/classes.rst +0 -0
index b92f4e4f20ea8f702c90f4e3d29251b2461d07d0..ff9979d1f1ac0afb0ee59fcd193dec2c1323e1fe 100644
@@ -159,27 +159,35 @@ software that includes bash-completion data.
  ``bin_package``
  ===============
 
Quoted 11 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 162

Quoted 7 lines
documentation/ref-manual/classes.rst +1 -6
-The :ref:`ref-classes-bin-package` class is a helper class for recipes that extract the
-contents of a binary package (e.g. an RPM) and install those contents
-rather than building the binary from source. The binary package is
-extracted and new packages in the configured output package format are
-created. Extraction and installation of proprietary binaries is a good
-example use for this class.
+The :ref:`ref-classes-bin-package` class is a helper class for recipes that

Would put a comma after recipes so people don't think it's for recipes that extract the contents[...] but rather that the class does it for the recipes inheriting it.

+1

Quoted 8 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 167

Quoted 5 lines
documentation/ref-manual/classes.rst +4 -0
+disables the :ref:`ref-tasks-configure` and :ref:`ref-tasks-compile` tasks and
+copies the content of the :term:`S` directory into the :term:`D` directory. This
+is useful for installing binary packages (e.g. RPM packages) by passing the
+package in the :term:`SRC_URI` variable and inheriting this class.
 

I would also provide tarballs as another example of "binary packages", not sure how to word this though.

I'll add another example afterwards.

Quoted 23 lines
Quoted 6 lines
documentation/ref-manual/classes.rst +5 -1
-.. note::
+For RPMs and other packages that do not contain a subdirectory, you should set
+the :term:`SRC_URI` option ``subdir`` to :term:`BP` so that the contents are
+extracted to the directory expected by the default value of :term:`S`. For
+example::
+

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 175

Quoted 10 lines
documentation/ref-manual/classes.rst +2 -7
+   SRC_URI = "https://example.com/downloads/somepackage.rpm;subdir=${BP}"
 
-   For RPMs and other packages that do not contain a subdirectory, you
-   should specify an appropriate fetcher parameter to point to the
-   subdirectory. For example, if BitBake is using the Git fetcher (``git://``),
-   the "subpath" parameter limits the checkout to a specific subpath
-   of the tree. Here is an example where ``${BP}`` is used so that the files
-   are extracted into the subdirectory expected by the default value of
-   :term:`S`::
+This class assumes that the content of :term:`S` already contains the

"""
This class assumes that the content of the package as installed in :term:S mirrors the expected layout once installed on the target, which is generally[...]
"""

Quoted 1 line

?

I agree, better wording

Quoted 3 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 176

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+installation paths on the target , which is generally the case for binary

Spurious whitespace before comma.

+1

Quoted 7 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 177

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+packages. For example, a RPM package containing a library should already contain

s/a RPM/an RPM/

s/containing a library/for a library/ # to avoid redundant "contain" verb

s/should already contain/would usually contain/

+1

Quoted 3 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 178

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+the ``usr/lib`` directories, and should be extracted as

s/as/to/?

+1

Quoted 5 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 180

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+``${S}/usr/lib/<library>.so`` to be installed in :term:`D` correctly.
+

It'd be nice to encourage people to use versioned shared libraries even for binary packages but not sure how to word this here.

Replace by ``${S}/usr/lib/<library>.<version>.so``? and implicitly encourage it. Not sure this is the place to give written advice on that.

Quoted 9 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 186

Quoted 7 lines
documentation/ref-manual/classes.rst +5 -1
+.. note::
 
-      SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}"
+   The extraction of the package passed in :term:`SRC_URI` is not handled by the
+   :ref:`ref-classes-bin-package` class, and is done by the appropriate
+   :ref:`fetcher <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
+   depending on the nature of the package.

What do you mean by "depending on the nature of the package"?

I meant the type, like RPM, tarball, deb… I can replace by "type", and add a "(RPM, Deb, tarball, …)" in parenthesis afterwards.

Quoted 11 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 191

Quoted 7 lines
documentation/ref-manual/classes.rst +3 -2
-   See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`" section in the BitBake User Manual for
-   more information on supported BitBake Fetchers.
+   See the ":ref:`bitbake-user-manual/bitbake-user-manual-fetching:fetchers`"
+   section in the BitBake User Manual for more information about supported
+   BitBake Fetchers.
 

I'm not entirely sure this is relevant here? Or maybe we should update the BitBake docs to reflect which fetcher is extracting packages/tarballs with which option?

Since I mentioned the fetchers above I thought it would be nice to keep, but the link is already present in the sentence above so I'll remove this paragraph.

Thank you!
Antonin

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

Hi Antonin,

Quoted 110 lines · Antonin Godard

Hi Quentin,

Quoted 33 lines · Quentin Schulz via lists.yoctoproject.org

Hi Antonin,

Quoted 30 lines · Antonin Godard

The previous bin_package description was confusing: it would instruct to use the git fetcher to extract the content of an RPM package using the subpath option - but that's not possible as the git fetcher can be used to clone a repository but not to do the extraction.

Update the description by telling what it really does and what it doesn't do, and by giving an HTTPS+RPM example.

---
Changes in v3:
- Actually explain what bin_package does and what it doesn't do.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Instead of updating the example, update the description of the class
with a more common (and working) example usage of the class.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
   documentation/ref-manual/classes.rst | 42 +++++++++++++++++++++---------------
   1 file changed, 25 insertions(+), 17 deletions(-)
documentation/ref-manual/classes.rst +0 -0
index b92f4e4f20ea8f702c90f4e3d29251b2461d07d0..ff9979d1f1ac0afb0ee59fcd193dec2c1323e1fe 100644
@@ -159,27 +159,35 @@ software that includes bash-completion data.
   ``bin_package``
   ===============
 
Quoted 11 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 162

Quoted 7 lines
documentation/ref-manual/classes.rst +1 -6
-The :ref:`ref-classes-bin-package` class is a helper class for recipes that extract the
-contents of a binary package (e.g. an RPM) and install those contents
-rather than building the binary from source. The binary package is
-extracted and new packages in the configured output package format are
-created. Extraction and installation of proprietary binaries is a good
-example use for this class.
+The :ref:`ref-classes-bin-package` class is a helper class for recipes that

Would put a comma after recipes so people don't think it's for recipes that extract the contents[...] but rather that the class does it for the recipes inheriting it.

+1

Quoted 8 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 167

Quoted 5 lines
documentation/ref-manual/classes.rst +4 -0
+disables the :ref:`ref-tasks-configure` and :ref:`ref-tasks-compile` tasks and
+copies the content of the :term:`S` directory into the :term:`D` directory. This
+is useful for installing binary packages (e.g. RPM packages) by passing the
+package in the :term:`SRC_URI` variable and inheriting this class.
 

I would also provide tarballs as another example of "binary packages", not sure how to word this though.

I'll add another example afterwards.

Quoted 23 lines
Quoted 6 lines
documentation/ref-manual/classes.rst +5 -1
-.. note::
+For RPMs and other packages that do not contain a subdirectory, you should set
+the :term:`SRC_URI` option ``subdir`` to :term:`BP` so that the contents are
+extracted to the directory expected by the default value of :term:`S`. For
+example::
+

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 175

Quoted 10 lines
documentation/ref-manual/classes.rst +2 -7
+   SRC_URI = "https://example.com/downloads/somepackage.rpm;subdir=${BP}"
 
-   For RPMs and other packages that do not contain a subdirectory, you
-   should specify an appropriate fetcher parameter to point to the
-   subdirectory. For example, if BitBake is using the Git fetcher (``git://``),
-   the "subpath" parameter limits the checkout to a specific subpath
-   of the tree. Here is an example where ``${BP}`` is used so that the files
-   are extracted into the subdirectory expected by the default value of
-   :term:`S`::
+This class assumes that the content of :term:`S` already contains the

"""
This class assumes that the content of the package as installed in :term:S mirrors the expected layout once installed on the target, which is generally[...]
"""

Quoted 1 line

?

I agree, better wording

Quoted 3 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 176

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+installation paths on the target , which is generally the case for binary

Spurious whitespace before comma.

+1

Quoted 7 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 177

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+packages. For example, a RPM package containing a library should already contain

s/a RPM/an RPM/

s/containing a library/for a library/ # to avoid redundant "contain" verb

s/should already contain/would usually contain/

+1

Quoted 3 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 178

Quoted 1 line
documentation/ref-manual/classes.rst +1 -0
+the ``usr/lib`` directories, and should be extracted as

s/as/to/?

+1

Quoted 9 lines
Quoted 5 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 180

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+``${S}/usr/lib/<library>.so`` to be installed in :term:`D` correctly.
+

It'd be nice to encourage people to use versioned shared libraries even for binary packages but not sure how to word this here.

Replace by ``${S}/usr/lib/<library>.<version>.so``? and implicitly encourage it. Not sure this is the place to give written advice on that.

It's actually ``${S}/usr/lib/<library>.so.<version>`` :) But would work for me. Though considering FILES:${PN} = "/" once inheriting this class, whether versioned or not doesn't matter to the packaging step (unlike the default values, where .so goes to -dev package).

Quoted 5 lines
Quoted 5 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 184

Quoted 5 lines
documentation/ref-manual/classes.rst +3 -1
+.. note::
 
-      SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}"
+   The extraction of the package passed in :term:`SRC_URI` is not handled by the
+   :ref:`ref-classes-bin-package` class, and is done by the appropriate

s/, and is done/but rather/ ?

Quoted 8 lines
Quoted 4 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 186

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+   :ref:`fetcher <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
+   depending on the nature of the package.

What do you mean by "depending on the nature of the package"?

I meant the type, like RPM, tarball, deb… I can replace by "type", and add a "(RPM, Deb, tarball, …)" in parenthesis afterwards.

I would simply remove "depending on the nature of the package", that's already implied? Ah, or we can say depending on the file extension which I believe is how the fetcher is actually figuring out how to extract them?

Cheers,
Quentin

#4 lore raw

Hi Quentin,

On Wed Nov 27, 2024 at 3:15 PM CET, Quentin Schulz wrote:
[...]

Quoted 11 lines
Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

+``${S}/usr/lib/<library>.so`` to be installed in :term:D correctly. +

It'd be nice to encourage people to use versioned shared libraries even for binary packages but not sure how to word this here.

Replace by ``${S}/usr/lib/<library>.<version>.so``? and implicitly encourage it. Not sure this is the place to give written advice on that.

It's actually ``${S}/usr/lib/<library>.so.<version>`` :) But would work

Oops, right thanks :)

Quoted 11 lines

for me. Though considering FILES:${PN} = "/" once inheriting this class, whether versioned or not doesn't matter to the packaging step (unlike the default values, where .so goes to -dev package).

Quoted 5 lines
Quoted 5 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 184

Quoted 5 lines

+.. note::

documentation/ref-manual/classes.rst +2 -1
-      SRC_URI = "git://example.com/downloads/somepackage.rpm;branch=main;subpath=${BP}"
+   The extraction of the package passed in :term:`SRC_URI` is not handled by the
+   :ref:`ref-classes-bin-package` class, and is done by the appropriate

s/, and is done/but rather/ ?

+1

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

documentation/ref-manual/classes.rst software that includes bash-completion data. · line 186

Quoted 2 lines
documentation/ref-manual/classes.rst +2 -0
+   :ref:`fetcher <bitbake-user-manual/bitbake-user-manual-fetching:fetchers>`
+   depending on the nature of the package.

What do you mean by "depending on the nature of the package"?

Quoted 7 lines
Quoted 3 lines

I meant the type, like RPM, tarball, deb… I can replace by "type", and add a "(RPM, Deb, tarball, …)" in parenthesis afterwards.

I would simply remove "depending on the nature of the package", that's already implied? Ah, or we can say depending on the file extension which I believe is how the fetcher is actually figuring out how to extract them?

Sure! File extension's fine to me.

Thanks,
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com