!229 [sync] PR-228: fix build error for loongarch64

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-10-22 11:13:23 +00:00 committed by Gitee
commit ba38293771
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -45,7 +45,7 @@
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 128.3.0
Release: 2
Release: 3
URL: https://www.mozilla.org/firefox/
License: MPL-1.1 or GPL-2.0-or-later or LGPL-2.0-or-later
Source0: https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
@ -539,6 +539,7 @@ mkdir -p my_rust_vendor
cd my_rust_vendor
%{__tar} xf %{SOURCE2}
mkdir -p .cargo
%ifnarch loongarch64
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
@ -546,6 +547,7 @@ replace-with = "vendored-sources"
[source.vendored-sources]
directory = "`pwd`"
EOL
%endif
%ifarch aarch64
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc"
@ -930,6 +932,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%endif
%changelog
* Tue Oct 22 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 128.3.0-3
- fix build error for loongarch64
* Wed Oct 09 2024 wangkai <13474090681@163.com> - 128.3.0-2
- Fix CVE-2024-9680