From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A6F1F1582EF for ; Fri, 07 Mar 2025 01:23:49 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 8F742342FDE for ; Fri, 07 Mar 2025 01:23:49 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9AAEB1102D2; Fri, 07 Mar 2025 01:23:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 8F4551102D2 for ; Fri, 07 Mar 2025 01:23:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1A475342F99 for ; Fri, 07 Mar 2025 01:23:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7936E271B for ; Fri, 07 Mar 2025 01:23:43 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1741310151.83f46749d45ee192cfc575b0b2b94cf281ce97b9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/libtool.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 83f46749d45ee192cfc575b0b2b94cf281ce97b9 X-VCS-Branch: master Date: Fri, 07 Mar 2025 01:23:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 71efed23-4d98-47d1-9a51-af0a96dbe973 X-Archives-Hash: a40cbf7cf55079a5652a27f498687f9d commit: 83f46749d45ee192cfc575b0b2b94cf281ce97b9 Author: Sam James gentoo org> AuthorDate: Fri Mar 7 01:13:00 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Mar 7 01:15:51 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83f46749 libtool.eclass: add LIBTOOL_DEPEND The motivation here is to allow autotools.eclass consumers setting AUTOTOOLS_AUTO_DEPEND=no to not have a useless app-portage/elt-patches dependency. Prompted by a discussion with Eli Schwartz gentoo.org>. Signed-off-by: Sam James gentoo.org> eclass/libtool.eclass | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass index 6565faf07e83..7f21ac11575a 100644 --- a/eclass/libtool.eclass +++ b/eclass/libtool.eclass @@ -22,10 +22,23 @@ case ${EAPI} in *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac -BDEPEND=">=app-portage/elt-patches-20250306" - 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" + +# @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: