aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-11-20 22:37:21 +0100
committerLudovic Courtès <ludo@gnu.org>2021-11-20 23:11:44 +0100
commitce67634629e3ff64055dbc1c11c9902169c7a5dc (patch)
tree94920592a426fc729e94c8fba98f4bf63b65fb3a /gnu/packages
parent83010a08bc7347d0969fa0acea2cd9ab421ed6d5 (diff)
downloadguix-ce67634629e3ff64055dbc1c11c9902169c7a5dc.tar.gz
guix-ce67634629e3ff64055dbc1c11c9902169c7a5dc.zip
gnu: tcp-wrappers: Allow compilation with glibc 2.33.
* gnu/packages/networking.scm (tcp-wrappers)[source]: Add 'snippet'.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/networking.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 466be1dbc2..61496da201 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -995,7 +995,17 @@ or server shell scripts with network connections.")
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