From 176feaa75dcf6fb076ddabfcbf313b9b9580d614 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 3 Apr 2024 08:47:23 +0200 Subject: [PATCH] fix sof-ace-tplg directory symlink collisions (lua pretrans) Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2272860 Signed-off-by: Jaroslav Kysela --- alsa-sof-firmware.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/alsa-sof-firmware.spec b/alsa-sof-firmware.spec index 907975b..62acdc7 100644 --- a/alsa-sof-firmware.spec +++ b/alsa-sof-firmware.spec @@ -19,7 +19,7 @@ Summary: Firmware and topology files for Sound Open Firmware project Name: alsa-sof-firmware Version: %{sof_ver} -Release: 1%{?sof_ver_rel}%{?dist} +Release: 2%{?sof_ver_rel}%{?dist} # See later in the spec for a breakdown of licensing License: BSD-3-Clause Apache-2.0 URL: https://github.com/thesofproject/sof-bin @@ -153,8 +153,15 @@ if st and st.type == "link" then os.remove(path) end +path1 = "%{_firmwarepath}/intel/sof-ace-tplg" +path2 = "%{_firmwarepath}/intel/sof-ipc4-tplg" +st = posix.stat(path1) +if st and st.type == "directory" then + os.rename(path1, path2) +end + %changelog -* Tue Apr 2 2024 Jaroslav Kysela - 2024.03-1 +* Wed Apr 3 2024 Jaroslav Kysela - 2024.03-2 - Update to v2024.03 * Tue Mar 5 2024 Jaroslav Kysela - 2023.12.1-1