aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-02-11 11:18:59 +0100
committerLudovic Courtès <ludo@gnu.org>2022-02-11 17:28:00 +0100
commitc1539e1385e2287c5f6eb0a69efdb1d539fe15f5 (patch)
tree95d9a49c107031a16cf1f91f042837f449047029
parent5c2032f7c94d6381144afe571c82880eab5a9c1c (diff)
downloadguix-c1539e1385e2287c5f6eb0a69efdb1d539fe15f5.tar.gz
guix-c1539e1385e2287c5f6eb0a69efdb1d539fe15f5.zip
gnu: autogen: Fix compilation.
* gnu/packages/autogen.scm (autogen)[source]: Add 'modules' and 'snippet'.
-rw-r--r--gnu/packages/autogen.scm8
1 files changed, 7 insertions, 1 deletions
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