Commit 1e187777 authored by prspkt's avatar prspkt Committed by Milan P. Stanić

main/alsa-lib: upgrade to 1.2.4

* Add patch to fix build time error:
  'snd_plugin_dir_set' undeclared (first use in this function)
parent cf6dc674
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-lib
pkgver=1.2.3.2
pkgrel=1
pkgver=1.2.4
pkgrel=0
pkgdesc="Advanced Linux Sound Architecture (ALSA) library"
url="http://www.alsa-project.org"
arch="all"
......@@ -9,7 +9,8 @@ license="LGPL-2.1-or-later"
subpackages="$pkgname-dev $pkgname-dbg"
makedepends="linux-headers"
source="ftp://ftp.alsa-project.org/pub/lib/alsa-lib-$pkgver.tar.bz2
remove-test.patch"
remove-test.patch
fix-dlo.patch"
build() {
./configure \
......@@ -37,5 +38,6 @@ package() {
make -j1 DESTDIR="$pkgdir" install
}
sha512sums="1fbc6360fda841bd9ca488739bdc9f4142c1b4a07ff767f48f1e160e3d4dff914aed422c97088e238b5e77d7e30aa79ff72569c3348a4cf4a412e1e4bce0bf2a alsa-lib-1.2.3.2.tar.bz2
e15318431fe2d5bd1e42ef793f223e3e5995890d7befe6daa3d7456ccf5cb2f51eb79171539cecae13032a9b8a798ea35e04c89b27c7ef9567e2c03fb8db4512 remove-test.patch"
sha512sums="12086952dc8f16f1cb6946517858e17b1c3276aeda9ff5703a84bb38aa78eb4c4e9cb4485c5b3f21f174fdbd976b3bcbbc481e85cb2460652858490df51ae844 alsa-lib-1.2.4.tar.bz2
e15318431fe2d5bd1e42ef793f223e3e5995890d7befe6daa3d7456ccf5cb2f51eb79171539cecae13032a9b8a798ea35e04c89b27c7ef9567e2c03fb8db4512 remove-test.patch
5726e6c5fabcdfa38098ea0b717afa4014ae63688c9a2fd565bbaaf739c4328e2c3e346ee11cc5253048b0ebed601be0115169a7486f9cddfb74ede420d12b66 fix-dlo.patch"
dlmisc.c:95:7: error: 'snd_plugin_dir_set' undeclared (first use in this function)
95 | if (!snd_plugin_dir_set) {
| ^~~~~~~~~~~~~~~~~~
dlmisc.c:95:7: note: each undeclared identifier is reported only once for each function it appears in
dlmisc.c:98:4: error: 'snd_plugin_dir' undeclared (first use in this function)
98 | snd_plugin_dir = strdup(env);
|
--- a/src/dlmisc.c
+++ b/src/dlmisc.c
@@ -91,6 +91,7 @@
*/
int snd_dlpath(char *path, size_t path_len, const char *name)
{
+#ifdef DL_ORIGIN_AVAILABLE
snd_dlpath_lock();
if (!snd_plugin_dir_set) {
const char *env = getenv("ALSA_PLUGIN_DIR");
@@ -104,6 +105,7 @@
snprintf(path, path_len, "%s/%s",
snd_plugin_dir ? snd_plugin_dir : ALSA_PLUGIN_DIR, name);
snd_dlpath_unlock();
+#endif
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment