guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: gnu: autogen: Fix compilation.


From: guix-commits
Subject: 01/05: gnu: autogen: Fix compilation.
Date: Fri, 11 Feb 2022 11:30:45 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit c1539e1385e2287c5f6eb0a69efdb1d539fe15f5
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Feb 11 11:18:59 2022 +0100

    gnu: autogen: Fix compilation.
    
    * gnu/packages/autogen.scm (autogen)[source]: Add 'modules' and
    'snippet'.
---
 gnu/packages/autogen.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/autogen.scm b/gnu/packages/autogen.scm
index 1fe742bbae..7213776f07 100644
--- a/gnu/packages/autogen.scm
+++ b/gnu/packages/autogen.scm
@@ -40,7 +40,13 @@
        (uri (string-append "mirror://gnu/autogen/rel" version
                            "/autogen-" version ".tar.xz"))
        (sha256
-        (base32 "16mlbdys8q4ckxlvxyhwkdnh1ay9f6g0cyp1kylkpalgnik398gq"))))
+        (base32 "16mlbdys8q4ckxlvxyhwkdnh1ay9f6g0cyp1kylkpalgnik398gq"))
+       (modules '((guix build utils)))
+       (snippet
+        ;; Address '-Werror=format-overflow' error.
+        '(substitute* "getdefs/getdefs.c"
+           (("def_bf\\[[[:space:]]*MAXNAMELEN[[:space:]]*\\]")
+            "def_bf[MAXNAMELEN + 10]")))))
     (build-system gnu-build-system)
     (native-inputs (list pkg-config which))
     (inputs (list guile-2.2 perl))          ; for doc generator mdoc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]