Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: eclass/
Date: Sun, 20 Feb 2022 08:46:11
Message-Id: 1645132275.d7ab16c621c6dfa45e7a09bcf39c09b34750f180.flow@gentoo
1 commit: d7ab16c621c6dfa45e7a09bcf39c09b34750f180
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Mon Feb 14 15:22:22 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 17 21:11:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d7ab16c6
7
8 boinc-app.eclass: add debug-print-function calls
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 eclass/boinc-app.eclass | 22 ++++++++++++++++++++++
13 1 file changed, 22 insertions(+)
14
15 diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass
16 index d62c8a91f..8a92447a2 100644
17 --- a/eclass/boinc-app.eclass
18 +++ b/eclass/boinc-app.eclass
19 @@ -77,6 +77,8 @@ in order to use this application with BOINC.}
20 # Generate appropriate (R)DEPEND for wrapper-enabled or
21 # native application.
22 boinc-app_add_deps() {
23 + debug-print-function ${FUNCNAME} "${@}"]
24 +
25 if [[ $1 == "--wrapper" ]]; then
26 RDEPEND="sci-misc/boinc-wrapper"
27 else
28 @@ -90,6 +92,8 @@ boinc-app_add_deps() {
29 # @DESCRIPTION:
30 # Make sure BOINC_MASTER_URL has a value.
31 boinc_master_url_check() {
32 + debug-print-function ${FUNCNAME} "${@}"]
33 +
34 [[ ! ${BOINC_MASTER_URL} ]] && \
35 die "BOINC_MASTER_URL is not set"
36 return 0
37 @@ -99,6 +103,8 @@ boinc_master_url_check() {
38 # @USAGE:
39 # @RETURN: non-prefixed default BOINC runtime directory
40 get_boincdir() {
41 + debug-print-function ${FUNCNAME} "${@}"]
42 +
43 echo /var/lib/boinc
44 }
45
46 @@ -115,6 +121,8 @@ get_boincdir() {
47 # -> boinc.berkeley.edu_example
48 # @CODE
49 get_project_dirname() {
50 + debug-print-function ${FUNCNAME} "${@}"]
51 +
52 boinc_master_url_check
53
54 local dirname
55 @@ -129,6 +137,8 @@ get_project_dirname() {
56 # @USAGE:
57 # @RETURN: non-prefixed directory where applications and files should be installed
58 get_project_root() {
59 + debug-print-function ${FUNCNAME} "${@}"]
60 +
61 echo "$(get_boincdir)/projects/$(get_project_dirname)"
62 }
63
64 @@ -138,6 +148,8 @@ get_project_root() {
65 # The default appinfo_prepare(). It replaces all occurences
66 # of @PV@ with its corresponding value.
67 boinc-app_appinfo_prepare() {
68 + debug-print-function ${FUNCNAME} "${@}"]
69 +
70 sed -i "$1" \
71 -e "s:%PV%:${PV}:g" \
72 || die "app_info.xml sed failed"
73 @@ -169,6 +181,8 @@ boinc-app_appinfo_prepare() {
74 # }
75 # @CODE
76 doappinfo() {
77 + debug-print-function ${FUNCNAME} "${@}"]
78 +
79 (( $# == 1 )) || \
80 die "${FUNCNAME} takes exactly one argument"
81
82 @@ -193,6 +207,8 @@ doappinfo() {
83 # The default foreach_wrapper_job(). It replaces all occurences
84 # of @PV@, @EPREFIX@ and @LIBDIR@ strings with their corresponding values.
85 boinc-wrapper_foreach_wrapper_job() {
86 + debug-print-function ${FUNCNAME} "${@}"]
87 +
88 sed -i "$1" \
89 -e "s:@PV@:${PV}:g" \
90 -e "s:@EPREFIX@:${EPREFIX}:g" \
91 @@ -227,6 +243,8 @@ boinc-wrapper_foreach_wrapper_job() {
92 #
93 # Keep your job.xml files in sync with app_info.xml!
94 dowrapper() {
95 + debug-print-function ${FUNCNAME} "${@}"]
96 +
97 for app in "$@"; do
98 local wrapperjob="${app}_job_${PV}.xml"
99 local wrapperexe="${app}_wrapper_${PV}"
100 @@ -256,6 +274,8 @@ dowrapper() {
101 # Display helpful instructions on how to make the BOINC client use installed
102 # applications.
103 boinc-app_pkg_postinst() {
104 + debug-print-function ${FUNCNAME} "${@}"]
105 +
106 if [[ -f "${EROOT}$(get_boincdir)/master_$(get_project_dirname).xml" ]]; then
107 if [[ ! ${REPLACING_VERSIONS} ]]; then
108 # most likely replacing applications downloaded
109 @@ -289,6 +309,8 @@ boinc-app_pkg_postinst() {
110 # Display helpful instructions on how to cleanly uninstall unmerged
111 # applications.
112 boinc-app_pkg_postrm() {
113 + debug-print-function ${FUNCNAME} "${@}"]
114 +
115 if [[ ! ${REPLACED_BY_VERSION} ]]; then
116 local gui_rpc_auth="$(get_boincdir)/gui_rpc_auth.cfg"
117 local passwd=$(cat "${EROOT}${gui_rpc_auth}")