Package: socket++
Version: 1.12.13-10
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch
X-Debbugs-Cc: lo...@ubuntu.com

Hi,

socket++ currently FTBFS with glibc 2.32 (which is the current version
used in the development release of Ubuntu) because it uses the removed
sys_siglist instead of strsignal().

While this isn't currently an issue in Debian unstable, which has glibc
2.31, it will be an issue soon, and strsignal() is supported by 2.31 as
well.

In Ubuntu, the attached patch was applied to achieve the following:

  * d/p/glibc-2.32.patch: Use strsignal() instead of sys_siglist to fix FTBFS
    with glibc 2.32.

Thanks for considering the patch.

Logan
diff -Nru socket++-1.12.13/debian/patches/glibc-2.32.patch 
socket++-1.12.13/debian/patches/glibc-2.32.patch
--- socket++-1.12.13/debian/patches/glibc-2.32.patch    1969-12-31 
19:00:00.000000000 -0500
+++ socket++-1.12.13/debian/patches/glibc-2.32.patch    2021-01-09 
18:37:10.000000000 -0500
@@ -0,0 +1,18 @@
+--- a/socket++/fork.cpp
++++ b/socket++/fork.cpp
+@@ -122,13 +122,13 @@
+ 
+   if (WIFSTOPPED (status))
+     cerr << "process " << pid << " gets "
+-      << SYS_SIGLIST [WSTOPSIG (status)] << endl;
++      << strsignal (WSTOPSIG (status)) << endl;
+   else if (WIFEXITED (status))
+     cerr << "process " << pid << " exited with status "
+       << WEXITSTATUS (status) << endl;
+   else if (WIFSIGNALED (status))
+     cerr << "process " << pid << " got "
+-      << SYS_SIGLIST [WTERMSIG (status)] << endl;
++      << strsignal (WTERMSIG (status)) << endl;
+ }
+ 
+ void Fork::ForkProcess::reaper_nohang (int signo)
diff -Nru socket++-1.12.13/debian/patches/series 
socket++-1.12.13/debian/patches/series
--- socket++-1.12.13/debian/patches/series      2019-01-09 09:15:04.000000000 
-0500
+++ socket++-1.12.13/debian/patches/series      2021-01-09 18:36:10.000000000 
-0500
@@ -4,3 +4,4 @@
 hurd4.patch
 hurd5.patch
 sys_errlist.patch
+glibc-2.32.patch

Reply via email to