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 2093815808B for ; Sun, 20 Feb 2022 08:46:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 357D2E07ED; Sun, 20 Feb 2022 08:46:10 +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 pigeon.gentoo.org (Postfix) with ESMTPS id EF639E07DF for ; Sun, 20 Feb 2022 08:46:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 E17413438FD for ; Sun, 20 Feb 2022 08:46:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5AC9D2E0 for ; Sun, 20 Feb 2022 08:46:07 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1645132275.d7ab16c621c6dfa45e7a09bcf39c09b34750f180.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/boinc-app.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: d7ab16c621c6dfa45e7a09bcf39c09b34750f180 X-VCS-Branch: master Date: Sun, 20 Feb 2022 08:46:07 +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: 22d69f45-5e01-4930-a829-37a0f8f02bd8 X-Archives-Hash: 80ee29ccba37989fe7b88910e825bc83 commit: d7ab16c621c6dfa45e7a09bcf39c09b34750f180 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Mon Feb 14 15:22:22 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Feb 17 21:11:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d7ab16c6 boinc-app.eclass: add debug-print-function calls Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/boinc-app.eclass | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index d62c8a91f..8a92447a2 100644 --- a/eclass/boinc-app.eclass +++ b/eclass/boinc-app.eclass @@ -77,6 +77,8 @@ in order to use this application with BOINC.} # Generate appropriate (R)DEPEND for wrapper-enabled or # native application. boinc-app_add_deps() { + debug-print-function ${FUNCNAME} "${@}"] + if [[ $1 == "--wrapper" ]]; then RDEPEND="sci-misc/boinc-wrapper" else @@ -90,6 +92,8 @@ boinc-app_add_deps() { # @DESCRIPTION: # Make sure BOINC_MASTER_URL has a value. boinc_master_url_check() { + debug-print-function ${FUNCNAME} "${@}"] + [[ ! ${BOINC_MASTER_URL} ]] && \ die "BOINC_MASTER_URL is not set" return 0 @@ -99,6 +103,8 @@ boinc_master_url_check() { # @USAGE: # @RETURN: non-prefixed default BOINC runtime directory get_boincdir() { + debug-print-function ${FUNCNAME} "${@}"] + echo /var/lib/boinc } @@ -115,6 +121,8 @@ get_boincdir() { # -> boinc.berkeley.edu_example # @CODE get_project_dirname() { + debug-print-function ${FUNCNAME} "${@}"] + boinc_master_url_check local dirname @@ -129,6 +137,8 @@ get_project_dirname() { # @USAGE: # @RETURN: non-prefixed directory where applications and files should be installed get_project_root() { + debug-print-function ${FUNCNAME} "${@}"] + echo "$(get_boincdir)/projects/$(get_project_dirname)" } @@ -138,6 +148,8 @@ get_project_root() { # The default appinfo_prepare(). It replaces all occurences # of @PV@ with its corresponding value. boinc-app_appinfo_prepare() { + debug-print-function ${FUNCNAME} "${@}"] + sed -i "$1" \ -e "s:%PV%:${PV}:g" \ || die "app_info.xml sed failed" @@ -169,6 +181,8 @@ boinc-app_appinfo_prepare() { # } # @CODE doappinfo() { + debug-print-function ${FUNCNAME} "${@}"] + (( $# == 1 )) || \ die "${FUNCNAME} takes exactly one argument" @@ -193,6 +207,8 @@ doappinfo() { # The default foreach_wrapper_job(). It replaces all occurences # of @PV@, @EPREFIX@ and @LIBDIR@ strings with their corresponding values. boinc-wrapper_foreach_wrapper_job() { + debug-print-function ${FUNCNAME} "${@}"] + sed -i "$1" \ -e "s:@PV@:${PV}:g" \ -e "s:@EPREFIX@:${EPREFIX}:g" \ @@ -227,6 +243,8 @@ boinc-wrapper_foreach_wrapper_job() { # # Keep your job.xml files in sync with app_info.xml! dowrapper() { + debug-print-function ${FUNCNAME} "${@}"] + for app in "$@"; do local wrapperjob="${app}_job_${PV}.xml" local wrapperexe="${app}_wrapper_${PV}" @@ -256,6 +274,8 @@ dowrapper() { # Display helpful instructions on how to make the BOINC client use installed # applications. boinc-app_pkg_postinst() { + debug-print-function ${FUNCNAME} "${@}"] + if [[ -f "${EROOT}$(get_boincdir)/master_$(get_project_dirname).xml" ]]; then if [[ ! ${REPLACING_VERSIONS} ]]; then # most likely replacing applications downloaded @@ -289,6 +309,8 @@ boinc-app_pkg_postinst() { # Display helpful instructions on how to cleanly uninstall unmerged # applications. boinc-app_pkg_postrm() { + debug-print-function ${FUNCNAME} "${@}"] + if [[ ! ${REPLACED_BY_VERSION} ]]; then local gui_rpc_auth="$(get_boincdir)/gui_rpc_auth.cfg" local passwd=$(cat "${EROOT}${gui_rpc_auth}")