main/alsa-lib: enable asserts again

The `--without-debug` flag was added silently in
e7099738bf1b128a096ef96db35bb6a7d01eda69. As per `./configure --help`,
this flag disable assert statements in alsa-lib. This is undesirable
since it makes library usage errors more laborious to debug or
potentially even makes them go unnoticed.

For example, see #12729 where a null pointer was passed to
snd_config_delete by alsa-utils. While the snd_config_delete function in
alsa-lib contains an assert checking that the passed config is non-null
this assert was disabled due to the aforementioned configure flag.

See also:

* https://lists.alpinelinux.org/~alpine/devel/%3C1ZU8S8ERRPKR9.35CUIBSS8QET7%408pit.net%3E
This commit is contained in:
Sören Tempel 2021-06-06 12:18:13 +02:00 committed by Leo
parent e72d851558
commit 51e4fc6fdc

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-lib
pkgver=1.2.5
pkgrel=1
pkgrel=2
pkgdesc="Advanced Linux Sound Architecture (ALSA) library"
url="http://www.alsa-project.org"
arch="all"
@ -27,7 +27,6 @@ build() {
--enable-rawmidi \
--enable-seq \
--enable-aload \
--without-debug \
--disable-dependency-tracking \
--without-versioned
make