• [gentoo-dev] [PATCH 1/2] eclass/dotnet-pkg-base.eclass: add DOTNET_VERB

    From xgqt@gentoo.org@21:1/5 to All on Tue Jan 7 18:30:01 2025
    From: Maciej Barć <xgqt@gentoo.org>

    DOTNET_VERBOSITY controls dotnet restore/build/test verbosity.
    We allow the user to set this value to any other to value because it
    might be helpful when debugging dotnet processes. On the other hand,
    generally warnings and errors provide enough info for debugging package
    emerge process.

    Normally we use the default value - "minimal", that still reports what is
    being built and any warnings/errors but it might come handy to set it
    to a higher value for the Gentoo Tinderbox CI.

    Signed-off-by: Maciej Barć <xgqt@gentoo.org>
    ---
    eclass/dotnet-pkg-base.eclass | 23 ++++++++++++++++++++++-
    1 file changed, 22 insertions(+), 1 deletion(-)

    diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass index d9abff3859..b266c1b5df 100644
    --- a/eclass/dotnet-pkg-base.eclass
    +++ b/eclass/dotnet-pkg-base.eclass
    @@ -1,4 +1,4 @@
    -# Copyright 1999-2024 Gentoo Authors
    +# Copyright 1999-2025 Gentoo Authors
    # Distributed under the terms of the GNU General Public License v2

    # @ECLASS: dotnet-pkg-base.eclass
    @@ -32,6 +32,23 @@ _DOTNET_PKG_BASE_ECLASS=1

    inherit edo multiprocessing nuget

    +# @ECLASS_VARIABLE: DOTNET_VERBOSITY
    +# @USER_VARIABLE
    +# @DESCRIPTION:
    +# Controls verbosity of the dotnet restore/build/test processes.
    +#
    +# Defaults to "minimal" - this only reports which projects are being built
    +# and warnings/errors, if any. All the possible values are: "quiet", "minimal",
    +# "normal", "detailed" and "diagnostic". For more information on verbosity
    +# levels, see the official .NET SDK documentati