When emerging dev-lang/mono-5.20.1.19-r1, the build process consumes more than 4GB disk space in the portage temp directory. My $PORTAGE_TMPDIR is a 4GB RAM disk, so the ebuild fails after a quite long time with "no space left on device". That's not the user experience I expect. Other ebuilds that consume a lot of space in $PORTAGE_TMPDIR check free space /before/ compiling. Example from www-client/firefox: inherit check-reqs ... pkg_pretend() { # Ensure we have enough disk space to compile if use pgo || use debug || use test ; then CHECKREQS_DISK_BUILD="8G" else CHECKREQS_DISK_BUILD="4G" fi check-reqs_pkg_setup } I recorded the disk usage of emerging dev-lang/mono-5.20.1.19-r1 Installed versions: 5.20.1.19-r1{tbz2}(22:48:04 06/11/19)(nls -doc -minimal -pax_kernel -xen ABI_MIPS="-n32 -n64 -o32" ABI_RISCV="-lp64 -lp64d" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" KERNEL="linux") it took a maximum of 4308MB. Please add CHECKREQS_DISK_BUILD for mono, too.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f2ce176977618670a011966317ddfbd72409829 commit 3f2ce176977618670a011966317ddfbd72409829 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-28 03:45:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-28 04:21:05 +0000 dev-lang/mono: add 6.12.0.122 * Bumps to 6.12.0.122 * Run cert-sync (regenerate certificate store) in pkg_postinst * Add (preliminary) check-reqs.eclass usage * Fix automagic dependencies on: ** app-crypt/mit-krb5 ** sys-libs/zlib (fallback to bundled previously) Bug: https://bugs.gentoo.org/776667 Bug: https://bugs.gentoo.org/719718 Closes: https://bugs.gentoo.org/687892 Closes: https://bugs.gentoo.org/729328 Closes: https://bugs.gentoo.org/762265 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/mono/Manifest | 1 + dev-lang/mono/mono-6.12.0.122.ebuild | 114 +++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+)