alsa-lib: Add new version and python dependency. (#16905)
Add version 1.2.2. Add conditional python dependency. Add patch for 1.1.4.1 and python.
This commit is contained in:
parent
5d37439a7b
commit
76142124d2
@ -12,6 +12,29 @@ class AlsaLib(AutotoolsPackage):
|
||||
space library that developers compile ALSA applications against."""
|
||||
|
||||
homepage = "https://www.alsa-project.org"
|
||||
url = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.4.1.tar.bz2"
|
||||
url = "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.2.2.tar.bz2"
|
||||
|
||||
version('1.2.2', sha256='d8e853d8805574777bbe40937812ad1419c9ea7210e176f0def3e6ed255ab3ec')
|
||||
version('1.1.4.1', sha256='91bb870c14d1c7c269213285eeed874fa3d28112077db061a3af8010d0885b76')
|
||||
|
||||
variant('python', default=False, description='enable python')
|
||||
|
||||
patch('python.patch', when='@1.1.4:1.1.5 +python')
|
||||
|
||||
depends_on('python', type=('link', 'run'), when='+python')
|
||||
|
||||
def configure_args(self):
|
||||
spec = self.spec
|
||||
args = []
|
||||
if spec.satisfies('+python'):
|
||||
args.append(
|
||||
'--with-pythonlibs={0}'.format(spec['python'].libs.ld_flags)
|
||||
)
|
||||
args.append(
|
||||
'--with-pythonincludes={0}'.format(
|
||||
spec['python'].headers.include_flags
|
||||
)
|
||||
)
|
||||
else:
|
||||
args.append('--disable-python')
|
||||
return args
|
||||
|
20
var/spack/repos/builtin/packages/alsa-lib/python.patch
Normal file
20
var/spack/repos/builtin/packages/alsa-lib/python.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff --git a/modules/mixer/simple/python.c b/modules/mixer/simple/python.c
|
||||
index c822c52a..917a5d0a 100644
|
||||
--- a/modules/mixer/simple/python.c
|
||||
+++ b/modules/mixer/simple/python.c
|
||||
@@ -588,7 +588,6 @@
|
||||
pymelem_dealloc(struct pymelem *self)
|
||||
{
|
||||
selem_free(self->melem);
|
||||
- self->ob_type->tp_free(self);
|
||||
}
|
||||
|
||||
static PyGetSetDef pymelem_getseters[] = {
|
||||
@@ -800,7 +799,6 @@
|
||||
pymixer_dealloc(struct pymixer *self)
|
||||
{
|
||||
pymixer_free(self);
|
||||
- self->ob_type->tp_free(self);
|
||||
}
|
||||
|
||||
static PyGetSetDef pymixer_getseters[] = {
|
Loading…
Reference in New Issue
Block a user