Skip to contentSkip to conversation

ref-manual/variables.rst: document INHIBIT_AUTOTOOLS_DEPS

PATCH Superseded Alper Ak 2 participants 2 messages May 18, 2025 – May 19, 2025

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Alper Ak

author
#0 lore raw

PATCH 1/1 ref-manual/variables.rst: document INHIBIT_AUTOTOOLS_DEPS

Fix [YOCTO #15756]

---
 documentation/ref-manual/variables.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
documentation/ref-manual/variables.rst +14 -0
index 643a3e7ae..d73b0d30e 100644
@@ -4487,6 +4487,20 @@ system and gives an overview of their function and contents.
 
          INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
 
+   :term:`INHIBIT_AUTOTOOLS_DEPS`
+      Prevents the :ref:`ref-classes-autotools` class from automatically adding its default build-time dependencies.
+
+      When a recipe inherits the ``autotools``, several native, cross tools such as
+      ``autoconf-native``, ``automake-native``, ``libtool-native``, ``libtool-cross``
+      are added to :term:`DEPENDS` to support the autotools build process.
+
+      To prevent the build system from adding these dependencies automatically, set the
+      :term:`INHIBIT_AUTOTOOLS_DEPS` variable as follows::
+
+         INHIBIT_AUTOTOOLS_DEPS = "1"
+
+      By default, the value of :term:`INHIBIT_AUTOTOOLS_DEPS` is empty.
+
    :term:`INHIBIT_DEFAULT_DEPS`
       Prevents the default dependencies, namely the C compiler and standard
       C library (libc), from being added to :term:`DEPENDS`.
Signature · 1 line
2.43.0
#1 lore raw

Hi,

Quoted 12 lines · Alper Ak via lists.yoctoproject.org

Fix [YOCTO #15756]

---
 documentation/ref-manual/variables.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae..d73b0d30e 100644

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

Quoted 7 lines
documentation/ref-manual/variables.rst +4 -0
@@ -4487,6 +4487,20 @@ system and gives an overview of their function and contents.
 
          INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool create-spdx"
 
+   :term:`INHIBIT_AUTOTOOLS_DEPS`
+      Prevents the :ref:`ref-classes-autotools` class from automatically adding its default build-time dependencies.
+
+      When a recipe inherits the ``autotools``, several native, cross tools such as

s/the ``autotools``/the :ref:ref-classes-autotools class/

You can remove the comma after "several native".

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

Quoted 13 lines
documentation/ref-manual/variables.rst +10 -0
+      ``autoconf-native``, ``automake-native``, ``libtool-native``, ``libtool-cross``
+      are added to :term:`DEPENDS` to support the autotools build process.
+
+      To prevent the build system from adding these dependencies automatically, set the
+      :term:`INHIBIT_AUTOTOOLS_DEPS` variable as follows::
+
+         INHIBIT_AUTOTOOLS_DEPS = "1"
+
+      By default, the value of :term:`INHIBIT_AUTOTOOLS_DEPS` is empty.
+
    :term:`INHIBIT_DEFAULT_DEPS`
       Prevents the default dependencies, namely the C compiler and standard
       C library (libc), from being added to :term:`DEPENDS`.

Looks good otherwise, thank you.

Antonin

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