[packages/gmpc-plugin-mserver] - fix strndup redefinision in mpd internal header - rel 5

baggins baggins at pld-linux.org
Sun Dec 27 14:00:07 CET 2015


commit 85fedbb5fbb125f82929e903513064c1e9551f97
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Dec 27 13:59:44 2015 +0100

    - fix strndup redefinision in mpd internal header
    - rel 5

 gmpc-plugin-mserver.spec |  4 +++-
 mpd-strndup.patch        | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/gmpc-plugin-mserver.spec b/gmpc-plugin-mserver.spec
index 8480fc9..baecebe 100644
--- a/gmpc-plugin-mserver.spec
+++ b/gmpc-plugin-mserver.spec
@@ -3,11 +3,12 @@ Summary:	Mserver plugin for Gnome Music Player Client
 Summary(pl.UTF-8):	Wtyczka mserver dla odtwarzacza Gnome Music Player Client
 Name:		gmpc-plugin-mserver
 Version:	0.20.0
-Release:	4
+Release:	5
 License:	GPL
 Group:		X11/Applications/Sound
 Source0:	http://downloads.sourceforge.net/musicpd/%{source_name}-%{version}.tar.gz
 # Source0-md5:	850de96a29e68df646110894b95cf188
+Patch0:		mpd-strndup.patch
 URL:		http://gmpc.wikia.com/wiki/GMPC_PLUGIN_MSERVER
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -30,6 +31,7 @@ your database.
 
 %prep
 %setup -qn %{source_name}-%{version}
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/mpd-strndup.patch b/mpd-strndup.patch
new file mode 100644
index 0000000..19d2b9c
--- /dev/null
+++ b/mpd-strndup.patch
@@ -0,0 +1,11 @@
+--- gmpc-mserver-0.20.0/src/plugin.c.orig	2010-03-22 04:32:28.000000000 +0100
++++ gmpc-mserver-0.20.0/src/plugin.c	2015-12-27 13:58:35.636358629 +0100
+@@ -17,6 +17,8 @@
+  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+ 
++#define HAVE_STRNDUP 1
++
+ #include <stdio.h>
+ #include <string.h>
+ #include <config.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gmpc-plugin-mserver.git/commitdiff/85fedbb5fbb125f82929e903513064c1e9551f97



More information about the pld-cvs-commit mailing list