From bd447b3e980625460aac004fc6467b86c1fd0145 Mon Sep 17 00:00:00 2001 From: hanshuang Date: Thu, 9 Feb 2023 11:18:44 +0800 Subject: [PATCH] fix a7.9 compile problem --- download | 1 + firefox.spec | 39 +++++++++++++++++++++++++++++++-------- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/download b/download index c7d624f..4fe707e 100644 --- a/download +++ b/download @@ -4,3 +4,4 @@ d8f9af1fedc5ecc9b467d9053bd9f3d6 firefox-102.3.0esr.processed-source.tar.xz d41d8cd98f00b204e9800998ecf8427e mochitest-python.tar.gz 75157f5e77e1a4f460645a57ff54e552 nspr-4.34.0-3.el8_1.src.rpm 04f69b8baa7bd8ddc49d786b04307df8 nss-3.79.0-6.el8_1.src.rpm +64e444c5ceddbba10db44d3108809d6c rust-cbindgen.tar.gz diff --git a/firefox.spec b/firefox.spec index 36d5afc..5fdb6f4 100644 --- a/firefox.spec +++ b/firefox.spec @@ -1,4 +1,5 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 +%global flatpak 1 %global disable_toolsets 0 # Produce a build suitable for release, i.e. use PGO/LTO. You can turn it off # when building locally to reduce build time. @@ -105,7 +106,7 @@ end} %endif %global use_rustts 1 %global dts_version 10 -%global rust_version 1.62 +# %global rust_version 1.62 %if 0%{?rhel} >= 8 %global use_rustts 0 %endif @@ -255,6 +256,7 @@ Source45: run-wayland-compositor Source403: nss-3.79.0-6.el8_1.src.rpm Source401: nss-setup-flags-env.inc Source402: nspr-4.34.0-3.el8_1.src.rpm +Source404: rust-cbindgen.tar.gz # Build patches Patch3: mozilla-build-arm.patch @@ -373,7 +375,7 @@ BuildRequires: rustfmt >= %{rust_version} %endif %if 0%{?use_rustts} -BuildRequires: rust-toolset-%{rust_version} +# BuildRequires: rust-toolset-%{rust_version} %endif %if 0%{?use_llvmts} @@ -661,7 +663,6 @@ echo "use_rustts %{?use_rustts}" %endif - %{__rm} -f .mozconfig %{__cp} %{SOURCE10} .mozconfig echo "ac_add_options --enable-default-toolkit=cairo-gtk3-wayland" >> .mozconfig @@ -872,8 +873,23 @@ which node mkdir -p my_rust_vendor cd my_rust_vendor %{__tar} xf %{SOURCE2} -mkdir -p .cargo -cat > .cargo/config < %{_buildrootdir}/cargo/config < 7 ln -sf /usr/lib64/libnss3.so %{buildroot}%{_libdir}/libnss3.so +%endif ln -sf /usr/lib64/pkcs11/p11-kit-client.so %{buildroot}%{_libdir}/libnssckbi.so %endif #--------------------------------------------------------------------- @@ -1353,7 +1371,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %{mozappdir}/pingsender %exclude %{mozappdir}/removed-files %if 0%{?flatpak} +%if 0%{?rhel} > 7 %{_libdir}/libnss3.so +%endif %{_libdir}/libnssckbi.so %endif %{_datadir}/icons/hicolor/16x16/apps/firefox.png @@ -1402,6 +1422,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #--------------------------------------------------------------------- %changelog +* Thu Feb 09 2023 hanshuang - 102.3.0-6.0.2 +- fix an7 compile problem + * Tue Oct 11 2022 Liwei Ge - 102.3.0-6.0.1 - Rebrand to Anolis - Cherry-pick [e307bab] -- Gitee