From 95c5f7a23a11066617634e0768e8b1bc6ac3d131 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Sat, 3 Feb 2018 20:43:58 +0100 Subject: [PATCH] mpd: update to 0.20.16 --- srcpkgs/mpd/patches/stacksize.patch | 24 +++++++++++------------- srcpkgs/mpd/template | 8 ++++---- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/srcpkgs/mpd/patches/stacksize.patch b/srcpkgs/mpd/patches/stacksize.patch index 6675975d61..700423a095 100644 --- a/srcpkgs/mpd/patches/stacksize.patch +++ b/srcpkgs/mpd/patches/stacksize.patch @@ -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 diff --git a/srcpkgs/mpd/template b/srcpkgs/mpd/template index e08c852152..9038bf0241 100644 --- a/srcpkgs/mpd/template +++ b/srcpkgs/mpd/template @@ -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 " 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