Your message dated Tue, 12 Jul 2022 14:36:00 +0000
with message-id <e1obgzy-000fa1...@fasolo.debian.org>
and subject line Bug#1014627: fixed in maude 3.2-2
has caused the Debian Bug report #1014627,
regarding maude: FTBFS with glibc 2.34
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1014627: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014627
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: maude
Version: 3.2-1
Severity: serious
Tags: patch
Justification: ftbfs
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch

Dear maintainers,

In Ubuntu, the maude package fails to build from source because it tries to
use SIGSTKSZ as a constant, and as of glibc 2.34 this is now defined as a
runtime call to sysconf() instead.

[...]
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../src/Utility -I../../src/Temporal 
-I../../src/Interface -I../../src/Core -I../../src/Variable 
-I../../src/FullCompiler -I../../src/Higher -I../../src/CUI_Theory 
-I../../src/S_Theory -I../../src/NA_Theory -I../../src/FreeTheory 
-I../../src/ObjectSystem -I../../src/Mixfix -I../../src/BuiltIn 
-I../../src/Parser -I../../src/IO_Stuff -I../../src/ACU_Persistent 
-I../../src/ACU_Theory -I../../src/AU_Persistent -I../../src/AU_Theory 
-I../../src/Meta -I../../src/3rdParty -I../../src/FullCompiler 
-I../../src/StrategyLanguage -I../../src/SMT -Wdate-time -D_FORTIFY_SOURCE=2  
-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects 
-flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat 
-Werror=format-security -fpermissive -c -o 
libmixfix_a-userLevelRewritingContext.o `test -f 'userLevelRewritingContext.cc' 
|| echo './'`userLevelRewritingContext.cc
In file included from userLevelRewritingContext.cc:75:
interact.cc: In static member function ‘static void 
UserLevelRewritingContext::setHandlers(bool)’:
interact.cc:120:15: error: storage size of ‘altStack’ isn’t constant
  120 |   static char altStack[SIGSTKSZ];
      |               ^~~~~~~~
