Package: itksnap
Version: 3.6.0-5
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch

Hi,

itksnap currently FTBFS against glibc 2.32, which is used in the
development release of Ubuntu (and should be in Debian soon).

This is because it uses sys_siglist instead of strsignal(), which is also
supported in earlier versions of glibc.

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

  * d/p/03_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 itksnap-3.6.0/debian/patches/03_glibc_2.32.patch 
itksnap-3.6.0/debian/patches/03_glibc_2.32.patch
--- itksnap-3.6.0/debian/patches/03_glibc_2.32.patch    1969-12-31 
19:00:00.000000000 -0500
+++ itksnap-3.6.0/debian/patches/03_glibc_2.32.patch    2021-04-07 
16:24:44.000000000 -0400
@@ -0,0 +1,11 @@
+--- a/GUI/Qt/main.cxx
++++ b/GUI/Qt/main.cxx
+@@ -56,7 +56,7 @@
+ void SegmentationFaultHandler(int sig)
+ {
+   cerr << "*************************************" << endl;
+-  cerr << "ITK-SNAP: " << sys_siglist[sig] << endl;
++  cerr << "ITK-SNAP: " << strsignal(sig) << endl;
+   cerr << "BACKTRACE: " << endl;
+   void *array[50];
+   int nsize = backtrace(array, 50);
diff -Nru itksnap-3.6.0/debian/patches/series 
itksnap-3.6.0/debian/patches/series
--- itksnap-3.6.0/debian/patches/series 2019-12-10 04:26:30.000000000 -0500
+++ itksnap-3.6.0/debian/patches/series 2021-04-07 16:24:15.000000000 -0400
@@ -1,3 +1,4 @@
 01_add_required_vtklibraries_and_gdcm.patch
 
 02_check_sse.patch
+03_glibc_2.32.patch

Reply via email to