Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687892 - dev-lang/mono-5.20.1.19-r1 emerge fails when less than 4300MB free on $PORTAGE_TMPDIR
Summary: dev-lang/mono-5.20.1.19-r1 emerge fails when less than 4300MB free on $PORTAG...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-11 21:09 UTC by Martin Dummer
Modified: 2021-03-28 04:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Dummer 2019-06-11 21:09:51 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2021-03-28 04:21:18 UTC
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(+)