diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-07-11 19:08:15 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-07-11 19:11:01 +0200 |
commit | 9e0f3ef79e2abc5e7ef29250820e99ff5246b78d (patch) | |
tree | 79b9f0d73e0930c7c608c9d574c95fadd1a2f6ec /main/alsa-lib/APKBUILD | |
parent | d99210497704ebac146e48e2f93c8bee906a0b35 (diff) |
main/alsa-lib: avoid using wordexp
wordexp implementation will execute /bin/sh (as suggested in posix).
This breaks firefox sandbox. We also need to expand ~/ so that alsa uses
~/.asoundrc so we cannot just trick the configurescript to think that we
dont have wordexp since the fallback code would not expand anything at
all.
ref #7454
Diffstat (limited to 'main/alsa-lib/APKBUILD')
-rw-r--r-- | main/alsa-lib/APKBUILD | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/main/alsa-lib/APKBUILD b/main/alsa-lib/APKBUILD index a901778c157..3f9695ef20d 100644 --- a/main/alsa-lib/APKBUILD +++ b/main/alsa-lib/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=alsa-lib pkgver=1.1.4.1 -pkgrel=1 +pkgrel=2 pkgdesc="An alternative implementation of Linux sound support" url="http://www.alsa-project.org" arch="all" @@ -12,6 +12,7 @@ source="ftp://ftp.alsa-project.org/pub/lib/$pkgname-$pkgver.tar.bz2 alsa-lib-poll.patch alsa-lib-stdint.patch ucm_add_limits_h.patch + 0001-snd_user_file-avoid-use-wordexp.patch " builddir="$srcdir/$pkgname-$pkgver" @@ -24,10 +25,6 @@ prepare() { build() { cd "$builddir" - # musl does support wordexp but we don't want alsa to use it since it will - # execute /bin/sh and break things like firefox sandbox - # https://bugs.alpinelinux.org/issues/7454 - ac_cv_header_wordexp_h=no \ ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -51,4 +48,5 @@ package() { sha512sums="7b548c4ee29c4a1230a0edcd5d19219831290f96a214180a6530628acc05278d1348376195287d188f4f44d6be1914391c63994f1b50985c3eee74352da26b0b alsa-lib-1.1.4.1.tar.bz2 bdf86a1b76b2e6e9b43af33989fe51e4900fa0c6f317d8d746f30c540df647dbe0f6d41ec35b36b1cf7e46cc5e910e0a62bc39c765f849356ecd6e98d1de5885 alsa-lib-poll.patch 2351262dade9a3c1a3de1b7d1a3a53a634a438b9b8aae7cc69e2b981500051f039e6381359b81392114ec6236e3d513b577bd4bf12c3d2ce1f871cd7651b2cab alsa-lib-stdint.patch -3b37652d50809443b5f8e80f8d447108195b0cd66fd917805bb393fc091584b6f3dad4414f568742b61745617e7a695862058a0a0f93dcc31e4c97177a520352 ucm_add_limits_h.patch" +3b37652d50809443b5f8e80f8d447108195b0cd66fd917805bb393fc091584b6f3dad4414f568742b61745617e7a695862058a0a0f93dcc31e4c97177a520352 ucm_add_limits_h.patch +e6baeee549533ea4b113bacfa772c183456ce51e6c84b378b82a6735159e43a11ff30c0a4a15207110c42dbd7be5e67bc5e2f593cdc99bd8b079204df7498ceb 0001-snd_user_file-avoid-use-wordexp.patch" |