gnu: autogen: Fix compilation.

* gnu/packages/autogen.scm (autogen)[source]: Add 'modules' and
'snippet'.
This commit is contained in:
Ludovic Courtès 2022-02-11 11:18:59 +01:00
parent 5c2032f7c9
commit c1539e1385
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -40,7 +40,13 @@ (define-public autogen
(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