diff --git a/webkitgtk.spec b/webkitgtk.spec index 78fab2354461b878aa0f98637df448cc4473ed94..bd30f7ee49f1fe8ad64338b3b7d3f1130934e44b 100644 --- a/webkitgtk.spec +++ b/webkitgtk.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 ## NOTE: Lots of files in various subdirectories have the same name (such as ## "LICENSE") so this short macro allows us to distinguish them by using their @@ -7,7 +7,9 @@ mkdir -p _license_files ; \ cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g') +%ifnarch loongarch64 %global _lto_cflags %{nil} +%endif %bcond_without docs @@ -23,7 +25,6 @@ URL: https://www.webkitgtk.org/ Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc -ExcludeArch: loongarch64 BuildRequires: bison BuildRequires: bubblewrap @@ -44,6 +45,9 @@ BuildRequires: perl(bigint) BuildRequires: perl(English) BuildRequires: perl(FindBin) BuildRequires: perl(JSON::PP) +%ifarch loongarch64 +BuildRequires: perl(File::Copy) +%endif BuildRequires: python3 BuildRequires: ruby BuildRequires: rubygems @@ -117,7 +121,9 @@ Recommends: gstreamer1-plugins-good Recommends: xdg-desktop-portal-gtk Provides: bundled(angle) Provides: bundled(pdfjs) +%ifnarch loongarch64 Provides: bundled(skia) +%endif Provides: bundled(xdgmime) Obsoletes: webkit2gtk5.0 < %{version}-%{release} @@ -137,7 +143,9 @@ Recommends: gstreamer1-plugins-good Recommends: xdg-desktop-portal-gtk Provides: bundled(angle) Provides: bundled(pdfjs) +%ifnarch loongarch64 Provides: bundled(skia) +%endif Provides: bundled(xdgmime) %description -n webkit2gtk4.1 @@ -230,6 +238,7 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 # https://bugzilla.redhat.com/show_bug.cgi?id=1456261 %global _dwz_max_die_limit_x86_64 250000000 %global _dwz_max_die_limit_aarch64 250000000 +%global _dwz_max_die_limit_loongarch64 250000000 # Require 32 GB of RAM per vCPU for debuginfo processing. 16 GB is not enough. %global _find_debuginfo_opts %limit_build -m 32768 @@ -238,6 +247,11 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 # Cf. https://bugzilla.redhat.com/show_bug.cgi?id=2130009 # Cf. https://bugs.webkit.org/show_bug.cgi?id=245697 # Disable BTI until this is fixed upstream. + +%ifarch loongarch64 +%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') +%endif + %ifarch aarch64 %global optflags %(echo %{optflags} | sed 's/-mbranch-protection=standard /-mbranch-protection=pac-ret /') %endif @@ -255,6 +269,9 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DUSE_SKIA=OFF \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -274,6 +291,9 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DUSE_SKIA=OFF \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -294,6 +314,9 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DUSE_SKIA=OFF \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -429,6 +452,9 @@ export NINJA_STATUS="[2/2][%f/%t %es] " %endif %changelog +* Wed Jun 25 2025 wenxin - 2.48.1-2 +- add support for loongarch64 + * Mon May 12 2025 wenxin - 2.48.1-1 - update to 2.48.1