fix build error for loongarch64

(cherry picked from commit 21809c288d41498af2fb69e4493ab2038e45a072)
This commit is contained in:
Wenlong Zhang 2024-10-22 09:00:39 +08:00 committed by openeuler-sync-bot
parent 16b90110de
commit 8a69118972

View File

@ -45,7 +45,7 @@
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 128.3.0 Version: 128.3.0
Release: 2 Release: 3
URL: https://www.mozilla.org/firefox/ URL: https://www.mozilla.org/firefox/
License: MPL-1.1 or GPL-2.0-or-later or LGPL-2.0-or-later 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 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 cd my_rust_vendor
%{__tar} xf %{SOURCE2} %{__tar} xf %{SOURCE2}
mkdir -p .cargo mkdir -p .cargo
%ifnarch loongarch64
cat > .cargo/config <<EOL cat > .cargo/config <<EOL
[source.crates-io] [source.crates-io]
replace-with = "vendored-sources" replace-with = "vendored-sources"
@ -546,6 +547,7 @@ replace-with = "vendored-sources"
[source.vendored-sources] [source.vendored-sources]
directory = "`pwd`" directory = "`pwd`"
EOL EOL
%endif
%ifarch aarch64 %ifarch aarch64
#export RUSTFLAGS="-Cdebuginfo=0 -Clinker=/opt/rh/gcc-toolset-12/root/usr/bin/gcc" #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 %endif
%changelog %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 * Wed Oct 09 2024 wangkai <13474090681@163.com> - 128.3.0-2
- Fix CVE-2024-9680 - Fix CVE-2024-9680