commit: 8476661324dc5004b4bdd12c77d06a87b13b91ee Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Fri Feb 2 18:34:44 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Fri Feb 2 23:06:27 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84766613
dev-dotnet/dotnet-sdk: log verbosity settings; set maxCpuCount Bug: https://github.com/dotnet/source-build/discussions/4082 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.101.ebuild | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.101.ebuild b/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.101.ebuild index 7595aa29a8ac..1662f5f5ee6c 100644 --- a/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.101.ebuild +++ b/dev-dotnet/dotnet-sdk/dotnet-sdk-8.0.101.ebuild @@ -1,6 +1,7 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Pre-build (and distribution preparation) # Build the tarball: # git clone --depth 1 -b v8.0.1 https://github.com/dotnet/dotnet dotnet-sdk-8.0.1 # cd dotnet-sdk-8.0.1 @@ -11,6 +12,11 @@ # tar -acf dotnet-sdk-8.0.101-prepared-gentoo-amd64.tar.xz dotnet-sdk-8.0.1 # Upload dotnet-sdk-8.0.101-prepared-gentoo-amd64.tar.xz +# Build ("src_compile") +# To learn about arguments that are passed to the "build.sh" script see: +# https://github.com/dotnet/source-build/discussions/4082 +# User variable: GENTOO_DOTNET_BUILD_VERBOSITY - set other verbosity log level. + EAPI=8 COMMIT=b27976e5a6850466ee5b4ce24f91ee93bef645f7 @@ -20,7 +26,7 @@ RUNTIME_SLOT="${SDK_SLOT}.1" LLVM_MAX_SLOT=17 PYTHON_COMPAT=( python3_{10..12} ) -inherit check-reqs flag-o-matic llvm python-any-r1 +inherit check-reqs flag-o-matic llvm multiprocessing python-any-r1 DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" HOMEPAGE="https://dotnet.microsoft.com/ @@ -140,12 +146,21 @@ src_compile() { # The "source_repository" should always be the same. local source_repository="https://github.com/dotnet/dotnet" + local verbosity="${GENTOO_DOTNET_BUILD_VERBOSITY:-minimal}" ebegin "Building the .NET SDK ${SDK_SLOT}" local -a buildopts=( --clean-while-building --source-repository "${source_repository}" --source-version "${COMMIT}" + + -- + -maxCpuCount:"$(makeopts_jobs)" + -verbosity:"${verbosity}" + -p:ContinueOnPrebuiltBaselineError=true + -p:LogVerbosity="${verbosity}" + -p:MinimalConsoleLogOutput=false + -p:verbosity="${verbosity}" ) bash ./build.sh "${buildopts[@]}" eend ${?} || die "build failed"