1 |
On Fri, Aug 05, 2022 at 06:47:42PM -0400, Mike Pagano wrote: |
2 |
> Based upon code from check-reqs.eclass by Andreas Sturmlechner |
3 |
> |
4 |
> Provide support for users who requested the ability to skip |
5 |
> CONFIG_* checks. (e.g. from within a chroot for testing purposes) |
6 |
> |
7 |
> Bug: https://bugs.gentoo.org/862315 |
8 |
> Signed-off-by: Mike Pagano <mpagano@g.o> |
9 |
> --- |
10 |
> eclass/linux-info.eclass | 11 ++++++++++- |
11 |
> 1 file changed, 10 insertions(+), 1 deletion(-) |
12 |
> |
13 |
> diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass |
14 |
> index 7e130062a..59e86490f 100644 |
15 |
> --- a/eclass/linux-info.eclass |
16 |
> +++ b/eclass/linux-info.eclass |
17 |
> @@ -29,6 +29,15 @@ |
18 |
> # A Couple of env vars are available to effect usage of this eclass |
19 |
> # These are as follows: |
20 |
> |
21 |
> + |
22 |
> +# @ECLASS_VARIABLE: CHECKCONFIG_DONOTHING |
23 |
> +# @USER_VARIABLE |
24 |
> +# @DEFAULT_UNSET |
25 |
> +# @DESCRIPTION: |
26 |
> +# Do not error out in check_extra_config if CONFIG settings are not met. |
27 |
> +# This is a user flag and should under _no circumstances_ be set in the ebuild. |
28 |
> +[[ -n ${I_KNOW_WHAT_I_AM_DOING} ]] && CHECKCONFIG_DONOTHING=1 |
29 |
|
30 |
So this enables it if I_KNOW_WHAT_I_AM_DOING is set? |
31 |
|
32 |
Generally I feel giving more purposes to that variable is a bad idea. |
33 |
What starts out as "don't bother me about size/ram checks" ignores |
34 |
a lot of other things that may be not be expected. |
35 |
|
36 |
> + |
37 |
> # @ECLASS_VARIABLE: KERNEL_DIR |
38 |
> # @DESCRIPTION: |
39 |
> # A string containing the directory of the target kernel sources. The default value is |
40 |
> @@ -978,7 +987,7 @@ linux-info_pkg_setup() { |
41 |
> |
42 |
> linux-info_get_any_version |
43 |
> |
44 |
> - [ -n "${CONFIG_CHECK}" ] && check_extra_config; |
45 |
> + [[ -n "${CONFIG_CHECK}" && -z ${CHECKCONFIG_DONOTHING} ]] && check_extra_config; |
46 |
> } |
47 |
> |
48 |
> # @FUNCTION: kernel_get_makefile |
49 |
> -- |
50 |
> 2.35.1 |
51 |
> |
52 |
> |
53 |
> |
54 |
> -- |
55 |
> Mike Pagano |
56 |
> Gentoo Developer - Kernel Project |
57 |
> Gentoo Sources - Lead |
58 |
> E-Mail : mpagano@g.o |
59 |
> GnuPG FP : 52CC A0B0 F631 0B17 0142 F83F 92A6 DBEC 81F2 B137 |
60 |
> Public Key : http://http://pgp.mit.edu/pks/lookup?search=0x92A6DBEC81F2B137&op=index |
61 |
|
62 |
|
63 |
|
64 |
|
65 |
-- |
66 |
ionen |