gnu: tcp-wrappers: Allow compilation with glibc 2.33.

* gnu/packages/networking.scm (tcp-wrappers)[source]: Add 'snippet'.
This commit is contained in:
Ludovic Courtès 2021-11-20 22:37:21 +01:00
parent 83010a08bc
commit ce67634629
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -995,7 +995,17 @@ (define-public tcp-wrappers
version ".tar.gz"))
(sha256
(base32
"0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))))
"0p9ilj4v96q32klavx0phw9va21fjp8vpk11nbh6v2ppxnnxfhwm"))
(modules '((guix build utils)))
(snippet
;; 'sys_errlist' & co. are gone in glibc 2.33; work around it.
'(substitute* "percent_m.c"
(("sys_errlist\\[errno\\]")
"strerror (errno)")
(("errno < sys_nerr")
"(1)")
(("errno >= sys_nerr")
"(0)")))))
(build-system gnu-build-system)
(arguments
`(#:phases