commit:     a151fbb00ab4a8d9be82dc84a1c920a83777f52e
Author:     Niklāvs Koļesņikovs <89q1r14hd <AT> relay <DOT> firefox <DOT> com>
AuthorDate: Thu Jun  3 19:02:32 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Jun  5 20:09:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a151fbb0

media-libs/alsa-lib: updates to a snapshot for many important fixes

This commit updates alsa-lib to a snapshot from June 4, 2021 containing
a fix for missing HDMI audio profiles that many people reported across
distributions. Also multiple fixes for possible crashes or worse.

Thanks-to: Joakim Tjernlund <joakim.tjernlund <AT> infinera.com> (HDMI issue)
Thanks-to: Wim Taymans <wtaymans <AT> redhat.com> (_alibpref clarification)
Thanks-to: Jaroslav Kysela <perex <AT> perex.cz> (Fedora patchset)
Bug: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1251
Closes: https://bugs.gentoo.org/793410
Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd <AT> relay.firefox.com>
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 media-libs/alsa-lib/Manifest                        |  2 +-
 ...1.2.5.ebuild => alsa-lib-1.2.5_p20210604.ebuild} | 21 ++++++++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/media-libs/alsa-lib/Manifest b/media-libs/alsa-lib/Manifest
index 088fbc2ca50..ece4621318c 100644
--- a/media-libs/alsa-lib/Manifest
+++ b/media-libs/alsa-lib/Manifest
@@ -1,4 +1,4 @@
 DIST alsa-lib-1.2.2.tar.bz2 1030747 BLAKE2B 
176054c7783452fcd0b30482f4d85fb88a1364a97f79830f2c22cd578275280fa64537d00a08f3e3b1420e4aeb4e4269c7523cb4296db3ed095bcf078b452726
 SHA512 
d21adb3ff998918c7d1820f9ce2aaf4202dd45ccb87cb092d49da8b2402b6ddaad06325be0fd59f17393a5d9958e3743bfccb4b14bdb947a42e7d791d73c7033
 DIST alsa-lib-1.2.3.2.tar.bz2 1038591 BLAKE2B 
70ba972953f71fc6ac20f6f3e91361b5aed72c8c7887252331a01334ec4cc154c1bfea02dfaf0f76f8244b8cf73426d83577dcf55aa0033f80ee303d23386df6
 SHA512 
1fbc6360fda841bd9ca488739bdc9f4142c1b4a07ff767f48f1e160e3d4dff914aed422c97088e238b5e77d7e30aa79ff72569c3348a4cf4a412e1e4bce0bf2a
 DIST alsa-lib-1.2.4.tar.bz2 1044405 BLAKE2B 
e1d5d9afe21dac693645274ae4ec8a607c9fcc9915ba4ebccfdb539d44b9353ba07529e2c8eaca119884b926d4467285313c945c9015a788101fe532064442db
 SHA512 
12086952dc8f16f1cb6946517858e17b1c3276aeda9ff5703a84bb38aa78eb4c4e9cb4485c5b3f21f174fdbd976b3bcbbc481e85cb2460652858490df51ae844
-DIST alsa-lib-1.2.5.tar.bz2 1068496 BLAKE2B 
84fe4e22d4316bfc84f15f2493f40f113eb3db7722f230550586533e80daf214140164e8ddc1a399b82a3fd0fb21125ff225cfeb45eaa19320c2e2aa3997c662
 SHA512 
d9b53484737a3684aac7e08b4b18400aac10fec1a78a8bf9101944bea2c50710bc7355e9bb0012541b067e2d5ee7b1b818bf1bdbffbb2b2d7ad0eb15efe49725
+DIST alsa-lib-1.2.5_p20210604.tar.gz 814186 BLAKE2B 
d3bc2f42a0266c1af33953026eecb97d9d4f2cc845924b762b7f6777d15e2a3f60347bd3d6184a8b431ebe703c3b06bcbfbef67345064fbcd14b223e5e4d0e4e
 SHA512 
e04ac38ae6f4b97ac75584c36562ad620820be5156206dc6466b8bfac0d50d1c8e588fac7d5e9d8716c9c89b82ebd9ae9cbc8137080a433a5ddde8177c102a99

diff --git a/media-libs/alsa-lib/alsa-lib-1.2.5.ebuild 
b/media-libs/alsa-lib/alsa-lib-1.2.5_p20210604.ebuild
similarity index 69%
rename from media-libs/alsa-lib/alsa-lib-1.2.5.ebuild
rename to media-libs/alsa-lib/alsa-lib-1.2.5_p20210604.ebuild
index 8183119b95e..df1ce950ded 100644
--- a/media-libs/alsa-lib/alsa-lib-1.2.5.ebuild
+++ b/media-libs/alsa-lib/alsa-lib-1.2.5_p20210604.ebuild
@@ -6,9 +6,20 @@ EAPI=7
 PYTHON_COMPAT=( python3_{7,8,9} )
 inherit autotools multilib-minimal python-single-r1
 
+# When COMMIT is defined, this ebuild turns from a release into a snapshot 
ebuild:
+COMMIT="abe805ed6c7f38e48002e575535afd1f673b9bcd"
+# Also set SNAPSHOT_PV to match the correct PV, so that the ebuild can detect 
a naive rename:
+SNAPSHOT_PV="1.2.5_p20210604"
+
 DESCRIPTION="Advanced Linux Sound Architecture Library"
 HOMEPAGE="https://alsa-project.org/";
-SRC_URI="https://www.alsa-project.org/files/pub/lib/${P}.tar.bz2";
+if [[ -n ${COMMIT} ]]; then
+       
SRC_URI="https://git.alsa-project.org/?p=${PN}.git;a=snapshot;h=${COMMIT};sf=tgz
 -> ${P}.tar.gz"
+       S="${WORKDIR}"/${PN}-${COMMIT:0:7}
+else
+       # TODO: Upstream does publish .sig files, so someone could implement 
verify-sig ;)
+       SRC_URI="https://www.alsa-project.org/files/pub/lib/${P}.tar.bz2";
+fi
 
 LICENSE="LGPL-2.1"
 SLOT="0"
@@ -28,6 +39,14 @@ PATCHES=(
        "${FILESDIR}/${PN}-1.1.6-missing_files.patch" # bug #652422
 )
 
+pkg_pretend() {
+       if [[ -n ${COMMIT} && -z ${SNAPSHOT_PV} || -z ${COMMIT} && -n 
${SNAPSHOT_PV} ]]; then
+               eerror "Please either set both COMMIT and SNAPSHOT_PV or 
neither!"
+       elif [[ -n ${SNAPSHOT_PV} && ${PV} != ${SNAPSHOT_PV} ]]; then
+               eerror "Rename of snapshot ebuild detected - please check 
COMMIT & SNAPSHOT_PV!"
+       fi
+}
+
 pkg_setup() {
        use python && python-single-r1_pkg_setup
 }

Reply via email to