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:10
Message-Id: 1645132275.7efa176f5dcd69d978f2d110251117a9e1437069.flow@gentoo
1 commit: 7efa176f5dcd69d978f2d110251117a9e1437069
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Mon Feb 14 15:21:13 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=7efa176f
7
8 boinc.eclass: add debug-print-function calls
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 eclass/boinc.eclass | 19 +++++++++++++++++--
13 1 file changed, 17 insertions(+), 2 deletions(-)
14
15 diff --git a/eclass/boinc.eclass b/eclass/boinc.eclass
16 index 80281c69d..f2c28b628 100644
17 --- a/eclass/boinc.eclass
18 +++ b/eclass/boinc.eclass
19 @@ -9,7 +9,7 @@
20 # @DESCRIPTION:
21 # This eclass provides helper functions to build BOINC applications and libraries.
22
23 -inherit toolchain-funcs
24 +inherit autotools toolchain-funcs
25
26 case ${EAPI} in
27 8) ;;
28 @@ -44,6 +44,8 @@ if [[ ! ${_BOINC_ECLASS} ]]; then
29 # @USAGE: <SRC_URI|S> <release> [client|server]
30 # @RETURN: SRC_URI snippet or temporary build directory for given BOINC release
31 get_boinc_src() {
32 + debug-print-function ${FUNCNAME} "${@}"]
33 +
34 local query_var=${1}
35 local RELEASE_PATCH=${2}
36 local RELEASE_MINOR=$(ver_cut 1-2 ${RELEASE_PATCH})
37 @@ -87,6 +89,8 @@ get_boinc_src() {
38 # If no BOINC version is given, this function assumes it equal to client
39 # release $PV.
40 boinc_require_source() {
41 + debug-print-function ${FUNCNAME} "${@}"]
42 +
43 local boinc_version=${1:-${PV}}
44 SRC_URI+=" $(get_boinc_src SRC_URI ${boinc_version} ${2})"
45
46 @@ -104,7 +108,8 @@ boinc_require_source() {
47 #
48 # This function must be called in global scope.
49 boinc_enable_autotools() {
50 - inherit autotools
51 + debug-print-function ${FUNCNAME} "${@}"]
52 +
53 _BOINC_RUN_AUTOTOOLS=1
54 _BOINC_ECONF_ARGS=${@:---enable-pkg-devel}
55 }
56 @@ -120,6 +125,8 @@ boinc_enable_autotools() {
57 #
58 # This function must be called in global scope.
59 boinc_override_config() {
60 + debug-print-function ${FUNCNAME} "${@}"]
61 +
62 _BOINC_CONFIG_OVERRIDE="${1}"
63 }
64
65 @@ -128,6 +135,8 @@ boinc_override_config() {
66 # @DESCRIPTION:
67 # Make sure BOINC_BUILD_DIR has a value.
68 boinc_builddir_check() {
69 + debug-print-function ${FUNCNAME} "${@}"]
70 +
71 if [[ ! ${BOINC_BUILD_DIR} ]]; then
72 eerror "BOINC_BUILD_DIR is not set."
73 die "Did you forget to call boinc_require_source?"
74 @@ -137,6 +146,8 @@ boinc_builddir_check() {
75 }
76
77 boinc_src_unpack() {
78 + debug-print-function ${FUNCNAME} "${@}"]
79 +
80 default_src_unpack
81 boinc_builddir_check
82
83 @@ -166,6 +177,8 @@ boinc_src_unpack() {
84 }
85
86 boinc_src_prepare() {
87 + debug-print-function ${FUNCNAME} "${@}"]
88 +
89 boinc_builddir_check
90 default_src_prepare
91
92 @@ -177,6 +190,8 @@ boinc_src_prepare() {
93 }
94
95 boinc_src_configure() {
96 + debug-print-function ${FUNCNAME} "${@}"]
97 +
98 boinc_builddir_check
99 pushd "${BOINC_BUILD_DIR}" >/dev/null || die