mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-07 20:04:06 -05:00
gnu: inetutils: Fix build with GCC 10.
* gnu/packages/admin.scm (inetutils)[source](modules, snippet): New fields.
This commit is contained in:
parent
d69a480522
commit
3668405daa
1 changed files with 14 additions and 1 deletions
|
@ -606,7 +606,20 @@ (define-public inetutils
|
|||
(patches (search-patches "inetutils-hurd.patch"))
|
||||
(sha256
|
||||
(base32
|
||||
"05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))))
|
||||
"05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
;; Fix issues with GCC 10. Can be removed for versions > 1.9.4.
|
||||
(substitute* "telnetd/utility.c"
|
||||
(("int not42;")
|
||||
"extern int not42;"))
|
||||
(substitute* "ftpd/extern.h"
|
||||
(("^jmp_buf errcatch;")
|
||||
"extern jmp_buf errcatch;"))
|
||||
(substitute* "ftpd/ftpd.c"
|
||||
(("struct credentials cred;" all)
|
||||
(string-append all "\njmp_buf errcatch;")))))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags '("--localstatedir=/var"
|
||||
|
|
Loading…
Reference in a new issue