From 1211fb54d98649cf0d8efc0dbc680bc95ae8f9fd Mon Sep 17 00:00:00 2001 From: wzx Date: Wed, 10 Aug 2022 09:36:13 +0800 Subject: [PATCH] add sw64 architecture --- alsa-lib-1.2.5.1-sw.patch | 12 ++++++++++++ alsa-lib.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 alsa-lib-1.2.5.1-sw.patch diff --git a/alsa-lib-1.2.5.1-sw.patch b/alsa-lib-1.2.5.1-sw.patch new file mode 100755 index 0000000..18f89d6 --- /dev/null +++ b/alsa-lib-1.2.5.1-sw.patch @@ -0,0 +1,12 @@ +diff -Naur alsa-lib-1.2.5.1.org/include/alsa-symbols.h alsa-lib-1.2.5.1.sw/include/alsa-symbols.h +--- alsa-lib-1.2.5.1.org/include/alsa-symbols.h 2020-10-19 09:45:13.000000000 +0000 ++++ alsa-lib-1.2.5.1.sw/include/alsa-symbols.h 2021-11-13 15:59:28.040000000 +0000 +@@ -43,7 +43,7 @@ + default_symbol_version(real, name, version) + #else + #define use_symbol_version(real, name, version) /* nothing */ +-#if defined(__alpha__) || defined(__mips__) ++#if defined(__alpha__) || defined(__sw_64__) || defined(__mips__) + #define use_default_symbol_version(real, name, version) \ + __asm__ (".weak " ASM_NAME(#name)); \ + __asm__ (ASM_NAME(#name) " = " ASM_NAME(#real)) diff --git a/alsa-lib.spec b/alsa-lib.spec index 38d20ac..dd37edb 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -2,7 +2,7 @@ %define version_alsa_tplg 1.2.5.1 Name: alsa-lib Version: 1.2.5.1 -Release: 1 +Release: 2 Summary: the user space library that developers compile ALSA applications against License: LGPLv2+ @@ -13,6 +13,8 @@ Source2: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{version_alsa_t Source10: asound.conf Source40: alsa-ucm-conf.patch +Patch1: alsa-lib-1.2.5.1-sw.patch + BuildRequires: autoconf, automake, libtool, doxygen Requires: coreutils @@ -122,6 +124,9 @@ tar xvjf %{SOURCE2} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/top %{_datadir}/alsa/topology %changelog +* Thu Apr 11 2022 wuzx - 1.2.5.1-2 +- add sw64 patch + * Mon Nov 29 2021 zhouwenpei - 1.2.5.1-1 - update to 1.2.5.1 -- Gitee