Your message dated Thu, 07 Jul 2022 08:34:16 +0000
with message-id <e1o9mxk-000ezj...@fasolo.debian.org>
and subject line Bug#1014501: fixed in gnunet-fuse 0.16.0-2
has caused the Debian Bug report #1014501,
regarding gnunet-fuse: 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.)
--
1014501: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014501
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: gnunet-fuse
Version: 0.15.0-1
Severity: serious
Tags: patch experimental
Justification: FTBFS
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
Hi Daniel,
gnunet-fuse is failing to build from source in Ubuntu, because Ubuntu has
updated to glibc 2.34 where pthread_mutexattr_setkind_np has been dropped:
[...]
gcc -fno-strict-aliasing -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects
-fstack-protector-strong -Wformat -Werror=format-security
-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro
-o gnunet-fuse gnunet_fuse-gnunet-fuse.o gnunet_fuse-gfs_download.o
gnunet_fuse-mutex.o gnunet_fuse-readdir.o gnunet_fuse-read.o gnunet_fuse-open.o
gnunet_fuse-getattr.o -lgnunetutil -lfuse -lgnunetfs -lgnunetutil -lpthread
/usr/bin/ld: /tmp/cclaLsKU.ltrans0.ltrans.o: in function
`GNUNET_FUSE_path_info_create':
./src/fuse/mutex.c:71: undefined reference to `pthread_mutexattr_setkind_np'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:463: gnunet-fuse] Error 1
[...]
(https://launchpad.net/ubuntu/+source/gnunet-fuse/0.15.0-1/+build/23574025)
This will affect the package in Debian as well once glibc is updated in
unstable to 2.34 or later (currently, 2.34 is only in experimental).
gnunet-fuse already supports the more standard pthread_mutexattr_settype()
interface, but doesn't use it on Linux platforms. I've uploaded the
attached patch to Ubuntu which switches it to use the standard interface
everywhere.
Thanks for considering,
--
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 gnunet-fuse-0.15.0/debian/patches/glibc-2.34-compat.patch
gnunet-fuse-0.15.0/debian/patches/glibc-2.34-compat.patch
--- gnunet-fuse-0.15.0/debian/patches/glibc-2.34-compat.patch 1969-12-31
16:00:00.000000000 -0800
+++ gnunet-fuse-0.15.0/debian/patches/glibc-2.34-compat.patch 2022-07-06
19:51:20.000000000 -0700
@@ -0,0 +1,54 @@
+Description: replace mutexattr_setkind_np with standard mutexattr_settype
+ pthread_muteaxttr_settype() has been supported since at least glibc 2.19,
+ and pthread_mutexattr_setkind_np() is no longer supported as of glibc 2.34.
+ Use the standard interface.
+Author: Steve Langasek <steve.langa...@ubuntu.com>
+Forwarded: no
+Last-Update: 2022-07-06
+
+Index: gnunet-fuse-0.15.0/src/fuse/mutex.c
+===================================================================
+--- gnunet-fuse-0.15.0.orig/src/fuse/mutex.c
++++ gnunet-fuse-0.15.0/src/fuse/mutex.c
+@@ -36,17 +36,6 @@
+ #endif
+
+ /**
+- * This prototype is somehow missing in various Linux pthread
+- * include files. But we need it and it seems to be available
+- * on all pthread-systems so far. Odd.
+- */
+-#ifndef _MSC_VER
+-extern int pthread_mutexattr_setkind_np (pthread_mutexattr_t * attr,
+- int kind);
+-#endif
+-
+-
+-/**
+ * @brief Structure for MUTual EXclusion (Mutex).
+ */
+ struct GNUNET_Mutex
+@@ -67,23 +56,13 @@
+ pthread_mutexattr_init (&attr);
+ if (isRecursive)
+ {
+-#ifdef __linux__
+- GNUNET_assert (0 == pthread_mutexattr_setkind_np
+- (&attr, PTHREAD_MUTEX_RECURSIVE_NP));
+-#elif BSD || SOLARIS || OSX || WINDOWS
+ GNUNET_assert (0 == pthread_mutexattr_settype
+ (&attr, PTHREAD_MUTEX_RECURSIVE));
+-#endif
+ }
+ else
+ {
+-#ifdef __linux__
+- GNUNET_assert (0 == pthread_mutexattr_setkind_np
+- (&attr, PTHREAD_MUTEX_ERRORCHECK_NP));
+-#else
+ GNUNET_assert (0 == pthread_mutexattr_settype
+ (&attr, PTHREAD_MUTEX_ERRORCHECK));
+-#endif
+ }
+ mut = GNUNET_new (struct GNUNET_Mutex);
+ GNUNET_assert (0 == pthread_mutex_init (&mut->pt, &attr));
diff -Nru gnunet-fuse-0.15.0/debian/patches/series
gnunet-fuse-0.15.0/debian/patches/series
--- gnunet-fuse-0.15.0/debian/patches/series 1969-12-31 16:00:00.000000000
-0800
+++ gnunet-fuse-0.15.0/debian/patches/series 2022-07-06 19:46:30.000000000
-0700
@@ -0,0 +1 @@
+glibc-2.34-compat.patch
--- End Message ---
--- Begin Message ---
Source: gnunet-fuse
Source-Version: 0.16.0-2
Done: Daniel Baumann <daniel.baum...@progress-linux.org>
We believe that the bug you reported is fixed in the latest version of
gnunet-fuse, 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.
Daniel Baumann <daniel.baum...@progress-linux.org> (supplier of updated
gnunet-fuse 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: Thu, 07 Jul 2022 10:01:29 +0200
Source: gnunet-fuse
Architecture: source
Version: 0.16.0-2
Distribution: sid
Urgency: medium
Maintainer: Daniel Baumann <daniel.baum...@progress-linux.org>
Changed-By: Daniel Baumann <daniel.baum...@progress-linux.org>
Closes: 1014501
Changes:
gnunet-fuse (0.16.0-2) sid; urgency=medium
.
* Uploading to sid.
* Bumping gnunet depends to 0.17.
* Adding patch from Steve Langasek <steve.langa...@canonical.com> to fix
FTBFS with glibc 2.34 (Closes: #1014501).
Checksums-Sha1:
5527ed8e322488ce2576844fe06c8aed9dee497f 2041 gnunet-fuse_0.16.0-2.dsc
269181d4ceff78a539061694bc6f09c1345039e7 13872
gnunet-fuse_0.16.0-2.debian.tar.xz
2e2689212b06596cb072780492f320667cc5c7f6 9264
gnunet-fuse_0.16.0-2_amd64.buildinfo
Checksums-Sha256:
f6e9b85030e60e3e354c3a6dd790a259168af3dfc6526edbd25806f636d3d480 2041
gnunet-fuse_0.16.0-2.dsc
5cb45da3e3e5ab56f21802a54417adda69efad93ba99d016242fb95afc5aedef 13872
gnunet-fuse_0.16.0-2.debian.tar.xz
815279ffeab25371fe3beb7b59094994203019e6dc071ba5e04991c10d9f4c5e 9264
gnunet-fuse_0.16.0-2_amd64.buildinfo
Files:
85033b2c680374a1e6e596c146a21b5b 2041 net optional gnunet-fuse_0.16.0-2.dsc
a0313a07a1e96d0f2b01ea5162fb3cd2 13872 net optional
gnunet-fuse_0.16.0-2.debian.tar.xz
9fc1779ef889582e07c01c6fe712704d 9264 net optional
gnunet-fuse_0.16.0-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEgTbtJcfWfpLHSkKSVc8b+YaruccFAmLGk7cACgkQVc8b+Yar
ucdTDQ//Sb/36rm6czRhxHQ8an8WkJ4evoWc+au/FvQyKFaT5ScovVF2RCTf3DsN
JzT9wvqc64O6ESCLRj/worSnFqsk3OyI95E63AKHIRqUKFtRkxr3zYgW6br1NDEg
XXqw7C8MFuNEhLOUk/xw5cSV9Ww7Rveph4OS9XLdn+Zt1Lqe60/Bdv+f1/isrX0o
57csQWDiQI5ISYcQ20GKoqqxzu5z0r6/M1DPrcmTFZ+hSCDYYarJOS1RRERJpWSu
T9Lm+OJk13dDqHLnlle4kwRifOZstop+38NISoFvUsUCqS5PDtug6XTwjceK9zyI
sTG0VxIED23XKWWQndOH4LXEW4Dvl3ZbyDHX8mSwrrH3r8bkmHZeYCDPhWTcymFd
svJuoWRdL/WzdkMBIORxq5T6n5u2TOCRVhKexXCQ9NU2l776zmVWVxYsB9jvP6uT
4NWBcnM9923/c7M+iI87AmlJmfJEQBIbGl1LsTkpIOT4ix6JDZxO05F36QsXPPUp
WeOyI7r4b/3hL6Imw2eg+LXFtvCCOrSia7xP1KaTw+h/CmCnPTobcn8JKx1A3gOa
Rv7gdnMqiGxAPLlxFJmSOqe5+7xagYWRT/vGzz1van/LQOk9TttE+GI1PqWqoa18
XffhLpeLZA1/9sGpSCvK5iIoPQp3AHUWAUzQr8wXYhv4l3y9gmM=
=9mdo
-----END PGP SIGNATURE-----
--- End Message ---