commit:     ff13cba4edbd2a712f1d863b96fa549f74a9e91b
Author:     Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
AuthorDate: Tue Dec 12 14:35:44 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Dec 13 07:47:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff13cba4

dev-lang/zig: remove ".max_rss" fields initializers from build.zig in 9999

They are too high and cause errors like below:
 * https://www.github.com/ziglang/zig/issues/18263

Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me>
Closes: https://github.com/gentoo/gentoo/pull/34252
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-lang/zig/zig-9999.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-lang/zig/zig-9999.ebuild b/dev-lang/zig/zig-9999.ebuild
index 6e98f73a3af4..a29f09a3db19 100644
--- a/dev-lang/zig/zig-9999.ebuild
+++ b/dev-lang/zig/zig-9999.ebuild
@@ -148,6 +148,11 @@ src_configure() {
 }
 
 src_compile() {
+       # Remove "limit memory usage" flags, it's already verified by
+       # CHECKREQS_MEMORY and causes unneccessary errors. Upstream set them
+       # according to CI OOM failures, which are higher than during Gentoo 
build.
+       sed -i -e '/\.max_rss = .*,/d' build.zig || die
+
        if ! use llvm; then
                $(tc-getCC) -o bootstrap bootstrap.c || die "Zig's bootstrap.c 
compilation failed"
                edob ./bootstrap

Reply via email to