diff --git a/pkgs/development/libraries/physics/cernlib/0001-Use-strerror-rather-than-sys_errlist-to-fix-compilat.patch b/pkgs/development/libraries/physics/cernlib/0001-Use-strerror-rather-than-sys_errlist-to-fix-compilat.patch new file mode 100644 index 000000000000..bc8c77f913c6 --- /dev/null +++ b/pkgs/development/libraries/physics/cernlib/0001-Use-strerror-rather-than-sys_errlist-to-fix-compilat.patch @@ -0,0 +1,94 @@ +From a69607c511b6da94cde477283b129cbc9cfdd5a3 Mon Sep 17 00:00:00 2001 +From: Maximilian Bosch +Date: Tue, 11 Aug 2020 12:32:06 +0200 +Subject: [PATCH] Use `strerror` rather than `sys_errlist` to fix compilation + w/glibc-2.32 + +To quote the release-notes[1]: + + All programs should use + strerror or strerror_r instead. + +[1] https://sourceware.org/pipermail/libc-announce/2020/000029.html +--- + 2006/src/packlib/cspack/sysreq/serror.c | 10 +--------- + 2006/src/packlib/cspack/sysreq/socket.c | 2 +- + 2006/src/packlib/kernlib/kernbit/z268/systems.c | 4 ++-- + 2006/src/pawlib/paw/piafs/piafc.c | 5 +---- + 4 files changed, 5 insertions(+), 16 deletions(-) + +diff --git a/2006/src/packlib/cspack/sysreq/serror.c b/2006/src/packlib/cspack/sysreq/serror.c +index 3667c42a..c560e499 100644 +--- a/2006/src/packlib/cspack/sysreq/serror.c ++++ b/2006/src/packlib/cspack/sysreq/serror.c +@@ -176,15 +176,7 @@ int n; + } + else { + #if !defined(vms) +- if ((n>0) && (n