mpd: update to 0.20.16
This commit is contained in:
parent
232638d6f8
commit
95c5f7a23a
2 changed files with 15 additions and 17 deletions
|
@ -1,19 +1,17 @@
|
|||
diff --git a/src/thread/Thread.cxx b/src/thread/Thread.cxx
|
||||
index 2932d47..fd1f3ce 100644
|
||||
--- src/thread/Thread.cxx
|
||||
+++ src/thread/Thread.cxx
|
||||
@@ -43,8 +43,12 @@ Thread::Start(void (*_f)(void *ctx), void *_ctx, Error &error)
|
||||
#ifndef NDEBUG
|
||||
creating = true;
|
||||
#endif
|
||||
-
|
||||
--- src/thread/Thread.cxx 2018-02-03 20:15:41.896969703 +0100
|
||||
+++ src/thread/Thread.cxx 2018-02-03 20:17:12.640990964 +0100
|
||||
@@ -35,8 +35,12 @@
|
||||
if (handle == nullptr)
|
||||
throw MakeLastError("Failed to create thread");
|
||||
#else
|
||||
- int e = pthread_create(&handle, nullptr, ThreadProc, this);
|
||||
-
|
||||
+ pthread_attr_t attr, *attrptr = nullptr;
|
||||
+ if ((pthread_attr_init(&attr) == 0)
|
||||
+ && (pthread_attr_setstacksize(&attr, 1024*1024) == 0)) {
|
||||
+ && (pthread_attr_setstacksize(&attr, 1024*1024) == 0)) {
|
||||
+ attrptr = &attr;
|
||||
+ }
|
||||
+ int e = pthread_create(&handle, attrptr, ThreadProc, this);
|
||||
|
||||
if (e != 0) {
|
||||
#ifndef NDEBUG
|
||||
if (e != 0)
|
||||
throw MakeErrno(e, "Failed to create thread");
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'mpd'
|
||||
pkgname=mpd
|
||||
version=0.20.15
|
||||
revision=2
|
||||
version=0.20.16
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-opus --enable-mikmod --enable-neighbor-plugins
|
||||
--enable-soundcloud --enable-pipe-output --disable-twolame-encoder
|
||||
|
@ -28,12 +28,12 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|||
license="GPL-2"
|
||||
homepage="http://www.musicpd.org/"
|
||||
distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz"
|
||||
checksum=c69c4f67e665380ea3bbde6cff8958edc85f7cd40e7918ae5ce0a2184ca9eb40
|
||||
checksum=29e1676288e61a8bee6b687d23ba6ca42ccec4dc87c6a0e81d119aea27dcd06a
|
||||
|
||||
# Package build options
|
||||
build_options="jack lame mpcdec pulseaudio libao wavpack sndio cdio"
|
||||
desc_option_cdio="Enable libcdio_paranoia input plugin"
|
||||
build_options_default="pulseaudio libao sndio"
|
||||
build_options_default="pulseaudio libao sndio cdio"
|
||||
|
||||
pre_configure() {
|
||||
sed -i '/^doc_DATA =/s,doc/mpdconf.example,,' Makefile.in
|
||||
|
|
Loading…
Reference in a new issue