From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/alsa-lib/, media-libs/alsa-lib/files/
Date: Thu, 5 Apr 2018 11:50:24 +0000 (UTC) [thread overview]
Message-ID: <1522929020.69e184dd4ff12b9f4d0df8d7db5187dd6d630c42.polynomial-c@gentoo> (raw)
commit: 69e184dd4ff12b9f4d0df8d7db5187dd6d630c42
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 5 11:50:04 2018 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Apr 5 11:50:20 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69e184dd
media-libs/alsa-lib: Revbump to add python3 support.
Also fixed build with USE="alisp"
Package-Manager: Portage-2.3.28, Repoman-2.3.9
...a-lib-1.1.6.ebuild => alsa-lib-1.1.6-r1.ebuild} | 7 +-
.../files/alsa-lib-1.1.6-missing_files.patch | 196 +++++++++++++++++++++
2 files changed, 201 insertions(+), 2 deletions(-)
diff --git a/media-libs/alsa-lib/alsa-lib-1.1.6.ebuild b/media-libs/alsa-lib/alsa-lib-1.1.6-r1.ebuild
similarity index 95%
rename from media-libs/alsa-lib/alsa-lib-1.1.6.ebuild
rename to media-libs/alsa-lib/alsa-lib-1.1.6-r1.ebuild
index d707b7888ae..f03ea3f74da 100644
--- a/media-libs/alsa-lib/alsa-lib-1.1.6.ebuild
+++ b/media-libs/alsa-lib/alsa-lib-1.1.6-r1.ebuild
@@ -3,8 +3,7 @@
EAPI=6
-# no support for python3_2 or above yet wrt #471326
-PYTHON_COMPAT=( python2_7 )
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
inherit autotools multilib multilib-minimal python-single-r1
@@ -23,6 +22,10 @@ DEPEND="${RDEPEND}
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+PATCHES=(
+ "${FILESDIR}/${P}-missing_files.patch" #652422
+)
+
pkg_setup() {
use python && python-single-r1_pkg_setup
}
diff --git a/media-libs/alsa-lib/files/alsa-lib-1.1.6-missing_files.patch b/media-libs/alsa-lib/files/alsa-lib-1.1.6-missing_files.patch
new file mode 100644
index 00000000000..909a00b985b
--- /dev/null
+++ b/media-libs/alsa-lib/files/alsa-lib-1.1.6-missing_files.patch
@@ -0,0 +1,196 @@
+https://bugs.gentoo.org/652422
+
+--- alsa-lib-1.1.6/src/conf/cards/aliases.alisp
++++ alsa-lib-1.1.6/src/conf/cards/aliases.alisp
+@@ -0,0 +1,29 @@
++(setq snd_card_aliases_array
++ (
++ ("YMF724" . "YMF744")
++ ("YMF724F" . "YMF744")
++ ("YMF740" . "YMF744")
++ ("YMF740C" . "YMF744")
++ ("YMF754" . "YMF744")
++ ("CMIPCI" . "CMI8338")
++ ("CMI8738" . "CMI8338")
++ ("CMI8738-MC4" . "CMI8738-MC6")
++ ("E-mu APS" . "EMU10K1")
++ ("GUS Max" . "GUS")
++ ("GUS ACE" . "GUS")
++ ("GUS Extreme" . "GUS")
++ ("AMD InterWave" . "GUS")
++ ("Dynasonic 3-D" . "GUS")
++ ("InterWave STB" . "GUS")
++ )
++)
++
++(defun snd_card_alias (cardname)
++ (setq r (assq cardname snd_card_aliases_array))
++ (setq r (if (null r) cardname r))
++ (unsetq r)
++)
++
++(defun snd_card_alias_unset ()
++ (unsetq snd_card_aliases_array snd_card_alias)
++)
+--- alsa-lib-1.1.6/src/conf/cards/SI7018/sndoc-mixer.alisp
++++ alsa-lib-1.1.6/src/conf/cards/SI7018/sndoc-mixer.alisp
+@@ -0,0 +1,11 @@
++;
++; SiS SI7018 mixer abstract layer
++;
++; Copyright (c) 2003 Jaroslav Kysela <perex@perex.cz>
++; License: GPL v2 (http://www.gnu.org/licenses/gpl.html)
++;
++
++(defun sndoc_mixer_open (hctl pcm)
++ (princ "sndoc_mixer_open: hctl=" hctl " pcm=" pcm "\n")
++ 0
++)
+--- alsa-lib-1.1.6/src/conf/cards/SI7018/sndop-mixer.alisp
++++ alsa-lib-1.1.6/src/conf/cards/SI7018/sndop-mixer.alisp
+@@ -0,0 +1,11 @@
++;
++; SiS SI7018 mixer abstract layer
++;
++; Copyright (c) 2003 Jaroslav Kysela <perex@perex.cz>
++; License: GPL v2 (http://www.gnu.org/licenses/gpl.html)
++;
++
++(defun sndop_mixer_open (hctl pcm)
++ (princ "sndop_mixer_open: hctl=" hctl " pcm=" pcm "\n")
++ 0
++)
+--- alsa-lib-1.1.6/src/conf/smixer.conf
++++ alsa-lib-1.1.6/src/conf/smixer.conf
+@@ -0,0 +1,13 @@
++_full smixer-python.so
++usb {
++ searchl "USB"
++ lib smixer-usb.so
++}
++ac97 {
++ searchl "AC97a:"
++ lib smixer-ac97.so
++}
++hda {
++ searchl "HDA:"
++ lib smixer-hda.so
++}
+--- alsa-lib-1.1.6/src/conf/sndo-mixer.alisp
++++ alsa-lib-1.1.6/src/conf/sndo-mixer.alisp
+@@ -0,0 +1,115 @@
++;
++; Toplevel configuration for the ALSA Ordinary Mixer Interface
++;
++; Copyright (c) 2003 Jaroslav Kysela <perex@perex.cz>
++; License: GPL v2 (http://www.gnu.org/licenses/gpl.html)
++;
++
++(defun sndo_include (hctl stream)
++ (setq info (Acall "ctl_card_info" (Acall "hctl_ctl" hctl)))
++ (if (= (Aerror info) 0)
++ (progn
++ (setq info (Aresult info))
++ (setq driver (cdr (assq "driver" (unsetq info))))
++ (setq file (concat (path "data") "/alsa/cards/" (snd_card_alias driver) "/sndo" stream "-mixer.alisp"))
++ (setq r (include file))
++ (when (= r -2) (Asyserr "unable to find file " file))
++ )
++ (setq r (Aerror info))
++ )
++ (unsetq info driver file r)
++)
++
++(defun sndo_mixer_open_fcn (hctl stream pcm)
++ (setq fcn (concat "sndo" stream "_mixer_open"))
++ (setq r (if (exfun fcn) (funcall fcn hctl pcm) 0))
++ (when (= r 0)
++ (setq hctls (if hctls (cons hctls (cons hctl)) hctl))
++ )
++ (unsetq fcn r)
++)
++
++(defun sndo_mixer_open_hctl (name stream pcm)
++ (setq hctl (Acall "hctl_open" name nil))
++ (setq r (Aerror hctl))
++ (when (= r 0)
++ (setq hctl (Aresult hctl))
++ (setq r (sndo_include hctl stream))
++ (if (= r 0)
++ (setq r (sndo_mixer_open_fcn hctl stream pcm))
++ (Acall "hctl_close" hctl)
++ )
++ )
++ (unsetq hctl r)
++)
++
++(defun sndo_mixer_open_virtual (name stream pcm)
++ (setq file (concat (path "data") "/alsa/virtual/" name "/sndo" stream "-mixer.alisp"))
++ (setq r (include file))
++ (when (= r -2) (Asyserr "unable to find file " file))
++ (when (= r 0) (setq r (sndo_mixer_open_fcn nil stream pcm)))
++ (unsetq file r)
++)
++
++(defun sndo_mixer_open1 (name stream)
++ (if (compare-strings name 0 2 "hw:" 0 2)
++ (sndo_mixer_open_hctl name stream nil)
++ (sndo_mixer_open_virtual name stream nil)
++ )
++)
++
++(defun sndo_mixer_open (pname cname)
++ (setq r (sndo_mixer_open1 pname "p"))
++ (when (= r 0) (setq r (sndo_mixer_open1 cname "c")))
++ (when (!= r 0) (sndo_mixer_close))
++ (unsetq sndo_mixer_open
++ sndo_mixer_open_pcm sndo_mixer_open_pcm1
++ sndo_mixer_open_virtual sndo_mixer_open_fcn
++ sndo_include r)
++)
++
++(defun sndo_mixer_open_pcm1 (pcm stream)
++ (setq info (Acall "pcm_info" pcm))
++ (setq r (Aerror info))
++ (when (= r 0)
++ (setq info (Aresult info))
++ (setq card (cdr (assq "card" info)))
++ (setq r
++ (if (< card 0)
++ (sndo_mixer_open_virtual (Acall "pcm_name" pcm) stream pcm)
++ (sndo_mixer_open_hctl (format "hw:%i" card) stream pcm)
++ )
++ )
++ )
++ (unsetq info card r)
++)
++
++(defun sndo_mixer_open_pcm (ppcm cpcm)
++ (setq r (sndo_mixer_open_pcm1 ppcm "p"))
++ (when (= r 0) (setq r (sndo_mixer_open_pcm1 cpcm "c")))
++ (when (!= r 0) (sndo_mixer_close))
++ (unsetq sndo_mixer_open
++ sndo_mixer_open_pcm sndo_mixer_open_pcm1
++ sndo_mixer_open_virtual sndo_mixer_open_fcn
++ sndo_include r)
++)
++
++(defun sndo_mixer_close1 (hctl stream)
++ (when hctl
++ (progn
++ (setq fcn (concat "sndo" stream "_mixer_close"))
++ (when (exfun fcn) (funcall fcn hctl))
++ (unsetq fcn)
++ (Acall "hctl_close" hctl)
++ )
++ )
++)
++
++(defun sndo_mixer_close nil
++ (sndo_mixer_close1 (nth 1 hctls) "c")
++ (sndo_mixer_close1 (nth 0 hctls) "p")
++ (snd_card_alias_unset)
++ (unsetq hctls)
++)
++
++(include (concat (path "data") "/alsa/cards/aliases.alisp"))
next reply other threads:[~2018-04-05 11:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-05 11:50 Lars Wendler [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-06 22:11 [gentoo-commits] repo/gentoo:master commit in: media-libs/alsa-lib/, media-libs/alsa-lib/files/ Sam James
2024-10-04 17:37 Andreas Sturmlechner
2024-02-17 6:40 Sam James
2023-09-15 4:33 Sam James
2023-09-07 14:48 Sam James
2022-06-01 7:21 Lars Wendler
2021-05-28 1:41 Sam James
2020-05-02 17:12 Andreas Sturmlechner
2020-02-20 15:49 Lars Wendler
2019-11-25 21:14 Lars Wendler
2017-05-18 11:44 Lars Wendler
2015-10-08 17:16 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1522929020.69e184dd4ff12b9f4d0df8d7db5187dd6d630c42.polynomial-c@gentoo \
--to=polynomial-c@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox