GNU bug report logs - #77431
[PATCH] gnu: zig: Set rss_max to unlimited

Previous Next

Package: guix-patches;

Reported by: Tommy Langhelle <tomlanghe <at> gmail.com>

Date: Tue, 1 Apr 2025 14:00:15 UTC

Severity: normal

Tags: patch

Done: Hilton Chain <hako <at> ultrarare.space>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 77431 <at> debbugs.gnu.org (full text, mbox):

From: Tommy Langhelle <tomlanghe <at> gmail.com>
To: 77431 <at> debbugs.gnu.org
Cc: hako <at> ultrarare.space, Tommy Langhelle <tommy.langhelle <at> tv2.no>
Subject: [PATCH v2] gnu: zig: Set rss_max to unlimited for 0.14
Date: Fri,  4 Apr 2025 13:53:19 +0200
Upstream sets this for CI purposes, but it fails my ARM builds. The
limit itself doesn't make too much sense as long as zig builds and the
build host is big enough, so simply allowing unlimited rss should be
fine.

* gnu/packages/zig.scm (zig-0.14)[source]: Set max_rss to unlimited.
---
 gnu/packages/zig.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm
index 733251242e..17c859ad70 100644
--- a/gnu/packages/zig.scm
+++ b/gnu/packages/zig.scm
@@ -1871,7 +1871,12 @@ (define-public zig-0.14
         (search-patches
          "zig-0.14-use-baseline-cpu-by-default.patch"
          "zig-0.14-use-system-paths.patch"
-         "zig-0.14-fix-runpath.patch"))))
+         "zig-0.14-fix-runpath.patch"))
+         (snippet
+          #~(begin
+            #$(origin-snippet (package-source zig-0.13))
+            (substitute* "build.zig"
+              ((".max_rss = [0-9_]+,") ".max_rss = 0,"))))))
     (inputs
      (modify-inputs (package-inputs zig-0.13)
        (replace "clang" clang-19)

base-commit: e7aeec67feaa5cf888f0aae14400fc015390aa8e
-- 
2.41.0





This bug report was last modified 107 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.