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