diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-30 08:00:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-30 08:00:51 +0100 |
commit | d5ee59790ee8298b8599b0aa0fa21a98b972a44d (patch) | |
tree | 2cc4393cdcfae28879cee110e5975f6e6b798f91 /dev-python/pyalsa | |
parent | d855918b46ba8714cf1320fe63b55fd0ed1748a6 (diff) |
gentoo auto-resync : 30:06:2024 - 08:00:50
Diffstat (limited to 'dev-python/pyalsa')
-rw-r--r-- | dev-python/pyalsa/Manifest | 6 | ||||
-rw-r--r-- | dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch | 27 | ||||
-rw-r--r-- | dev-python/pyalsa/files/pyalsa-1.2.7-python3.12.patch | 34 | ||||
-rw-r--r-- | dev-python/pyalsa/pyalsa-1.2.12.ebuild | 2 | ||||
-rw-r--r-- | dev-python/pyalsa/pyalsa-1.2.7-r2.ebuild | 55 |
5 files changed, 2 insertions, 122 deletions
diff --git a/dev-python/pyalsa/Manifest b/dev-python/pyalsa/Manifest index 260e6fc216b4..8596445d08d2 100644 --- a/dev-python/pyalsa/Manifest +++ b/dev-python/pyalsa/Manifest @@ -1,7 +1,3 @@ -AUX pyalsa-1.1.6-no-build-symlinks.patch 682 BLAKE2B 046f4cffa0b08a32360356d82384148b805544b6f05e44ec329bef2299b67e46c68401b800761e9dff2141b22bc029a55fd5cf01cd5cdb533303aef91a2bbe0f SHA512 fd3937df5a69326908da942a8926e10221bb85693c863cc06ca363ca8fb07761173d2b51113615970887442d8779b2e9ff468b927b078acf52620e944b71b779 -AUX pyalsa-1.2.7-python3.12.patch 1266 BLAKE2B 3d39d2eeebb9d7c6063144294e94e95d57a377737e71797cc8099e6bebcf096040cbb73ba7eeedc6e866885c954b215f119fb96beb048ba5b32df9584e562eff SHA512 110849f66b4475f6693a2b3d64914745407417a4ac7a6b85a6c9ba0fca17f78ac0b48d1f251875bbec870a4dac58261f0a50da05e9b3911e6ce6f650f85b9c48 DIST pyalsa-1.2.12.tar.bz2 40133 BLAKE2B 50e4cff2d4fccdf8fd62cb379c08f55f8229b20cb51ac8c89c6ba84214663992748fc9c3555b4242457348dfc877280754f1574eaffb8c9cbc4e82d376d6660c SHA512 9073cb9a1fc6ad04bafa368435e45dd6c8506e14f0e594f02f7d2b7e06c72b8af9babf08cfead57a940a9ebde4548edf608196fea56089fe8d1300a04f573151 -DIST pyalsa-1.2.7.tar.bz2 40132 BLAKE2B c100d16bd8c0d9fc6eddcda360f3582c55ed1b143a58a49caf76a62494882952d311271941ce0ecdf57ac934f3564dc922c80e8a5f5742b593341ff4215b700c SHA512 126501fe7b9c006f28e9290bdd3ad907ea9e053b71e21e2c6f0b0beeecdba07b4b557014041b03452f96be690f59f2e647e075487ee87054f21f66df7f39b34b -EBUILD pyalsa-1.2.12.ebuild 990 BLAKE2B 022427c0cf7c2abc3fdd4a87fee18c54888a4b7afad3febeaffc2e32c5617b6ec501fc1a85f813198c652261b46c70a74b8bab9b48edc8db65afda927bbb1b88 SHA512 7acb55843969c69d74e520cfb5d38c4f80d8bac89dc7d6b78d2b94ffe6c46c8392a80bbc245300469c4fbbe01748d29d58242eebc8338fcc38070387f06c201b -EBUILD pyalsa-1.2.7-r2.ebuild 1095 BLAKE2B 02605570fad953007f053448a3ce8b4375d0a25ac2d1cea2a7d4fd65c3f02c280ec2ed25214a534387614cd3d3a1d056b41b09c4ef89a6d7526a7ffe431a3ba4 SHA512 ee884daba98a303a37f813a3c48dfe6bb5ba1c098010e2191fe17eae628defd33d6a2b5916f30ce8d84c0fdb127a40b90a369e433eead0d30401cd4ef5bcb5a6 +EBUILD pyalsa-1.2.12.ebuild 987 BLAKE2B 1d1c5b049718ee16c61caa4036f2b4b7d01d7dbc8324e8b9c60d3a2bf8d5cc2097b128da8c279e52d690579179d7db615e0f731b33591eca58a01225725b0580 SHA512 7c06110a8b89df969a7c2cc9b8f42af15d9c509b7be7719b4a979399ded1863e847bb5ac3dc57ff13499d56e0cd74b83fe6fd2dc9c9368581324d1cf6f397af3 MISC metadata.xml 301 BLAKE2B b816bb59aefb837bb3edb807a741eb0d940d4f4ba64a74b98af6fd3678ba12a012e129fa0bcaf6d1923b0b7382b5aab7590f12ad5272f140a9baa3368ce7d2e6 SHA512 9961a4ff57d373a9c70f5e47deea16973c7aea4a9f26dc3ee538371228021c1e46b59fe4519a23a208b0f72bb18f1fd90e8cc5ea9f68d88e9316826adf41dc80 diff --git a/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch b/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch deleted file mode 100644 index 7f8cf6815d03..000000000000 --- a/dev-python/pyalsa/files/pyalsa-1.1.6-no-build-symlinks.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- pyalsa-1.1.6/setup.py -+++ pyalsa-1.1.6/setup.py -@@ -70,24 +70,3 @@ - 'alsamixer', - 'alsaseq' - ] -- --uname = os.uname() --dir = 'build/lib.%s-%s-%s/pyalsa' % (uname[0].lower(), uname[4], sys.version[:3]) --files = os.path.exists(dir) and os.listdir(dir) or [] --for f in SOFILES: -- path = '' -- for f2 in files: -- if f2.startswith(f + '.') and f2.endswith('.so'): -- path = dir + '/' + f2 -- break -- if not path or not os.path.exists(path): -- continue -- p = 'pyalsa/%s.so' % f -- print("%s -> %s" % (p, path)) -- try: -- st = os.lstat(p) -- if stat.S_ISLNK(st.st_mode): -- os.remove(p) -- except: -- pass -- os.symlink('../' + path, 'pyalsa/%s.so' % f) diff --git a/dev-python/pyalsa/files/pyalsa-1.2.7-python3.12.patch b/dev-python/pyalsa/files/pyalsa-1.2.7-python3.12.patch deleted file mode 100644 index f27a7714a986..000000000000 --- a/dev-python/pyalsa/files/pyalsa-1.2.7-python3.12.patch +++ /dev/null @@ -1,34 +0,0 @@ -https://github.com/alsa-project/alsa-python/issues/9 -https://github.com/alsa-project/alsa-python/pull/10 -https://github.com/alsa-project/alsa-python/commit/cb75f5cdba0a29bdfa43eb56285da4917d2941a9 - -From cb75f5cdba0a29bdfa43eb56285da4917d2941a9 Mon Sep 17 00:00:00 2001 -From: Francesco Ceruti <ceppofrancy@gmail.com> -Date: Sat, 4 May 2024 22:16:16 +0200 -Subject: [PATCH] alsaseq: fix seg. fault when accessing `ConstantObject` extra - -Closes: https://github.com/alsa-project/alsa-python/pull/10 -Signed-off-by: Francesco Ceruti <ceppofrancy@gmail.com> -Signed-off-by: Jaroslav Kysela <perex@perex.cz> ---- a/pyalsa/alsaseq.c -+++ b/pyalsa/alsaseq.c -@@ -353,18 +353,11 @@ typedef struct { - } ConstantObject; - - #if PY_MAJOR_VERSION < 3 --/* PyInt is fixed size in Python 2 */ - # define CONST_VALUE(x) PyInt_AsLong((PyObject *)x) --# define CONST_EXTRA(x) (&(x->extra)) - #else --/* PyLong is variable size in Python 3 */ - # define CONST_VALUE(x) PyLong_AsLong((PyObject *)x) --# define CONST_EXTRA(x) \ -- ((ConstantExtraFields *)( \ -- ((intptr_t)(&x->extra)) \ -- + abs(Py_SIZE(&x->base)) * Py_TYPE(x)->tp_itemsize \ -- )) - #endif -+# define CONST_EXTRA(x) (&(x->extra)) - - /** alsaseq.Constant type (initialized later...) */ - static PyTypeObject ConstantType; diff --git a/dev-python/pyalsa/pyalsa-1.2.12.ebuild b/dev-python/pyalsa/pyalsa-1.2.12.ebuild index 203633b7130f..2e53d97a7d21 100644 --- a/dev-python/pyalsa/pyalsa-1.2.12.ebuild +++ b/dev-python/pyalsa/pyalsa-1.2.12.ebuild @@ -15,7 +15,7 @@ SRC_URI="https://www.alsa-project.org/files/pub/pyalsa/${P}.tar.bz2" LICENSE="LGPL-2.1+" SLOT="0" -KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc x86" +KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" # Needs access to system's alsa configuration/devices RESTRICT="test" diff --git a/dev-python/pyalsa/pyalsa-1.2.7-r2.ebuild b/dev-python/pyalsa/pyalsa-1.2.7-r2.ebuild deleted file mode 100644 index dcd1db533d12..000000000000 --- a/dev-python/pyalsa/pyalsa-1.2.7-r2.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) - -inherit distutils-r1 - -DESCRIPTION="Python bindings for ALSA library" -HOMEPAGE="https://alsa-project.org/wiki/Main_Page" -SRC_URI="https://www.alsa-project.org/files/pub/pyalsa/${P}.tar.bz2" - -LICENSE="LGPL-2.1+" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86" -# Needs access to system's alsa configuration/devices -RESTRICT="test" - -DEPEND=" - media-libs/alsa-lib -" -RDEPEND=" - ${DEPEND} -" -BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] -" - -PATCHES=( - "${FILESDIR}/${PN}-1.1.6-no-build-symlinks.patch" - "${FILESDIR}/${PN}-1.2.7-python3.12.patch" -) - -python_test() { - cd "${T}" || die - - shopt -s nullglob - local test - local failed - for test in "${S}"/test/*.py ; do - ${EPYTHON} "${test}" || { - eerror "${test} failed with ${EPYTHON}" - failed=1 - break - } - done - shopt -u nullglob - - if [[ ${failed} -eq 1 ]] ; then - die "${test} failed with ${EPYTHON}" - fi -} |