ACK/APPLIED [U]: [Unstable][PATCH] UBUNTU: [Packaging] kernelconfig: Bubble up warnings and errors
Andrea Righi
andrea.righi at canonical.com
Mon Jun 13 06:54:17 UTC 2022
On Mon, May 09, 2022 at 11:12:06AM +0200, Juerg Haefliger wrote:
> Config annotation check failures and warnings due to incomplete config
> operations are really bad, so exit the script with a non-zero status if
> such errors or warnings are detected.
>
> Ignore: yes
> Signed-off-by: Juerg Haefliger <juergh at canonical.com>
I like this, we should definitely treat these warnings as errors here.
Acked-by: Andrea Righi <andrea.righi at canonical.com>
> ---
> debian/scripts/misc/kernelconfig | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/debian/scripts/misc/kernelconfig b/debian/scripts/misc/kernelconfig
> index f95396e28f28..31b4259a1fcb 100755
> --- a/debian/scripts/misc/kernelconfig
> +++ b/debian/scripts/misc/kernelconfig
> @@ -192,7 +192,9 @@ for arch in $archs; do
> done
> done
>
> +rc=0
> if [ "$fail" != 0 ]; then
> + rc=1
> echo ""
> echo "*** ERROR: $fail config-check failures detected"
> echo ""
> @@ -201,7 +203,10 @@ fi
> rm -rf build
>
> if [ "$warning_partial" ]; then
> + rc=1
> echo ""
> echo "WARNING: configuration operation applied only to a subset of architectures (skipped$warning_partial)" 1>&2
> echo ""
> fi
> +
> +exit "${rc}"
> --
> 2.32.0
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list