From a2fc6c9fa1494a6cc9be57f7c8a0bebff1eae28b Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 17 Mar 2025 07:08:27 +0000 Subject: [PATCH] eclass/libtool: Sync with Gentoo It's from Gentoo commit c263fc4e410d5f260eeb0969a350cf7ef00da6ba. --- .../portage-stable/eclass/libtool.eclass | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/libtool.eclass b/sdk_container/src/third_party/portage-stable/eclass/libtool.eclass index 8ffc06d6ff..18596a9223 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/libtool.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/libtool.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: libtool.eclass @@ -22,10 +22,23 @@ case ${EAPI} in *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -BDEPEND=">=app-portage/elt-patches-20240116" - inherit toolchain-funcs +# @ECLASS_VARIABLE: LIBTOOL_DEPEND +# @OUTPUT_VARIABLE +# @DESCRIPTION: +# Contains dependency on app-portage/elt-patches in *DEPEND format. +LIBTOOL_DEPEND=">=app-portage/elt-patches-20250306" + +# @ECLASS_VARIABLE: LIBTOOL_AUTO_DEPEND +# @PRE_INHERIT +# @DESCRIPTION: +# Set to 'no' to disable automatically adding to DEPEND. This lets +# ebuilds form conditional depends by using ${LIBTOOL_DEPEND} in +# their own DEPEND string. +: "${LIBTOOL_AUTO_DEPEND:=yes}" +[[ ${LIBTOOL_AUTO_DEPEND} != "no" ]] && BDEPEND=${LIBTOOL_DEPEND} + # @FUNCTION: elibtoolize # @USAGE: [dirs] [--portage] [--reverse-deps] [--patch-only] [--remove-internal-dep=xxx] [--shallow] [--no-uclibc] # @DESCRIPTION: