Your message dated Sat, 25 Jan 2025 05:34:12 +0000
with message-id <[email protected]>
and subject line Bug#1014566: fixed in massivethreads 1.02-1
has caused the Debian Bug report #1014566,
regarding massivethreads: 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 [email protected]
immediately.)


-- 
1014566: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014566
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: massivethreads
Version: 1.00-4
Severity: serious
Tags: patch experimental
Justification: FTBFS
User: [email protected]
Usertags: origin-ubuntu kinetic ubuntu-patch

Dear maintainer,

In Ubuntu the massivethreads package FTBFS because Ubuntu has moved to glibc
2.34 which includes a refactoring of the pthreads implementation:

[...]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 
-D_GNU_SOURCE -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/<<PKGBUILDDIR>>/include 
-DMYTH_WRAP=MYTH_WRAP_DL -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -c 
myth_wrap_pthread.c  -fPIC -DPIC -o .libs/libmyth_dl_la-myth_wrap_pthread.o
[...]
/tmp/ccbMBQpP.s: Assembler messages:
/tmp/ccbMBQpP.s:27485: Error: symbol `sched_yield' is already defined
make[4]: *** [Makefile:852: libmyth_dl_la-myth_wrap_pthread.lo] Error 1
[...]

  (https://launchpad.net/ubuntu/+source/massivethreads/1.00-4/+build/23574059)

With the help of Michael Hudson-Doyle, I've uploaded the attached
non-obvious patch to Ubuntu which fixes the build failure.

Debian currently only has glibc 2.34 in experimental, but of course will be
updating at some point.

Please consider including the attached patch 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/
[email protected]                                     [email protected]
diff -Nru massivethreads-1.00/debian/patches/glibc-2.34-compat.patch 
massivethreads-1.00/debian/patches/glibc-2.34-compat.patch
--- massivethreads-1.00/debian/patches/glibc-2.34-compat.patch  1969-12-31 
16:00:00.000000000 -0800
+++ massivethreads-1.00/debian/patches/glibc-2.34-compat.patch  2022-07-07 
17:33:35.000000000 -0700
@@ -0,0 +1,26 @@
+Description: hack around pthread_yield() definition for glibc 2.34 compat
+ glibc 2.34 treats pthread_yield() as a deprecated alias for sched_yield()
+ so in order to provide a wrapper around pthread_yield, some ASM magic
+ is required.
+Author: Michael Hudson-Doyle <[email protected]>,
+        Steve Langasek <[email protected]>
+Last-Update: 2022-07-07
+Forwarded: no
+
+Index: massivethreads-1.00/src/myth_wrap_pthread.c
+===================================================================
+--- massivethreads-1.00.orig/src/myth_wrap_pthread.c
++++ massivethreads-1.00/src/myth_wrap_pthread.c
+@@ -567,7 +567,12 @@
+ 
+ #if defined(HAVE_PTHREAD_YIELD)
+ /* pthread_yield (3)    - yield the processor */
++#if MYTH_WRAP == MYTH_WRAP_DL
++extern int pthread_yield_foo (void) __asm__ ("" "pthread_yield");
++int __wrap(pthread_yield_foo)(void) {
++#else
+ int __wrap(pthread_yield)(void) {
++#endif
+   int _ = enter_wrapped_func(0);
+   int ret;
+   (void)_;
diff -Nru massivethreads-1.00/debian/patches/series 
massivethreads-1.00/debian/patches/series
--- massivethreads-1.00/debian/patches/series   2022-01-08 20:38:14.000000000 
-0800
+++ massivethreads-1.00/debian/patches/series   2022-07-07 16:32:45.000000000 
-0700
@@ -3,3 +3,4 @@
 0003-Prevent-myth_get_current_env-from-being-inlined-on-a.patch
 0004-tests-Fix-build-on-x86_32.patch
 0005-Add-support-sparc64.patch
+glibc-2.34-compat.patch

--- End Message ---
--- Begin Message ---
Source: massivethreads
Source-Version: 1.02-1
Done: Nobuhiro Iwamatsu <[email protected]>

We believe that the bug you reported is fixed in the latest version of
massivethreads, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nobuhiro Iwamatsu <[email protected]> (supplier of updated massivethreads 
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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 25 Jan 2025 14:12:00 +0900
Source: massivethreads
Architecture: source
Version: 1.02-1
Distribution: experimental
Urgency: medium
Maintainer: Nobuhiro Iwamatsu <[email protected]>
Changed-By: Nobuhiro Iwamatsu <[email protected]>
Closes: 1014566
Changes:
 massivethreads (1.02-1) experimental; urgency=medium
 .
   * New upstream released. (Closes: #1014566)
   * d/patches:
     + Remove patches included in the release.
     + Refresh patches.
   * d/control:
     + Bump Standards-Version to 4.7.0.
   * Update d/copyright.
Checksums-Sha1:
 ecc141cea947d0dd14456e64f9c7a7ffd2ba9599 2054 massivethreads_1.02-1.dsc
 982e18c0466a5592fab9626fc48e74491995eedb 2889224 
massivethreads_1.02.orig.tar.gz
 1a02642cf9de5e19b6aac92a1e8540ea2abf6b40 16636 
massivethreads_1.02-1.debian.tar.xz
 d3ba988f17ca14f2ac457aa412a3558ef8a8da62 6614 
massivethreads_1.02-1_amd64.buildinfo
Checksums-Sha256:
 ae3b2a855a6f3cba043b2bb8c72c5c571de47b84c08bbf3fbcb96d806a79a0a1 2054 
massivethreads_1.02-1.dsc
 b2f6320f51cbfbc051226a61baf9323c016c28f033283e269007493afab0123c 2889224 
massivethreads_1.02.orig.tar.gz
 0f770f7a5cf5ea7488afb5b3ea6f80252d455d055285d8e06073a1601ece8a7f 16636 
massivethreads_1.02-1.debian.tar.xz
 cbce69068000080f07d8b317b7408c1b1f747da66b49d48cdd96e72bcdd93f86 6614 
massivethreads_1.02-1_amd64.buildinfo
Files:
 064b928c42759d23afa2af8b21365479 2054 devel optional massivethreads_1.02-1.dsc
 5a41051b2179e864e2639249e4a03f3e 2889224 devel optional 
massivethreads_1.02.orig.tar.gz
 c8d3fc68a4d2ed511331769bcfe358e3 16636 devel optional 
massivethreads_1.02-1.debian.tar.xz
 8d2461ef2760bd2285c98804b1b48cdf 6614 devel optional 
massivethreads_1.02-1_amd64.buildinfo

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

iQIzBAEBCAAdFiEEXmKe5SMhlzV7hM9DMiR/u0CtH6YFAmeUc8MACgkQMiR/u0Ct
H6bXZg/9HyRW0wJLmsI4k84DpHiVtLtsNjI7MfV9omcDWS6BdUDBjKSCszvBUqrh
vg/TgJJ6UGS5eC3xtK/StverJsZDJjOvDmJ0ynSaRyeUyMSwj5JzgOQpG7GcAnlC
Ets4AdvxJ2oq7nto8Rd2YMzXc4Mt8DpUwneQKXtKU5BRLiikpnw7XePyUn66VKIo
2ujDXbgeeQ6nLn6CtzIQL+BDILmxBKoWbcbtS4EjNv5ow77k8UFoxZT07hgC+fQ0
fReu4BFeGxFhTWhaf34vTHmI8GpeB/EbkXZa3QlRuO2mcg1iR9ehbrRc0tuarGaQ
Sh6YB8ltcsWuLvb978NGxNIpNQkph2Wstzr42SemYBA4A3E0R+HzgALXtOPBFvM8
1nhKtxQgk0IY/B7UIFp3jJxvTV5fbnEtWVhZmW0ArILYWnlQzCslI/wAyvdTss9+
lY5/8MquWzYPS/SRBrJESgIoBH90yFff/8vszyHESVEV4kFgfiI2atlKlQhGOAg0
JeHTWZ7k2tFJbS7sVtOMu0rZB/sfpduTrdPaZLdgTtoe4zCBZQJ7F1v7KB8iuyi5
XyXOZouGiFdDqEdhrhUTncLL/bWQcVTHqNCcOY2Km2LqqRuGggcyqLiCqv3VbMeR
J4cgGipCV77UBbebDpUNJtRlKfhz2r5O0n1qhRuorsuCz4SwMHw=
=vW9i
-----END PGP SIGNATURE-----

Attachment: pgpgN5DlpGP5P.pgp
Description: PGP signature


--- End Message ---

Reply via email to