[packages/mpd] disable thread count check; rel 2

atler atler at pld-linux.org
Thu Mar 12 01:37:46 CET 2026


commit fa5d401d9ed4ead8d4401bbab5444ae4c38ae3d2
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Mar 12 01:36:41 2026 +0100

    disable thread count check; rel 2
    
    see https://github.com/MusicPlayerDaemon/MPD/issues/2445

 mpd.spec                 |  4 +++-
 thread-count-check.patch | 18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/mpd.spec b/mpd.spec
index 886827d..f83aa16 100644
--- a/mpd.spec
+++ b/mpd.spec
@@ -10,7 +10,7 @@ Summary:	Music Player Daemon
 Summary(pl.UTF-8):	Music Player Daemon - demon odtwarzający muzykę
 Name:		mpd
 Version:	0.24.9
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Applications/Multimedia
 Source0:	https://www.musicpd.org/download/mpd/0.24/%{name}-%{version}.tar.xz
@@ -20,6 +20,7 @@ Source2:	%{name}.init
 Source3:	%{name}.sysconfig
 Source4:	%{name}.tmpfiles
 Patch0:		upnp-1.14.30.patch
+Patch1:		thread-count-check.patch
 URL:		http://www.musicpd.org/
 BuildRequires:	OpenAL-devel
 BuildRequires:	adplug-devel
@@ -192,6 +193,7 @@ Pliki ikon dla Music Player Daemon (MPD).
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %meson \
diff --git a/thread-count-check.patch b/thread-count-check.patch
new file mode 100644
index 0000000..2c8e04a
--- /dev/null
+++ b/thread-count-check.patch
@@ -0,0 +1,18 @@
+--- mpd-0.24.9/src/Main.cxx.orig	2026-03-11 11:54:28.000000000 +0100
++++ mpd-0.24.9/src/Main.cxx	2026-03-12 01:27:56.922373764 +0100
+@@ -695,15 +695,6 @@
+ int
+ main(int argc, char *argv[]) noexcept
+ try {
+-#ifdef __linux__
+-	if (ProcStatusThreads() > 1)
+-		/* threads created by libraries before main() can
+-		   cause all sorts of bugs that are difficult to
+-		   analyze; bail out quickly and refuse to run if we
+-		   detect such a thing */
+-		throw "Background threads were detected before MPD could initialize. This is likely caused by a misbehaving library. Aborting to prevent erroneous behavior. Please report.";
+-#endif
+-
+ 	AtScopeExit() { log_deinit(); };
+ 
+ #ifdef _WIN32
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpd.git/commitdiff/fa5d401d9ed4ead8d4401bbab5444ae4c38ae3d2



More information about the pld-cvs-commit mailing list