Package: tarantool
Version: 2.6.0-1
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu jammy ubuntu-patch

Dear maintainers,

In Ubuntu, tarantool is failing to build from source because Ubuntu has
updated to glibc 2.34, where SIGSTKSZ is no longer a constant but instead a
call to sysconf().

I have uploaded the attached patch to Ubuntu to fix the build failure. 
Please consider applying it in Debian as well.

This issue is obviously not critical in Debian at this time, because Debian
still only has glibc 2.33 in experimental.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
[email protected]                                     [email protected]
diff -Nru tarantool-2.6.0/debian/patches/glibc-2.34.patch 
tarantool-2.6.0/debian/patches/glibc-2.34.patch
--- tarantool-2.6.0/debian/patches/glibc-2.34.patch     1969-12-31 
16:00:00.000000000 -0800
+++ tarantool-2.6.0/debian/patches/glibc-2.34.patch     2021-12-08 
14:47:39.000000000 -0800
@@ -0,0 +1,28 @@
+Description: compatibility with glibc 2.34
+ SIGSTKSZ is now a call to sysconf(), not a constant, so allocate it at 
+ runtime instead of at compile time.  This is a test case so don't care 
+ about performance or memory leaking.
+Author: Steve Langasek <[email protected]>
+Last-Update: 2021-12-08
+Forwarded: no
+
+Index: tarantool-2.6.0/test/unit/guard.cc
+===================================================================
+--- tarantool-2.6.0.orig/test/unit/guard.cc
++++ tarantool-2.6.0/test/unit/guard.cc
+@@ -28,12 +28,14 @@
+       return sum;
+ }
+ 
+-static char stack_buf[SIGSTKSZ];
++static char *stack_buf = NULL;
+ 
+ static int
+ main_f(va_list ap)
+ {
+       stack_t stack;
++      if (!stack_buf)
++              stack_buf = (char *)malloc(SIGSTKSZ);
+       stack.ss_sp = stack_buf;
+       stack.ss_size = SIGSTKSZ;
+       stack.ss_flags = 0;
diff -Nru tarantool-2.6.0/debian/patches/series 
tarantool-2.6.0/debian/patches/series
--- tarantool-2.6.0/debian/patches/series       1969-12-31 16:00:00.000000000 
-0800
+++ tarantool-2.6.0/debian/patches/series       2021-12-08 14:38:44.000000000 
-0800
@@ -0,0 +1 @@
+glibc-2.34.patch

Reply via email to