make[6]: *** [Makefile:1019: libmixfix_a-userLevelRewritingContext.o] Error 1
[...]

  (https://launchpad.net/ubuntu/+source/maude/3.2-1/+build/23574061)

Debian currently only has glibc 2.34 in experimental, but at some point will
be updated, making this a critical build failure.

The attached patch has fixed the build failure for me.  Please consider
applying in Debian.

Thanks,
-- 
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/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru maude-3.2/debian/patches/glibc-2.34.patch 
maude-3.2/debian/patches/glibc-2.34.patch
--- maude-3.2/debian/patches/glibc-2.34.patch   1969-12-31 16:00:00.000000000 
-0800
+++ maude-3.2/debian/patches/glibc-2.34.patch   2022-07-08 22:46:37.000000000 
-0700
@@ -0,0 +1,24 @@
+Description: handle non-constant SIGSTKSZ
+ As of glibc 2.34, SIGSTKSZ is no longer a constant, but rather a runtime
+ call to sysconf().  Allocate our stack at runtime instead of at compile
+ time.
+Author: Steve Langasek <steve.langa...@ubuntu.com>
+Last-Update: 2022-07-08
+Forwarded: no
+
+Index: maude-3.2/src/Mixfix/interact.cc
+===================================================================
+--- maude-3.2.orig/src/Mixfix/interact.cc
++++ maude-3.2/src/Mixfix/interact.cc
+@@ -117,9 +117,9 @@
+   //  Stack overflows are reported as SIGSEGV signals and so we need to use 
the
+   //  libsigsegv library to heuristically distinguish the two conditions.
+   //
+-  static char altStack[SIGSTKSZ];
++  static char *altStack = malloc(SIGSTKSZ);
+   sigsegv_install_handler(sigsegvHandler);  // illegal memory access or stack 
overflow
+-  stackoverflow_install_handler(stackOverflowHandler, altStack, 
sizeof(altStack));
++  stackoverflow_install_handler(stackOverflowHandler, altStack, SIGSTKSZ);
+ #else
+   //
+   //  If we can't use the library we will will catch SIGSEGVs but not install
diff -Nru maude-3.2/debian/patches/series maude-3.2/debian/patches/series
--- maude-3.2/debian/patches/series     2022-02-19 12:29:38.000000000 -0800
+++ maude-3.2/debian/patches/series     2022-07-08 22:37:32.000000000 -0700
@@ -2,3 +2,4 @@
 getinput-size_t.patch
 strip-build-date.patch
 skip_failing_test.patch
+glibc-2.34.patch

--- End Message ---
--- Begin Message ---
Source: maude
Source-Version: 3.2-2
Done: Nilesh Patra <nil...@debian.org>

We believe that the bug you reported is fixed in the latest version of
maude, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1014...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nilesh Patra <nil...@debian.org> (supplier of updated maude package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 12 Jul 2022 19:53:44 +0530
Source: maude
Architecture: source
Version: 3.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team 
<debian-med-packag...@lists.alioth.debian.org>
Changed-By: Nilesh Patra <nil...@debian.org>
Closes: 1014627
Changes:
 maude (3.2-2) unstable; urgency=medium
 .
   * Team upload.
   * Add patch to fix FTBFS against glibc 2.34
     + Thanks vorlon for the patch (Closes: #1014627)
Checksums-Sha1:
 2de7a5883da3204e314e1d9e6ce2e16160de00e2 2018 maude_3.2-2.dsc
 a7fb3910718419100954fa92af38d3fb864f8eab 7276 maude_3.2-2.debian.tar.xz
 b525107e6d04874a88e7d86130282941571fe854 6886 maude_3.2-2_source.buildinfo
Checksums-Sha256:
 6d9bdbec101d8781c39dd5aa98ce08a9cbe8c9520a81f989e8f5fd13c080baf2 2018 
maude_3.2-2.dsc
 123a3a1a42755de3fcb66781cfb24f8a38bdf668effd4fd84ac3279652020797 7276 
maude_3.2-2.debian.tar.xz
 9c557f41142972fa8385ee4f0d4f6ec7d5262f254a291adb1819d1331575d981 6886 
maude_3.2-2_source.buildinfo
Files:
 ecf0b9448155caa44b33fadb726b0440 2018 science optional maude_3.2-2.dsc
 2eeddd9d7bd20cb0ac35a8b2ac33aeb3 7276 science optional 
maude_3.2-2.debian.tar.xz
 156893303734750460d74b9bee0ddd7f 6886 science optional 
maude_3.2-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEPpmlJvXcwMu/HO6mALrnSzQzafEFAmLNhF0SHG5pbGVzaEBk
ZWJpYW4ub3JnAAoJEAC650s0M2nxuq8P+wU+rgMwACxjTkD8j27MotGof0wwDQWK
z4ZT2xjCtKHSM44NxvNuhDMLfqZO1AgLOS7z2bREYhKiLHjIjp57cQNh7PcAAPET
k9BGuRtbFKG/rID07P9y5MVWIOY7mBlQezm8P8oagGOD8+vTUsdXG2xWkDX3koq/
+ekz0ByL0vb9AU5neIkHyUzsk3JhY34/K8+RokEn+XgBwq83tLSCUveE7DEO5ybQ
aMT9qCAJ2k1OrjsqabBb9q9gIeIP7DhRH2/ekX8Argxy10VQWY8y5xS7lsCPbmgw
FK6C7RXHyUHYtp66EJQ5jb2/s9V6L6E7KoRS5NIQnlt9A2NS0r4A61YNraqc1gFX
VuLHzoelXXOpy8hBdPhNW7aQioPUVM0jCSsawzAuRJxuh1FO7dH1P2aL/Vkwje0Q
cVM5b0rHanKmK9eOxHasbgfj91zzf0X3VPEfMylwUnmQ+1DOLC31pR1XdQyRZXoP
8SZjYIYywVSwSwnqPtFlMjgZYntOiXGiy2DT7NV3hjufvCoO7druYIq211yshew0
DyVeIUoUC2ZZ7ws+8FP10ZjnnQVjMX8dODx1lQNNKexSItZR+tLtzjHYQuqOoD2Y
rlkcBw+gdfSXjGHcuBx4YGArUI5OHkRRLyP0lZp7YJkz4Wr3alMoO+XV26jN8tHY
/7K5XMyYCYKj
=coym
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to