Hello, it would be useful to allow users to include swap space for memory estimation. Sometimes this is the only way to build package without cross-compiling. So I propose something like: CHECKREQS_MEMORY_USE_SWAP="yes|no" which can be set on command line, in make.conf or in per-package env setup. This option should be disabled by default, of course.
Similar issue with bug #579658 where would be useful to skip CHECKREQS_MEMORY
Created attachment 576460 [details, diff] Patch This patch checks for swap unconditionally. If usage of swap appears to be needed, then a warning is printed.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=297e41122a17dea6e7867ed4345255916c379a6c commit 297e41122a17dea6e7867ed4345255916c379a6c Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2019-05-13 14:30:15 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2019-08-19 20:27:36 +0000 check-reqs.eclass: check-reqs_memory(): Check for available swap. Print warning if usage of swap appears to be needed. Closes: https://bugs.gentoo.org/569966 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Ulrich Müller <ulm@gentoo.org> eclass/check-reqs.eclass | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)