[packages/mpg123] - updated to 1.23.8 - added alsa patch (fixes alsa headers vs glibc struct timespec issue)
qboosh
qboosh at pld-linux.org
Sat Oct 8 13:33:34 CEST 2016
commit 72db6dcf847077de8495faa88384dd3f04b40c69
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 8 13:35:35 2016 +0200
- updated to 1.23.8
- added alsa patch (fixes alsa headers vs glibc struct timespec issue)
mpg123-alsa.patch | 11 +++++++++++
mpg123.spec | 6 ++++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/mpg123.spec b/mpg123.spec
index 96cea5e..2d414b2 100644
--- a/mpg123.spec
+++ b/mpg123.spec
@@ -23,13 +23,14 @@ Summary(pt_BR.UTF-8): Tocador de arquivos MP3
Summary(ru.UTF-8): Проигрыватель MPEG аудиофайлов
Summary(uk.UTF-8): Програвач MPEG аудіофайлів
Name: mpg123
-Version: 1.23.6
+Version: 1.23.8
Release: 1
# some old parts are GPLed, but they are not included in package
License: LGPL v2.1
Group: Applications/Sound
Source0: http://downloads.sourceforge.net/mpg123/%{name}-%{version}.tar.bz2
-# Source0-md5: ed22a3e664f076fa05131a3454ef8166
+# Source0-md5: 4dde045123a2ad1e385a0a82c0ef9268
+Patch0: %{name}-alsa.patch
URL: http://www.mpg123.de/
%{?with_openal:BuildRequires: OpenAL-devel}
%{?with_sdl:BuildRequires: SDL-devel >= 1.2.11}
@@ -244,6 +245,7 @@ Statyczna biblioteka mpg123.
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
diff --git a/mpg123-alsa.patch b/mpg123-alsa.patch
new file mode 100644
index 0000000..35e5cd1
--- /dev/null
+++ b/mpg123-alsa.patch
@@ -0,0 +1,11 @@
+--- mpg123-1.23.8/src/libout123/modules/alsa.c.orig 2016-09-26 23:20:25.000000000 +0200
++++ mpg123-1.23.8/src/libout123/modules/alsa.c 2016-10-08 13:31:57.348509990 +0200
+@@ -13,7 +13,7 @@
+ http://mailman.alsa-project.org/pipermail/alsa-devel/2007-June/001684.html
+ ... seems like the conclusion was not carried through.
+ */
+-#define _POSIX_SOURCE
++#define _POSIX_C_SOURCE 199309L /* for struct timespec in time.h */
+ #include "out123_int.h"
+ #include <errno.h>
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mpg123.git/commitdiff/72db6dcf847077de8495faa88384dd3f04b40c69
More information about the pld-cvs-commit
mailing list