summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2021-05-13 13:27:48 +0200
committerMarius Bakke <marius@gnu.org>2021-05-13 17:03:48 +0200
commit79be6a985799adc6d663890250f4fb7c12f015b4 (patch)
tree2544035cc185af2283e2b35586cbeb7a9fa576b5
parent4087bafd68931a4f29460c5ac6296ed4557b4bf6 (diff)
downloadguix-79be6a985799adc6d663890250f4fb7c12f015b4.tar.gz
gnu: shepherd: Decrease optimization level.
* gnu/packages/admin.scm (shepherd)[source](modules, snippet): New fields.
-rw-r--r--gnu/packages/admin.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 4246852f9c..2cb093b471 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -271,7 +271,14 @@ and provides a \"top-like\" mode (monitoring).")
                                   version ".tar.gz"))
               (sha256
                (base32
-                "0x9zr0x3xvk4qkb6jnda451d5iyrl06cz1bjzjsm0lxvjj3fabyk"))))
+                "0x9zr0x3xvk4qkb6jnda451d5iyrl06cz1bjzjsm0lxvjj3fabyk"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  ;; Build with -O1 to work around <https://bugs.gnu.org/48368>.
+                  (substitute* "Makefile.in"
+                    (("compile --target")
+                     "compile -O1 --target"))))))
     (build-system gnu-build-system)
     (arguments
      '(#:configure-flags '("--localstatedir=/var")