Bug#967989: lookup: Removal of sys_nerr and sys_errlist
On Sat, Jan 16, 2021 at 07:47:23PM -0500, Logan Rosen wrote: > Thanks for considering the patch. > > Logan Hi! Many thanks for the patch, I will upload this soon. Best regards, -- Ludovic Drolez. https://drolez.com/blog/ - Music and Tech Blog https://chezsandro.com - A cool place in Cape Verde :) https://bweb.io- Marketing automation and Web dev
Bug#967989: lookup: Removal of sys_nerr and sys_errlist
Package: lookup Version: 1.08b-12 Followup-For: Bug #967989 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu hirsute ubuntu-patch Control: tags -1 patch Hi, In Ubuntu, the attached patch was applied to achieve the following: * lib/output.c: Fix FTBFS against glibc 2.32 by using strerror() instead of removed sys_nerr and sys_errlist. Thanks for considering the patch. Logan diff -u lookup-1.08b/lib/output.c lookup-1.08b/lib/output.c --- lookup-1.08b/lib/output.c +++ lookup-1.08b/lib/output.c @@ -769,13 +769,7 @@ else errval = errno; - if (errval >= 0 && errval < sys_nerr) - str = sys_errlist[errval]; - else - { - sprintf(temp_error_buff, "#%d", errval); - str = temp_error_buff; - } + str = strerror(errval); } if (format[-2] == '%')
Bug#967989: lookup: Removal of sys_nerr and sys_errlist
Package: lookup Version: 1.08b-12 Severity: important Hello, Version 2.32 of glibc will not ship the sys_nerr and sys_errlist symbols any more. This package is using them, so will start FTBFS when we upload version 2.32 of glibc. Samuel