diff --git a/webkitgtk-2.42.1-reduce-memory-overheads.patch b/webkitgtk-2.42.1-reduce-memory-overheads.patch new file mode 100644 index 0000000000000000000000000000000000000000..e45a3aa38d7992d8266580dd9d487713c1914f90 --- /dev/null +++ b/webkitgtk-2.42.1-reduce-memory-overheads.patch @@ -0,0 +1,19 @@ +From: Alberto Garcia +Subject: Reduce memory usage +Bug-Debian: https://bugs.debian.org/949621 +Forwarded: no +Index: webkitgtk/Source/cmake/OptionsCommon.cmake +=================================================================== +--- webkitgtk.orig/Source/cmake/OptionsCommon.cmake ++++ webkitgtk/Source/cmake/OptionsCommon.cmake +@@ -194,6 +194,10 @@ option(GCC_OFFLINEASM_SOURCE_MAP + + option(USE_APPLE_ICU "Use Apple's internal ICU" ${APPLE}) + ++# Pass --reduce-memory-overheads to the bfd linker in order to save memory ++set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--reduce-memory-overheads") ++set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--reduce-memory-overheads") ++ + # Enable the usage of OpenMP. + # - At this moment, OpenMP is only used as an alternative implementation + # to native threads for the parallelization of the SVG filters. diff --git a/webkitgtk-2.40.5.tar.xz b/webkitgtk-2.42.1.tar.xz similarity index 75% rename from webkitgtk-2.40.5.tar.xz rename to webkitgtk-2.42.1.tar.xz index a0a79eb13775047ecc52cc41d269310599b5d10b..a59c71e01528a276a24c05c1c3473f52a9ddfbc8 100644 Binary files a/webkitgtk-2.40.5.tar.xz and b/webkitgtk-2.42.1.tar.xz differ diff --git a/webkitgtk.spec b/webkitgtk.spec index 6e03901a313a2d57bece1f49b53ee56d7a70a6c3..5584405a8e08c57f0275eab38b54ed2bf15da725 100644 --- a/webkitgtk.spec +++ b/webkitgtk.spec @@ -6,18 +6,21 @@ mkdir -p _license_files ; \ cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g') +%global _lto_cflags %{nil} + %bcond_without docs %global with_gamepad 0 Name: webkitgtk -Version: 2.40.5 +Version: 2.42.1 Release: %{anolis_release}%{?dist} Summary: GTK Web content engine library License: LGPLv2 URL: https://www.webkitgtk.org/ Source0: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz +Patch0: webkitgtk-2.42.1-reduce-memory-overheads.patch BuildRequires: bison BuildRequires: bubblewrap @@ -77,6 +80,7 @@ BuildRequires: pkgconfig(lcms2) BuildRequires: pkgconfig(libavif) BuildRequires: pkgconfig(libgcrypt) >= 1.6.0 BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(libjxl) >= 0.7.0 BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(libopenjp2) >= 2.2.0 BuildRequires: pkgconfig(libpcre) @@ -563,6 +567,9 @@ export NINJA_STATUS="[3/3][%f/%t %es] " %endif %changelog +* Wed Sep 27 2023 Funda Wang - 2.42.1-1 +- New version 2.42.1 + * Wed Aug 2 2023 Funda Wang - 2.40.5-1 - New version 2.40.5