1 |
On 18/07/2021 21:52, Andreas Sturmlechner wrote: |
2 |
> Move EAPI check and EXPORT_FUNCTIONS on top, before include guard. |
3 |
> Standardise include guard. |
4 |
> |
5 |
> Signed-off-by: Andreas Sturmlechner <asturm@g.o> |
6 |
> --- |
7 |
> eclass/check-reqs.eclass | 20 ++++++++++---------- |
8 |
> 1 file changed, 10 insertions(+), 10 deletions(-) |
9 |
> |
10 |
> diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass |
11 |
> index 5c4a420ee06..70c740d0363 100644 |
12 |
> --- a/eclass/check-reqs.eclass |
13 |
> +++ b/eclass/check-reqs.eclass |
14 |
> @@ -7,7 +7,7 @@ |
15 |
> # @AUTHOR: |
16 |
> # Bo Ørsted Andresen <zlin@g.o> |
17 |
> # Original Author: Ciaran McCreesh <ciaranm@g.o> |
18 |
> -# @SUPPORTED_EAPIS: 4 5 6 7 |
19 |
> +# @SUPPORTED_EAPIS: 4 5 6 7 8 |
20 |
> # @BLURB: Provides a uniform way of handling ebuild which have very high build requirements |
21 |
|
22 |
I know that this patch did not introduce it, but there is a typo here |
23 |
('ebuild' should be 'ebuilds'). Is this something that can be fixed now? |
24 |
|
25 |
> # @DESCRIPTION: |
26 |
> # This eclass provides a uniform way of handling ebuilds which have very high |
27 |
> @@ -38,7 +38,15 @@ |
28 |
> # These checks should probably mostly work on non-Linux, and they should |
29 |
> # probably degrade gracefully if they don't. Probably. |
30 |
> |
31 |
> -if [[ ! ${_CHECK_REQS_ECLASS_} ]]; then |
32 |
> +case ${EAPI:-0} in |
33 |
> + 4|5|6|7|8) ;; |
34 |
> + *) die "${ECLASS}: EAPI=${EAPI:-0} is not supported" ;; |
35 |
> +esac |
36 |
> + |
37 |
> +EXPORT_FUNCTIONS pkg_pretend pkg_setup |
38 |
> + |
39 |
> +if [[ ! ${_CHECK_REQS_ECLASS} ]]; then |
40 |
> +_CHECK_REQS_ECLASS=1 |
41 |
> |
42 |
> # @ECLASS-VARIABLE: CHECKREQS_MEMORY |
43 |
> # @DEFAULT_UNSET |
44 |
> @@ -60,13 +68,6 @@ if [[ ! ${_CHECK_REQS_ECLASS_} ]]; then |
45 |
> # @DESCRIPTION: |
46 |
> # How much space is needed in /var? Eg.: CHECKREQS_DISK_VAR=3000M |
47 |
> |
48 |
> -case ${EAPI:-0} in |
49 |
> - 4|5|6|7) ;; |
50 |
> - *) die "${ECLASS}: EAPI=${EAPI:-0} is not supported" ;; |
51 |
> -esac |
52 |
> - |
53 |
> -EXPORT_FUNCTIONS pkg_pretend pkg_setup |
54 |
> - |
55 |
> # Obsolete function executing all the checks and printing out results |
56 |
> check_reqs() { |
57 |
> eerror "Package calling old ${FUNCNAME} function." |
58 |
> @@ -357,5 +358,4 @@ check-reqs_unsatisfied() { |
59 |
> CHECKREQS_FAILED="true" |
60 |
> } |
61 |
> |
62 |
> -_CHECK_REQS_ECLASS_=1 |
63 |
> fi |
64 |
> |