add sw_64 support

(cherry picked from commit 0c51d34f5e1fe8dfb20b374c13e460e039248fcd)
This commit is contained in:
Hailiang 2025-03-15 17:46:14 +08:00 committed by openeuler-sync-bot
parent 3872ef1087
commit f8b302b192
2 changed files with 48 additions and 1 deletions

39
add-sw_64-support.patch Normal file
View File

@ -0,0 +1,39 @@
From 30f46dd6cda45baac22d968a5d612664759e2b2d Mon Sep 17 00:00:00 2001
From: Hailiang <mahailiang@uniontech.com>
Date: Sat, 15 Mar 2025 17:47:36 +0800
Subject: [PATCH] add sw_64 support
---
build/make/configure.sh | 3 +++
configure | 1 +
2 files changed, 4 insertions(+)
diff --git a/build/make/configure.sh b/build/make/configure.sh
index 41d78c1..ad28312 100644
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -786,6 +786,9 @@ process_common_toolchain() {
riscv64*)
tgt_isa=riscv64
;;
+ sw_64*)
+ tgt_isa=sw_64
+ ;;
esac
diff --git a/configure b/configure
index 45d97f8..0d578b5 100755
--- a/configure
+++ b/configure
@@ -126,6 +126,7 @@ all_platforms="${all_platforms} mips64-linux-gcc"
all_platforms="${all_platforms} ppc64le-linux-gcc"
all_platforms="${all_platforms} riscv64-linux-gcc"
all_platforms="${all_platforms} sparc-solaris-gcc"
+all_platforms="${all_platforms} sw_64-linux-gcc"
all_platforms="${all_platforms} x86-android-gcc"
all_platforms="${all_platforms} x86-darwin8-gcc"
all_platforms="${all_platforms} x86-darwin8-icc"
--
2.20.1

View File

@ -1,6 +1,6 @@
Name: libvpx
Version: 1.13.1
Release: 2
Release: 3
Summary: VP8/VP9 Video Codec SDK
License: BSD-3-Clause
Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz
@ -9,6 +9,7 @@ Patch1: CVE-2024-5197-pre1.patch
Patch2: CVE-2024-5197-1.patch
Patch3: CVE-2024-5197-2.patch
Patch4: CVE-2024-5197-3.patch
Patch5: add-sw_64-support.patch
URL: http://www.webmproject.org/code/
BuildRequires: gcc gcc-c++ doxygen, php-cli, perl(Getopt::Long)
%ifarch x86_64
@ -42,10 +43,14 @@ Development libraries and headers for developing software against libvpx.
%ifarch riscv64
%global vpxtarget riscv64-linux-gcc
%else
%ifarch sw_64
%global vpxtarget sw_64-linux-gcc
%else
%global vpxtarget generic-gnu
%endif
%endif
%endif
%endif
%set_build_flags
@ -114,6 +119,9 @@ mv %{buildroot}%{_prefix}/src/vpx_scale %{buildroot}%{_includedir}/
%{_libdir}/libvpx.so
%changelog
* Sat Mar 15 2025 mahailiang <mahailiang@uniontech.com> - 1.13.1-3
- add sw_64 support
* Fri Jun 07 2024 wangkai <13474090681@163.com> - 1.13.1-2
- Fix CVE-2024-5197