From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F26DA15808B for ; Thu, 17 Feb 2022 21:11:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1850AE0830; Thu, 17 Feb 2022 21:11:41 +0000 (UTC) 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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F36C7E0830 for ; Thu, 17 Feb 2022 21:11:40 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0435342EA4 for ; Thu, 17 Feb 2022 21:11:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5D1792E0 for ; Thu, 17 Feb 2022 21:11:38 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1645132275.7efa176f5dcd69d978f2d110251117a9e1437069.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/boinc.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 7efa176f5dcd69d978f2d110251117a9e1437069 X-VCS-Branch: dev Date: Thu, 17 Feb 2022 21:11:38 +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: 93ce3ffc-01fb-4f60-91a5-0cdbffca3b9e X-Archives-Hash: c43345f977d992cdb17245f830e257e4 commit: 7efa176f5dcd69d978f2d110251117a9e1437069 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Mon Feb 14 15:21:13 2022 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Thu Feb 17 21:11:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7efa176f boinc.eclass: add debug-print-function calls Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/boinc.eclass | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/eclass/boinc.eclass b/eclass/boinc.eclass index 80281c69d..f2c28b628 100644 --- a/eclass/boinc.eclass +++ b/eclass/boinc.eclass @@ -9,7 +9,7 @@ # @DESCRIPTION: # This eclass provides helper functions to build BOINC applications and libraries. -inherit toolchain-funcs +inherit autotools toolchain-funcs case ${EAPI} in 8) ;; @@ -44,6 +44,8 @@ if [[ ! ${_BOINC_ECLASS} ]]; then # @USAGE: [client|server] # @RETURN: SRC_URI snippet or temporary build directory for given BOINC release get_boinc_src() { + debug-print-function ${FUNCNAME} "${@}"] + local query_var=${1} local RELEASE_PATCH=${2} local RELEASE_MINOR=$(ver_cut 1-2 ${RELEASE_PATCH}) @@ -87,6 +89,8 @@ get_boinc_src() { # If no BOINC version is given, this function assumes it equal to client # release $PV. boinc_require_source() { + debug-print-function ${FUNCNAME} "${@}"] + local boinc_version=${1:-${PV}} SRC_URI+=" $(get_boinc_src SRC_URI ${boinc_version} ${2})" @@ -104,7 +108,8 @@ boinc_require_source() { # # This function must be called in global scope. boinc_enable_autotools() { - inherit autotools + debug-print-function ${FUNCNAME} "${@}"] + _BOINC_RUN_AUTOTOOLS=1 _BOINC_ECONF_ARGS=${@:---enable-pkg-devel} } @@ -120,6 +125,8 @@ boinc_enable_autotools() { # # This function must be called in global scope. boinc_override_config() { + debug-print-function ${FUNCNAME} "${@}"] + _BOINC_CONFIG_OVERRIDE="${1}" } @@ -128,6 +135,8 @@ boinc_override_config() { # @DESCRIPTION: # Make sure BOINC_BUILD_DIR has a value. boinc_builddir_check() { + debug-print-function ${FUNCNAME} "${@}"] + if [[ ! ${BOINC_BUILD_DIR} ]]; then eerror "BOINC_BUILD_DIR is not set." die "Did you forget to call boinc_require_source?" @@ -137,6 +146,8 @@ boinc_builddir_check() { } boinc_src_unpack() { + debug-print-function ${FUNCNAME} "${@}"] + default_src_unpack boinc_builddir_check @@ -166,6 +177,8 @@ boinc_src_unpack() { } boinc_src_prepare() { + debug-print-function ${FUNCNAME} "${@}"] + boinc_builddir_check default_src_prepare @@ -177,6 +190,8 @@ boinc_src_prepare() { } boinc_src_configure() { + debug-print-function ${FUNCNAME} "${@}"] + boinc_builddir_check pushd "${BOINC_BUILD_DIR}" >/dev/null || die