
This sounds confusing here... I may be mistakenmounty1 wrote:The check is failing because /var/tmp/portage is a 32 GiB file system, chromium is taking 16 GiB so the check for 19 GiB free space is failing. I tried mounting an empty file system at /var/tmp/portage/www-client/chromium-blah/temp/2 (so that in fact there is 19 GiB free under .../temp) but the test was written by Microsoft and fails anyway, no doubt by trying to be too clever and failing.
That's not what OP asked for. There's a difference between disk space and memory requirements. When you want to resume an ebuild, although the sources are unpacked, the pre-merge check is still executed and it fails, although no more additional disk space is required. /Actually the ebuild has no way of knowing that in advance/wjb wrote:You can use package.env to tweak builds for individual packages, Gentoo Wiki: /etc/portage/package.env
So you could change MAKEOPTS to use less cores for chromium, which should reduce the RAM requirements - hopefully to something that will pass the check.
Or modify an ebuild function.
I wish I knew that a few years back. It might have saved a lot of unnecessary compile hours for my old and tired setup back then.Genone wrote:Space checks are performed by the check-reqs eclass. Skimming over that, looks like you can set CHECKREQS_DONOTHING to any value which will then bypass the die() call (the check is still performed and you'll get the message, but execution will continue).
Also I_KNOW_WHAT_I_AM_DOING is not a real thing, there are zero references to it in portage itself (some ebuilds or scripts might reference it, but that's just random then).

Code: Select all
/var/tmp/portage is a 32 GiB file system, chromium is taking 16 GiBCode: Select all
test was written by MicrosoftThank you. This is the key.Hu wrote:... Portage restores the environment from the initial build when processing the resumption.
Code: Select all
declare CHECKREQS_DONOTHING="1"It was a flippant remark referencing Microsoft's predilection for building 'smarts' into their 'products' which cause more problems than they solve.Hu wrote:That comment about the test by Microsoft seems wrong to me. OP seems to be asking about a Gentoo Portage safety check, not something from the upstream project..
I think a clarification about the following is needed:mounty1 wrote:Thank you. This is the key.Hu wrote:... Portage restores the environment from the initial build when processing the resumption.
In /var/tmp/portage/www-client/chromium-blahversion/temp/environment, addand the ebuild proceeds.Code: Select all
declare CHECKREQS_DONOTHING="1"
You don't need to modify anything in PORTAGE_TEMPDIR.Genone wrote:Space checks are performed by the check-reqs eclass. Skimming over that, looks like you can set CHECKREQS_DONOTHING to any value which will then bypass the die() call (the check is still performed and you'll get the message, but execution will continue).
Code: Select all
CHECKREQS_DONOTHING="1" FEATURES="keepwork" emerge chromium
I overlooked that,mounty1 wrote:How do you prevent ebuild whateverthepackage.ebuild compile from performing the checks?