Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: media-libs/alsa-lib/, media-libs/alsa-lib/files/
Date: Wed, 25 Nov 2015 00:54:25
Message-Id: 1448413263.b734a22c5afc83ded511acf3019d969de8200282.blueness@gentoo
1 commit: b734a22c5afc83ded511acf3019d969de8200282
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 25 01:01:03 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 25 01:01:03 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=b734a22c
7
8 media-libs/alsa-lib: in tree version works.
9
10 media-libs/alsa-lib/Manifest | 7 --
11 media-libs/alsa-lib/alsa-lib-1.0.27.1-r99.ebuild | 79 ----------------------
12 .../alsa-lib/files/alsa-lib-1.0.25-pcm-h.patch | 27 --------
13 .../alsa-lib/files/alsa-lib-1.0.27.1-musl.patch | 24 -------
14 .../alsa-lib/files/alsa-lib-1.0.27.1-rewind.patch | 40 -----------
15 .../files/alsa-lib-1.0.27.2-portable-mutex.patch | 35 ----------
16 media-libs/alsa-lib/metadata.xml | 14 ----
17 7 files changed, 226 deletions(-)
18
19 diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest
20 deleted file mode 100644
21 index 0dcd29d..0000000
22 --- a/media-libs/alsa-lib/Manifest
23 +++ /dev/null
24 @@ -1,7 +0,0 @@
25 -AUX alsa-lib-1.0.25-pcm-h.patch 1177 SHA256 e6525c81b77f5b5ba48ce2ba16be2622f54a7090e1268be5f5198e2490c9cf45 SHA512 de62a1a1bfed51fc0482a145ed5fce7451b314a84a8c616f2af5f5e1f033da78f2a7800dc0b0921022d934efba110598a9d98d846c71b7861f2867c04093def2 WHIRLPOOL 395ccc8faa5bc59cee8f442224ddee9d1908c24918fd1bdfdd041454eaead4ba1f3e0895bf6d55f1ccbd92378bdc08e6681040ea01c713413aacbf500e008000
26 -AUX alsa-lib-1.0.27.1-musl.patch 965 SHA256 f0f7079e38691bbb65418b097c4c66de2837237d33f0873b2403eca9145b7489 SHA512 6cee79a298214c3a541cb5f523ed44957b169b8bef14d47792cc1f17b0887ae59018097e150c602fef4e70e486da983d495499916691dd7e5e0b512c6e194051 WHIRLPOOL 52767ab59ea59a127fac6470c6b0a843bcba9389b5b34ba5133f91f1b5d70e7b06846e9ae1d4ca73791a98cdc4be17ee6948ae0ea51d80733b69567fd93c532d
27 -AUX alsa-lib-1.0.27.1-rewind.patch 1514 SHA256 b13b1758f1d54cae12510ccfc29ae3ccca0ab8e7ff97798d1de834a30f252fea SHA512 67b38120d4d8be74fecf55af639fb1a3c9c118f1f0b1c55eee81b65693d1fee753c02eea6cabdd0273299d0c6af6e155a91e88efb900040c3069901fc8b2774e WHIRLPOOL fc6adbb7f833efaabfd40f3a4b76f27d1f5a7afdd02ca2b405a91ebf3f483fa03078710223116e0e1f1f2e273c8e26df9a5d5747db247b3bbbb617f9ff893cfc
28 -AUX alsa-lib-1.0.27.2-portable-mutex.patch 894 SHA256 a26d381704f336fef02de6d8413434c56b6cc1401f30d66c10f5602cfd4ec523 SHA512 e4fa707e714fe61628da3cb42adf9c69edfdde48ea034dd72ec34def26b9918f61000ab2343cffe97a55c275a3db0c8b0e7173bfc4c64a5eb74b1887ff4126dc WHIRLPOOL 2b611d0737b9e57fe8a3f089e2ea81ee69e923c8168e17758565601cb94d31616908496fa4073cb0bd8687e8ef2b0fa303f52404469b64f4844c96a8962e1958
29 -DIST alsa-lib-1.0.27.1.tar.bz2 906234 SHA256 690e07a3ef6270d40ed2130638dba3c18395aae8db4a109bcc473643ce29a03b SHA512 546a52c5c23d51e3a49a36565c0bdda98efc3bbe8ba217c72cfb6986b0e1a6104a3040bc223a74966139416ce39709421a3131f3edb29362a3f949b0ae939909 WHIRLPOOL 485a5b260edc208776ca553d13065d242f1266e38b25dab252596fc8d4c9c3482d11fd3e472c7c96c97b396718a715ca12f36c76635bd069ebe09edc6815693f
30 -EBUILD alsa-lib-1.0.27.1-r99.ebuild 1953 SHA256 4ea3f30026bc63720345cd2a8b0c1553c06d58e253675bb37df59155601e852d SHA512 25fea6eeba3366a639eda1cd1c6d8ac51d2545553c3454ccb4ddeea17928236a47a830877b641091cb019670ca33d219867bc67b6a64018b17f571dacff9f563 WHIRLPOOL 46c3c5ed70df92ed41e1c4af461a468b632402d7947d429ef30b326cd22c4af81e6397b349be8c551e05fc097be1bc4262b31e7274340612a2db56ef6c7534d1
31 -MISC metadata.xml 443 SHA256 2c3e6e0b3b3cfb7d4cd1b35cb092bc3e0fb60688f7aaedc29133408d00437fba SHA512 ba3c80c882e081177bf371ebd8d8fa3696f0cdd8c214333f4a5515e7d2997884ffddb56559ce51e818fdf8516af0529eaed01e6048f582feddc701d9f27bdb30 WHIRLPOOL 8537995f235dbfaf3c242868af177df5199762de1842f0f7085388dbe86e7821ffe137bb3ea6591d45a36bed5499128e7724a8675bff124b676994e723062a2b
32
33 diff --git a/media-libs/alsa-lib/alsa-lib-1.0.27.1-r99.ebuild b/media-libs/alsa-lib/alsa-lib-1.0.27.1-r99.ebuild
34 deleted file mode 100644
35 index 0967bf4..0000000
36 --- a/media-libs/alsa-lib/alsa-lib-1.0.27.1-r99.ebuild
37 +++ /dev/null
38 @@ -1,79 +0,0 @@
39 -# Copyright 1999-2013 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -# $Header: /var/cvsroot/gentoo-x86/media-libs/alsa-lib/alsa-lib-1.0.27.1.ebuild,v 1.15 2013/09/01 18:36:03 ago Exp $
42 -
43 -EAPI=5
44 -
45 -# no support for python3_2 or above yet wrt #471326
46 -PYTHON_COMPAT=( python2_7 )
47 -
48 -inherit autotools eutils multilib python-single-r1
49 -
50 -DESCRIPTION="Advanced Linux Sound Architecture Library"
51 -HOMEPAGE="http://www.alsa-project.org/"
52 -SRC_URI="mirror://alsaproject/lib/${P}.tar.bz2"
53 -
54 -LICENSE="LGPL-2.1"
55 -SLOT="0"
56 -KEYWORDS="amd64 arm ~mips ppc x86"
57 -IUSE="doc debug alisp python"
58 -
59 -RDEPEND="python? ( ${PYTHON_DEPS} )"
60 -DEPEND="${RDEPEND}
61 - doc? ( >=app-doc/doxygen-1.2.6 )"
62 -
63 -pkg_setup() {
64 - use python && python-single-r1_pkg_setup
65 -}
66 -
67 -src_prepare() {
68 - find . -name Makefile.am -exec sed -i -e '/CFLAGS/s:-g -O2::' {} + || die
69 - # force use of correct python-config wrt #478802
70 - if [[ ${ABI} == ${DEFAULT_ABI} ]]; then
71 - use python && { sed -i -e "s:python-config:$EPYTHON-config:" configure.in || die; }
72 - fi
73 - epatch "${FILESDIR}"/${P}-rewind.patch #477282
74 - epatch "${FILESDIR}"/${P}-musl.patch
75 - epatch "${FILESDIR}"/${PN}-1.0.25-pcm-h.patch
76 - epatch "${FILESDIR}"/${PN}-1.0.27.2-portable-mutex.patch
77 - epatch_user
78 - eautoreconf
79 -}
80 -
81 -src_configure() {
82 - local myconf
83 - use elibc_uclibc && myconf="--without-versioned"
84 -
85 - ECONF_SOURCE=${S} \
86 - econf \
87 - --disable-maintainer-mode \
88 - --enable-shared \
89 - --disable-resmgr \
90 - --enable-rawmidi \
91 - --enable-seq \
92 - --enable-aload \
93 - $(use_with debug) \
94 - $(use_enable alisp) \
95 - $(use_enable python) \
96 - ${myconf}
97 -}
98 -
99 -src_compile() {
100 - emake
101 -
102 - if use doc; then
103 - emake doc
104 - fgrep -Zrl "${S}" doc/doxygen/html | \
105 - xargs -0 sed -i -e "s:${S}::"
106 - fi
107 -}
108 -
109 -src_install() {
110 - emake DESTDIR="${D}" install
111 - if use doc; then
112 - dohtml -r doc/doxygen/html/.
113 - fi
114 - prune_libtool_files --all
115 - find "${ED}"/usr/$(get_libdir)/alsa-lib -name '*.a' -exec rm -f {} +
116 - dodoc ChangeLog doc/asoundrc.txt NOTES TODO
117 -}
118
119 diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.25-pcm-h.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.25-pcm-h.patch
120 deleted file mode 100644
121 index 7d6dc13..0000000
122 --- a/media-libs/alsa-lib/files/alsa-lib-1.0.25-pcm-h.patch
123 +++ /dev/null
124 @@ -1,27 +0,0 @@
125 -taken from sabotage linux
126 -
127 ---- alsa-lib-1.0.25/include/pcm.h
128 -+++ alsa-lib-1.0.25.patched/include/pcm.h
129 -@@ -33,6 +33,7 @@
130 - extern "C" {
131 - #endif
132 -
133 -+#include <stdint.h>
134 - /**
135 - * \defgroup PCM PCM Interface
136 - * See the \ref pcm page for more details.
137 -@@ -941,10 +942,10 @@
138 - int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */
139 - snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian);
140 - ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
141 --u_int8_t snd_pcm_format_silence(snd_pcm_format_t format);
142 --u_int16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
143 --u_int32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
144 --u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
145 -+uint8_t snd_pcm_format_silence(snd_pcm_format_t format);
146 -+uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
147 -+uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
148 -+uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
149 - int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples);
150 -
151 - snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);
152
153 diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.27.1-musl.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.27.1-musl.patch
154 deleted file mode 100644
155 index 0521fe0..0000000
156 --- a/media-libs/alsa-lib/files/alsa-lib-1.0.27.1-musl.patch
157 +++ /dev/null
158 @@ -1,24 +0,0 @@
159 -diff -ur a/alsa-lib-1.0.27.1/configure.in b/alsa-lib-1.0.27.1/configure.in
160 ---- a/alsa-lib-1.0.27.1/configure.in 2013-05-21 08:48:28.000000000 +0000
161 -+++ b/alsa-lib-1.0.27.1/configure.in 2014-02-16 21:04:29.833236371 +0000
162 -@@ -64,7 +64,7 @@
163 -
164 - dnl Checks for library functions.
165 - AC_PROG_GCC_TRADITIONAL
166 --AC_CHECK_FUNC([hsearch_r], [HAVE_HSEARCH_R=yes])
167 -+AC_CHECK_FUNC([hsearch], [HAVE_HSEARCH_R=yes])
168 - AM_CONDITIONAL([ALSA_HSEARCH_R], [test "x$HAVE_HSEARCH_R" != xyes])
169 - AC_CHECK_FUNCS([uselocale])
170 -
171 -diff -ur a/alsa-lib-1.0.27.1/include/global.h b/alsa-lib-1.0.27.1/include/global.h
172 ---- a/alsa-lib-1.0.27.1/include/global.h 2013-05-21 08:48:28.000000000 +0000
173 -+++ b/alsa-lib-1.0.27.1/include/global.h 2014-02-16 20:08:10.954478169 +0000
174 -@@ -133,7 +133,7 @@
175 -
176 - int snd_user_file(const char *file, char **result);
177 -
178 --#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
179 -+#if 0
180 - struct timeval {
181 - time_t tv_sec; /* seconds */
182 - long tv_usec; /* microseconds */
183
184 diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.27.1-rewind.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.27.1-rewind.patch
185 deleted file mode 100644
186 index f585645..0000000
187 --- a/media-libs/alsa-lib/files/alsa-lib-1.0.27.1-rewind.patch
188 +++ /dev/null
189 @@ -1,40 +0,0 @@
190 -From f2d39afe6139ab16aa2aeea0f51f32db79ab1262 Mon Sep 17 00:00:00 2001
191 -From: David Henningsson <david.henningsson@×××××××××.com>
192 -Date: Thu, 30 May 2013 12:26:34 +0200
193 -Subject: [PATCH] pcm_plugin: Fix return value of snd_pcm_rewind
194 -
195 -In case the rewind did not rewind as much as expected, e g due to
196 -time delay between the latest avail update and the rewind, we must
197 -properly account for that in the plugin layer.
198 -
199 -Otherwise, the plugin's appl ptr and the hw's appl ptr become
200 -unsynchronised, which is very bad, especially in mmap_shadow plugins,
201 -e g, this could cause the overlapping memcpy in the softvol plugin
202 -as seen here:
203 -https://bugs.freedesktop.org/show_bug.cgi?id=64299
204 -
205 -Signed-off-by: David Henningsson <david.henningsson@×××××××××.com>
206 -Signed-off-by: Jaroslav Kysela <perex@×××××.cz>
207 ----
208 - src/pcm/pcm_plugin.c | 4 ++--
209 - 1 file changed, 2 insertions(+), 2 deletions(-)
210 -
211 -diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c
212 -index 96218a8..17157e8 100644
213 ---- a/src/pcm/pcm_plugin.c
214 -+++ b/src/pcm/pcm_plugin.c
215 -@@ -219,9 +219,9 @@ static snd_pcm_sframes_t snd_pcm_plugin_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t
216 - snd_atomic_write_end(&plugin->watom);
217 - return sframes;
218 - }
219 -- snd_pcm_mmap_appl_backward(pcm, (snd_pcm_uframes_t) frames);
220 -+ snd_pcm_mmap_appl_backward(pcm, (snd_pcm_uframes_t) sframes);
221 - snd_atomic_write_end(&plugin->watom);
222 -- return (snd_pcm_sframes_t) frames;
223 -+ return (snd_pcm_sframes_t) sframes;
224 - }
225 -
226 - static snd_pcm_sframes_t snd_pcm_plugin_forwardable(snd_pcm_t *pcm)
227 ---
228 -1.7.11.7
229 -
230
231 diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.27.2-portable-mutex.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.27.2-portable-mutex.patch
232 deleted file mode 100644
233 index c4f90d2..0000000
234 --- a/media-libs/alsa-lib/files/alsa-lib-1.0.27.2-portable-mutex.patch
235 +++ /dev/null
236 @@ -1,35 +0,0 @@
237 -taken from sabotage linux
238 -
239 ---- alsa-lib-1.0.27.2.orig/src/conf.c
240 -+++ alsa-lib-1.0.27.2/src/conf.c
241 -@@ -427,8 +427,8 @@
242 - #ifndef DOC_HIDDEN
243 -
244 - #ifdef HAVE_LIBPTHREAD
245 --static pthread_mutex_t snd_config_update_mutex =
246 -- PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
247 -+static pthread_mutex_t snd_config_update_mutex;
248 -+static pthread_once_t snd_config_update_mutex_once = PTHREAD_ONCE_INIT;
249 - #endif
250 -
251 - struct _snd_config {
252 -@@ -472,8 +472,19 @@
253 -
254 - #ifdef HAVE_LIBPTHREAD
255 -
256 -+static void snd_config_init_mutex(void)
257 -+{
258 -+ pthread_mutexattr_t attr;
259 -+
260 -+ pthread_mutexattr_init(&attr);
261 -+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
262 -+ pthread_mutex_init(&snd_config_update_mutex, &attr);
263 -+ pthread_mutexattr_destroy(&attr);
264 -+}
265 -+
266 - static inline void snd_config_lock(void)
267 - {
268 -+ pthread_once(&snd_config_update_mutex_once, snd_config_init_mutex);
269 - pthread_mutex_lock(&snd_config_update_mutex);
270 - }
271 -
272
273 diff --git a/media-libs/alsa-lib/metadata.xml b/media-libs/alsa-lib/metadata.xml
274 deleted file mode 100644
275 index 0ea67ae..0000000
276 --- a/media-libs/alsa-lib/metadata.xml
277 +++ /dev/null
278 @@ -1,14 +0,0 @@
279 -<?xml version="1.0" encoding="UTF-8"?>
280 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
281 -<pkgmetadata>
282 - <herd>alsa</herd>
283 - <maintainer>
284 - <email>alsa-bugs@g.o</email>
285 - </maintainer>
286 - <use>
287 - <flag name="alisp">Enable support for ALISP (ALSA LISP) interpreter for advanced features.</flag>
288 - </use>
289 - <upstream>
290 - <remote-id type="cpe">cpe:/a:alsa-project:alsa-lib</remote-id>
291 - </upstream>
292 -</pkgmetadata>