summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-29 06:58:09 +0100
committerSam James <sam@gentoo.org>2022-04-29 06:58:24 +0100
commit11ce9a87c1fce843a4753e3deaf94cacb7a8aec0 (patch)
tree4ca87679387ce069edb59ece9accfe56520f26c4 /sys-firmware
parentdev-libs/nss: add 3.78 (diff)
downloadgentoo-11ce9a87c1fce843a4753e3deaf94cacb7a8aec0.tar.gz
gentoo-11ce9a87c1fce843a4753e3deaf94cacb7a8aec0.tar.bz2
gentoo-11ce9a87c1fce843a4753e3deaf94cacb7a8aec0.zip
sys-firmware/sof-firmware: fix pkg_preinst
Closes: https://bugs.gentoo.org/841560 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/sof-firmware/sof-firmware-2.1.1-r1.ebuild (renamed from sys-firmware/sof-firmware/sof-firmware-2.1.1.ebuild)5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-firmware/sof-firmware/sof-firmware-2.1.1.ebuild b/sys-firmware/sof-firmware/sof-firmware-2.1.1-r1.ebuild
index fd66eee7a67b..b51c9026bd32 100644
--- a/sys-firmware/sof-firmware/sof-firmware-2.1.1.ebuild
+++ b/sys-firmware/sof-firmware/sof-firmware-2.1.1-r1.ebuild
@@ -12,6 +12,9 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
+# Needed for sof-ctl
+RDEPEND="media-libs/alsa-lib"
+
QA_PREBUILT="usr/bin/sof-ctl
usr/bin/sof-logger
usr/bin/sof-probes"
@@ -24,7 +27,7 @@ src_install() {
pkg_preinst() {
local sofpath="${EROOT}/lib/firmware/intel/sof"
- if [[ ! -L "${sofpath}" ]] ; then
+ if [[ ! -L "${sofpath}" && -d "${sofpath}" ]] ; then
rm -r "${sofpath}" || die
fi
}