summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2008-08-03 17:12:34 +0000
committerPatrick McLean <chutzpah@gentoo.org>2008-08-03 17:12:34 +0000
commit4d17ac400f93324e0dda329e809d3be50eecd679 (patch)
treef905d3c3dedb2e94abb82830cc921e63a46cd5b8 /media-libs/alsa-lib
parentamd64 stable wrt security bug #233383 (diff)
downloadhistorical-4d17ac400f93324e0dda329e809d3be50eecd679.tar.gz
historical-4d17ac400f93324e0dda329e809d3be50eecd679.tar.bz2
historical-4d17ac400f93324e0dda329e809d3be50eecd679.zip
Add three patches from upstream ALSA git for pulseaudio (bug #233789). Betelgeuse confirmed this bump with Chainsaw.
Package-Manager: portage-2.2_rc6/cvs/Linux 2.6.26-gentoo x86_64
Diffstat (limited to 'media-libs/alsa-lib')
-rw-r--r--media-libs/alsa-lib/ChangeLog11
-rw-r--r--media-libs/alsa-lib/Manifest16
-rw-r--r--media-libs/alsa-lib/alsa-lib-1.0.17-r1.ebuild104
-rw-r--r--media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward-return.patch38
-rw-r--r--media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward.patch36
-rw-r--r--media-libs/alsa-lib/files/alsa-lib-1.0.17-sframe-type.patch39
6 files changed, 232 insertions, 12 deletions
diff --git a/media-libs/alsa-lib/ChangeLog b/media-libs/alsa-lib/ChangeLog
index 8fb9f0402902..39c52ef9e416 100644
--- a/media-libs/alsa-lib/ChangeLog
+++ b/media-libs/alsa-lib/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for media-libs/alsa-lib
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/alsa-lib/ChangeLog,v 1.261 2008/08/02 21:02:23 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/alsa-lib/ChangeLog,v 1.262 2008/08/03 17:12:33 chutzpah Exp $
+
+*alsa-lib-1.0.17-r1 (03 Aug 2008)
+
+ 03 Aug 2008; Patrick McLean <chutzpah@gentoo.org>
+ +files/alsa-lib-1.0.17-pcm-rewind-forward.patch,
+ +files/alsa-lib-1.0.17-pcm-rewind-forward-return.patch,
+ +files/alsa-lib-1.0.17-sframe-type.patch, +alsa-lib-1.0.17-r1.ebuild:
+ Add three patches from upstream ALSA git for pulseaudio (bug #233789).
+ Betelgeuse confirmed this bump with Chainsaw.
*alsa-lib-1.0.17 (02 Aug 2008)
diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest
index fb9d85b165c6..f7d3a999a620 100644
--- a/media-libs/alsa-lib/Manifest
+++ b/media-libs/alsa-lib/Manifest
@@ -1,8 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX alsa-lib-1.0.10_rc3-hardened.patch 454 RMD160 d54236456b960ade362dccb484c91fff3856f825 SHA1 62be7f19c9bb19d9895ede8b0d390a03ba9a141f SHA256 7de3d237e3c20d45a3b9582989a600e4a297cbe652d03d2cd50c5c6b6ffb1742
AUX alsa-lib-1.0.14a-softfloat.patch 639 RMD160 8c063d6013b503d89432bff5601ae2b8b90fec06 SHA1 588037d100e32a664a37a9e900c12694174cce6c SHA256 651780f8d1c50a87e659a0659cb74f1802309f26096ab1120af411338f7d2fe2
+AUX alsa-lib-1.0.17-pcm-rewind-forward-return.patch 1687 RMD160 15f88952a2a330e503f2035b900daf63b2f3f807 SHA1 cc135c0ff631348117f06254687672a0f92b45a3 SHA256 d41ab3f14c97d9827ddfaeeaf3bd99fe49e32609d111a10be5b520253479e9a2
+AUX alsa-lib-1.0.17-pcm-rewind-forward.patch 1303 RMD160 acb1efa8e46f2e0deff9c991e8970049ffd5d7c7 SHA1 94e82d0a9be113d6d28bf8e801ef10055861ac76 SHA256 def947b2758aa4b4dd99045562e6279276203e84dd99896ebc58947377507b84
+AUX alsa-lib-1.0.17-sframe-type.patch 1532 RMD160 367a8a22f6995b3f35e1d4c4658020753ea80099 SHA1 b8fc27a9015de3517413cbd80f7c9fa30d605bdf SHA256 aa7f8b08e45af278b868a26d3f3da9bc0ba97785c26e1d16f005da2fdd6b974f
DIST alsa-lib-1.0.13.tar.bz2 709862 RMD160 db8ca9dfe4df11f821039401d02c9a3c771ac4b9 SHA1 82fa9a7fcb43b319524b18451ca86d691a20f4a3 SHA256 7a17403ac478cae0d837461b7efcd9075b17c6e7f3e2221fe1f2fdbd14f11dcf
DIST alsa-lib-1.0.14a.tar.bz2 785668 RMD160 27eddeda716213807b38a33e7a13408bc073d9c0 SHA1 0d0e217b778c411220471cd941ae48c4af675e61 SHA256 de64de37a9acf918f347a3975e0ad3f58b24790dafdd03d9869a22ced4e5dcc7
DIST alsa-lib-1.0.14rc1.tar.bz2 714549 RMD160 c4520ff469fcfb68da4f1646e2b153cce805e892 SHA1 79dd4defbdb10f7f2f28bc0c93f98244279e9564 SHA256 a0acfe840b519b9ab90f94878941ff2e77aac07c1e4d08c07f6d8c96661150ca
@@ -23,13 +23,7 @@ EBUILD alsa-lib-1.0.16-r1.ebuild 2909 RMD160 736a39ff47f601b8294eb8fad981f64c8d4
EBUILD alsa-lib-1.0.16.ebuild 2827 RMD160 e32b142b3ffcc2a6bc6dac3fedc809976ef51742 SHA1 d999684a8180317ff1e37c8c8d8b242def74d980 SHA256 e117ed048859b987c067fb4a6e8f060545a3fa2dfc9e6ac5954d8549edb50f8b
EBUILD alsa-lib-1.0.16_rc1.ebuild 2840 RMD160 a51d3fb653e8678b11c0d2801d4888ff4366fa3e SHA1 08ede95e6a91b25c9639af1393212fb5356a6221 SHA256 950e9ace689d40e8cf6ad339fcc36a55b655370c82092ee8101968bbfc8c9595
EBUILD alsa-lib-1.0.16_rc2.ebuild 2840 RMD160 54c86830c3d774e7ee1a6efe5d33ff618de0cfef SHA1 e5e68eaf948dd928137c70e51a25b21d481ddbc4 SHA256 7607cef971e56c1c6e40b1b7d3c667d2f222a303c5470046b1928998368ebea8
+EBUILD alsa-lib-1.0.17-r1.ebuild 3088 RMD160 894e33d42e400823ed2fac04e4742401cec80a36 SHA1 618df66d12fc8b67da5c92e65a79b72e51a42b08 SHA256 6ee6fea0575a53cf24067ed61bb5caf36d88908155357a5239ee5b2ef2756791
EBUILD alsa-lib-1.0.17.ebuild 2872 RMD160 847cdfcfbd81dcd6bc2696370abb3f27876da5b0 SHA1 740e09836fce15aaffc4ce5b20653390fa04fbaa SHA256 66a11509e58b0f9915826d58ed9ff0621f6e9eb12aac63a5ceb1d75ae5d6da80
-MISC ChangeLog 38969 RMD160 ad62278894fc057093840a474c8ea137a8bda55a SHA1 a334857ab929927c4a500e1021623e7d08108adb SHA256 d7201974938b3688ffa6c729a46cfb736fbd0a4e2710285dfbc10a14290eaf8b
+MISC ChangeLog 39357 RMD160 b2f16fd7fe7a797b1a052ec5146543ed759d0483 SHA1 49d90d73fec6dbaf0fcace408fe5daaec3ac8531 SHA256 402ddee37d6ef46391a876a9abe8f4585978323f38de4b63c306c6a46a2d2b47
MISC metadata.xml 220 RMD160 e49f8bb330d1798cd2c8ee5335cef1784f0d7ccb SHA1 1b895fe6cae4b8eab08ba1a6a1212baf4b4b4105 SHA256 8570ef11cd59b0d8edb71e78eecaec423616836b10eacb86bee0de941f0ae054
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkiUy2kACgkQcxLzpIGCsLSzLQCfV2xPgk++4PquAYnYr/FF4yAP
-llIAn3m5QMjzPu5inHARHpZVLEfXh4a6
-=12Xz
------END PGP SIGNATURE-----
diff --git a/media-libs/alsa-lib/alsa-lib-1.0.17-r1.ebuild b/media-libs/alsa-lib/alsa-lib-1.0.17-r1.ebuild
new file mode 100644
index 000000000000..fcdfd8c477c2
--- /dev/null
+++ b/media-libs/alsa-lib/alsa-lib-1.0.17-r1.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/alsa-lib/alsa-lib-1.0.17-r1.ebuild,v 1.1 2008/08/03 17:12:33 chutzpah Exp $
+
+inherit eutils libtool
+
+MY_P="${P/_rc/rc}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Advanced Linux Sound Architecture Library"
+HOMEPAGE="http://www.alsa-project.org/"
+SRC_URI="mirror://alsaproject/lib/${MY_P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="doc debug alisp midi python"
+
+RDEPEND="python? ( dev-lang/python )"
+DEPEND="${RDEPEND}
+ >=media-sound/alsa-headers-${PV}
+ doc? ( >=app-doc/doxygen-1.2.6 )"
+
+IUSE_PCM_PLUGIN="copy linear route mulaw alaw adpcm rate plug multi shm file
+null empty share meter mmap_emul hooks lfloat ladspa dmix dshare dsnoop asym iec958
+softvol extplug ioplug"
+
+for plugin in ${IUSE_PCM_PLUGIN}; do
+ IUSE="${IUSE} alsa_pcm_plugins_${plugin}"
+done
+
+pkg_setup() {
+ if [ -z "${ALSA_PCM_PLUGINS}" ] ; then
+ ewarn "You haven't selected _any_ PCM plugins. Either you set it to something like the default"
+ ewarn "(which is being set in the profile UNLESS you unset them) or alsa based applications"
+ ewarn "are going to *misbehave* !"
+ epause 5
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # patches for pulseaudio from upstream git (bug #233789)
+ epatch "${FILESDIR}/${P}-pcm-rewind-forward.patch"
+ epatch "${FILESDIR}/${P}-pcm-rewind-forward-return.patch"
+ epatch "${FILESDIR}/${P}-sframe-type.patch"
+
+ elibtoolize
+ epunt_cxx
+}
+
+src_compile() {
+ local myconf
+ use elibc_uclibc && myconf="--without-versioned"
+
+ # needed to avoid gcc looping internaly
+ use hppa && export CFLAGS="-O1 -pipe"
+
+ econf \
+ --enable-static \
+ --enable-shared \
+ --disable-resmgr \
+ $(use_with debug) \
+ $(use_enable alisp) \
+ $(use_enable python) \
+ $(use_enable midi rawmidi) \
+ $(use_enable midi seq) \
+ $(use_enable midi aload) \
+ --with-pcm-plugins="${ALSA_PCM_PLUGINS}" \
+ --disable-dependency-tracking \
+ ${myconf} \
+ || die "configure failed"
+
+ emake || die "make failed"
+
+ if use doc; then
+ emake doc || die "failed to generate docs"
+ fgrep -Zrl "${S}" "${S}/doc/doxygen/html" | \
+ xargs -0 sed -i -e "s:${S}::"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc ChangeLog TODO || die
+ use doc && dohtml -r doc/doxygen/html/*
+}
+
+pkg_postinst() {
+ ewarn "Starting from alsa 1.0.11_rc3 the configuration for dmix is changed."
+ ewarn "Leaving around old asound.conf or ~/.asoundrc might make all apps"
+ ewarn "using ALSA output crash."
+ ewarn "Note that dmix output is enabled by default on the 'default' device"
+ ewarn "since ALSA 1.0.9."
+ elog ""
+ elog "Please try in-kernel ALSA drivers instead of the alsa-drivers ebuild."
+ elog "If alsa-drivers works for you where a recent kernel does not, we want "
+ elog "to know about this. Our e-mail address is alsa-bugs@gentoo.org"
+ elog "However, if you notice no sound output or instability, please try to "
+ elog "upgrade your kernel to a newer version first."
+}
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward-return.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward-return.patch
new file mode 100644
index 000000000000..d3d6f9398f03
--- /dev/null
+++ b/media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward-return.patch
@@ -0,0 +1,38 @@
+From: Lennart Poettering <mznyfn@0pointer.de>
+Date: Fri, 18 Jul 2008 19:24:38 +0000 (+0200)
+Subject: fix return value of snd_pcm_rewind()/snd_pcm_forward() to return how much actually ...
+X-Git-Url: http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff_plain;h=8d3fb3102f672a7b09be92811e89d49f89c1742b
+
+fix return value of snd_pcm_rewind()/snd_pcm_forward() to return how much actually has been rewound, instead of what actually could have rewound
+
+Make snd_pcm_plugin_rewind()/_forward() actually return how much has
+been rewound/forwarded instead of how much could have been
+rewounded/forwarded. This makes the code actually do what the
+documentation of snd_pcm_rewind() suggests.
+
+Signed-off-by: Lennart Poettering <lennart@poettering.net>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+---
+
+diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c
+index b377cb2..c4f5b4a 100644
+--- a/src/pcm/pcm_plugin.c
++++ b/src/pcm/pcm_plugin.c
+@@ -222,7 +222,7 @@ static snd_pcm_sframes_t snd_pcm_plugin_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t
+ frames = plugin->client_frames(pcm, sframes);
+ snd_pcm_mmap_appl_backward(pcm, (snd_pcm_uframes_t) frames);
+ snd_atomic_write_end(&plugin->watom);
+- return n;
++ return (snd_pcm_sframes_t) frames;
+ }
+
+ static snd_pcm_sframes_t snd_pcm_plugin_forwardable(snd_pcm_t *pcm)
+@@ -255,7 +255,7 @@ static snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_
+ frames = plugin->client_frames(pcm, sframes);
+ snd_pcm_mmap_appl_forward(pcm, (snd_pcm_uframes_t) frames);
+ snd_atomic_write_end(&plugin->watom);
+- return n;
++ return (snd_pcm_sframes_t) frames;
+ }
+
+ static snd_pcm_sframes_t snd_pcm_plugin_write_areas(snd_pcm_t *pcm,
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward.patch
new file mode 100644
index 000000000000..80945aaa1a58
--- /dev/null
+++ b/media-libs/alsa-lib/files/alsa-lib-1.0.17-pcm-rewind-forward.patch
@@ -0,0 +1,36 @@
+From: Lennart Poettering <mznyfn@0pointer.de>
+Date: Fri, 18 Jul 2008 19:21:23 +0000 (+0200)
+Subject: clamp snd_pcm_rewind()/snd_pcm_forward() into the right direction
+X-Git-Url: http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff_plain;h=0fbfe2d8d6aac06e6615b7109ffc1fea8c62dee6
+
+clamp snd_pcm_rewind()/snd_pcm_forward() into the right direction
+
+The clamping of the input parameter in snd_pcm_rewind()/_forward() is
+in the wrong direction.
+
+Signed-off-by: Lennart Poettering <lennart@poettering.net>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+---
+
+diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c
+index c73a02b..c199d8d 100644
+--- a/src/pcm/pcm_plugin.c
++++ b/src/pcm/pcm_plugin.c
+@@ -203,7 +203,7 @@ static snd_pcm_sframes_t snd_pcm_plugin_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t
+ snd_pcm_sframes_t n = snd_pcm_mmap_hw_avail(pcm);
+ snd_pcm_sframes_t sframes;
+
+- if ((snd_pcm_uframes_t)n > frames)
++ if ((snd_pcm_uframes_t)n < frames)
+ frames = n;
+ if (frames == 0)
+ return 0;
+@@ -236,7 +236,7 @@ static snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_
+ snd_pcm_sframes_t n = snd_pcm_mmap_avail(pcm);
+ snd_pcm_uframes_t sframes;
+
+- if ((snd_pcm_uframes_t)n > frames)
++ if ((snd_pcm_uframes_t)n < frames)
+ frames = n;
+ if (frames == 0)
+ return 0;
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.0.17-sframe-type.patch b/media-libs/alsa-lib/files/alsa-lib-1.0.17-sframe-type.patch
new file mode 100644
index 000000000000..e36c41b50962
--- /dev/null
+++ b/media-libs/alsa-lib/files/alsa-lib-1.0.17-sframe-type.patch
@@ -0,0 +1,39 @@
+From: Lennart Poettering <mznyfn@0pointer.de>
+Date: Fri, 18 Jul 2008 19:22:50 +0000 (+0200)
+Subject: fix type of internally used sframes variable, to avoid unnecessary casts
+X-Git-Url: http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff_plain;h=15769ead725b7c215dedd4ea5196955086d2044a
+
+fix type of internally used sframes variable, to avoid unnecessary casts
+
+This minor patch fixes the type of the sframes variable in
+snd_pcm_plugin_forward(). With this fix we need to cast less and the
+code is less confusing.
+
+Signed-off-by: Lennart Poettering <lennart@poettering.net>
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+---
+
+diff --git a/src/pcm/pcm_plugin.c b/src/pcm/pcm_plugin.c
+index c199d8d..b377cb2 100644
+--- a/src/pcm/pcm_plugin.c
++++ b/src/pcm/pcm_plugin.c
+@@ -234,7 +234,7 @@ static snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_
+ {
+ snd_pcm_plugin_t *plugin = pcm->private_data;
+ snd_pcm_sframes_t n = snd_pcm_mmap_avail(pcm);
+- snd_pcm_uframes_t sframes;
++ snd_pcm_sframes_t sframes;
+
+ if ((snd_pcm_uframes_t)n < frames)
+ frames = n;
+@@ -246,8 +246,8 @@ static snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_
+ else
+ sframes = frames;
+ snd_atomic_write_begin(&plugin->watom);
+- sframes = INTERNAL(snd_pcm_forward)(plugin->gen.slave, (snd_pcm_uframes_t) sframes);
+- if ((snd_pcm_sframes_t) sframes < 0) {
++ sframes = INTERNAL(snd_pcm_forward)(plugin->gen.slave, sframes);
++ if (sframes < 0) {
+ snd_atomic_write_end(&plugin->watom);
+ return sframes;
+ }