Package Details: webkit2gtk 2.50.6-7

Git Clone URL: https://aur.archlinux.org/webkit2gtk.git (read-only, click to copy)
Package Base: webkit2gtk
Description: Web content engine for GTK
Upstream URL: https://webkitgtk.org
Licenses: MIT, ISC, OFL-1.1, ICU, Apache-2.0, NCSA, BSD-3-Clause, BSD-2-Clause, BSL-1.0, MPL-1.1, MPL-2.0, GPL-2.0-only, LGPL-2.1-or-later, LGPL-2.1-only, BSD-2-Clause-Views, Apache-2.0 WITH LLVM-exception, AFL-2.0 OR GPL-2.0-or-later, BSD-Source-Code, bzip2-1.0.6, GPL-3.0-only WITH Autoconf-exception-3.0, GPL-3.0-or-later WITH Bison-exception-2.2, NCSA OR MIT, SunPro, Unicode-TOU
Provides: libjavascriptcoregtk-4.0.so, libwebkit2gtk-4.0.so
Submitter: andreas_baumann
Maintainer: andreas_baumann
Last Packager: andreas_baumann
Votes: 19
Popularity: 11.12
First Submitted: 2026-04-10 12:35 (UTC)
Last Updated: 2026-04-28 16:18 (UTC)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

jacopotediosi commented on 2026-04-24 14:20 (UTC)

This package is taking too long to compile, I have no idea what's going on

andreas_baumann commented on 2026-04-24 13:08 (UTC)

Ok, clearer now, webkit2gtk is API 4.0, webkit2gtk-4.1 is API 4.1. Reverted my changes..

patlefort commented on 2026-04-24 12:54 (UTC)

Please remove $MAKEFLAGS from cmake command. It is meant for gnu make and not cmake and it will break if for example gnu make job server is used.

andreas_baumann commented on 2026-04-24 12:41 (UTC)

https://archlinux.org/packages/extra/x86_64/webkit2gtk-4.1/ is the 2.52.3 version. I really don't know why it is that way and where the 4.1 comes from..

xAsh commented on 2026-04-24 10:56 (UTC)

I was wondering, why are we using older releases? 2.50.6 is from March 12, while the latest stable release is 2.52.3 from April 16

ItachiSan commented on 2026-04-23 19:51 (UTC) (edited on 2026-04-23 19:51 (UTC) by ItachiSan)

If anyone is interested, I've done the following changes:

diff --git a/PKGBUILD b/PKGBUILD
index 96dcf4d..a0b0799 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -122,6 +122,9 @@ validpgpkeys=(
   013A0127AC9C65B34FFA62526C1009B693975393 # Carlos Garcia Campos <cgarcia@igalia.com>
 )

+# Disable LTO to allow for proper packaging
+options=(!lto)
+
 prepare() {
   cd webkitgtk-$pkgver
 }
@@ -156,7 +159,7 @@ build() {
   CFLAGS+=' -fcf-protection=none'
   CXXFLAGS+=' -fcf-protection=none'

-  cmake -S webkitgtk-$pkgver -B build -G Ninja "${cmake_options[@]}"
+  cmake -S webkitgtk-$pkgver -B build "${cmake_options[@]}"
   cmake --build build
 }

That does use Make for slower but stable builds, plus respecting MAKEFLAGS, and disables LTO to reduce RAM. This made the build working for me (32GB RAM + 16GB Swap) at 12 jobs; less jobs should mean less memory required.

winlawson commented on 2026-04-21 18:50 (UTC)

I limited parallel processes to 8 with export CMAKE_BUILD_PARALLEL_LEVEL = 8. It got 99% of the way and ran out of memory (32gb system + 4gb swap). It was getting stuck on linking a static library. I paused it before my system crashed and ps -ef | grep -c clang++ yielded 3. Im not great a linux so idk what to do next.

krupan commented on 2026-04-21 03:51 (UTC)

This package is a denial of service attack. Please fix the PKGBUILD to limit the number of parallel processes.

moormaster commented on 2026-04-19 12:18 (UTC) (edited on 2026-04-23 17:10 (UTC) by moormaster)

What helped me was

  • to edit PKGBUILD to limit parallel processes through environment variable CMAKE_BUILD_PARALLEL_LEVEL before invoking cmake in build():
...
export CMAKE_BUILD_PARALLEL_LEVEL=8
cmake -S webkitgtk-$pkgver -B build -G Ninja "${cmake_options[@]}"
cmake --build build
...

See https://cmake.org/cmake/help/latest/envvar/CMAKE_BUILD_PARALLEL_LEVEL.html

OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge debug !lto)

moormaster commented on 2026-04-19 10:54 (UTC)

I have set MAKEFLAGS="-j1" in /etc/makepkg.conf but this seems to be completely ignored. I observed a lot more clang++ processes being spawned than just 1:

$ ps -ef | grep -c clang++
53