commit:     2b5a13c5a6b9f6e8d8fba44a1ad6577a35198459
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  7 01:14:50 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar  7 01:15:54 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b5a13c5

autotools.eclass: conditionalize elt-patches (libtool.eclass) dependency

Use newly-added LIBTOOL_DEPEND so that LIBTOOL_AUTO_DEPEND=no doesn't
result in a useless dependency on elt-patches in the WANT_LIBTOOL=no case.

Prompted by a discussion with Eli Schwartz <eschwartz <AT> gentoo.org>.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/autotools.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index a36b6ba859be..1545b88bc426 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -32,6 +32,7 @@ case ${EAPI} in
 esac
 
 GNUCONFIG_AUTO_DEPEND=no
+LIBTOOL_AUTO_DEPEND=no
 inherit gnuconfig libtool
 
 # @ECLASS_VARIABLE: WANT_AUTOCONF
@@ -152,6 +153,7 @@ fi
 # versions in *DEPEND format.
 AUTOTOOLS_DEPEND="
        ${GNUCONFIG_DEPEND}
+       ${LIBTOOL_DEPEND}
        ${_automake_atom}
        ${_autoconf_atom}
        ${_libtool_atom}

Reply via email to