Package Details: webkitgtk 3:2.4.11-27

Git Clone URL: https://aur.archlinux.org/webkitgtk.git (read-only, click to copy)
Package Base: webkitgtk
Description: Legacy Web content engine for GTK+ 3
Upstream URL: https://webkitgtk.org/
Licenses: custom
Conflicts: libwebkit3, webkitgtk3
Provides: libwebkit3, webkitgtk3
Replaces: libwebkit3, webkitgtk3
Submitter: City-busz
Maintainer: frealgagu
Last Packager: frealgagu
Votes: 70
Popularity: 0.99
First Submitted: 2017-06-30 07:40 (UTC)
Last Updated: 2023-08-15 19:11 (UTC)

Pinned Comments

frealgagu commented on 2019-04-14 18:13 (UTC) (edited on 2020-12-06 03:31 (UTC) by frealgagu)

FAQ

Q: What's the difference between this package and extra/webkit2gtk?

A: webkitgtk/webkitgtk2 provides WebKit1 API/ABI, which is not compatible with WebKit2 API/ABI provided by extra/webkit2gtk. WebKitGTK+ 2.4.x is the latest branch that provides WebKit1 API. Later branches provides WebKit2 API only.

Please don't flag it as out-of-date.


Q: Are there binaries for this package somewhere?

A: I maintain the latest built package at https://github.com/frealgagu/archlinux.webkitgtk/releases


Q: "error while loading shared libraries: libicui18n.so.62: cannot open shared object file: No such file or directory"

A: You'll need to rebuild against the latest version of ICU.


Q: "error: ‘WTF::StringImpl::StaticASCIILiteraicASCIILiteral’ has not been declared" or any enchant errors.

A: If you are building in parallel, try disabling parallel using -j1 in /etc/makepkg.conf


Q: Why building takes too long time?

A: WebKit is inherently big and complex. You can modify /etc/makepkg.conf or PKGBUILD directly to build it in parallel.

  • Change "make all stamp-po" by "make -j x all stamp-po" in PKGBUILD replacing x by cores your machine has. (Thanks to @MadMe)

  • Change /etc/makepkg.conf in that way: https://wiki.archlinux.org/index.php/makepkg#Parallel_compilation under # ARCHITECTURE, COMPILE FLAGS use MAKEFLAGS="-j9" # It should be one more than your virtual CPUs. (Thanks to @tuxsavvy).

However be pending if errors occur as mentioned in previous question.


Q: How much I want to wait to a successful compilation?

A: It varies of your PC's processor and RAM, the times shared in the comments are as follow:

  • 3.5 hours to build on core i5 laptop with 8G of RAM, makeflags j4. (@cabbage)

  • 13.5 hours to build on AMD Athlon X2, makeflags j1 (@Bonnietwin).

  • 5-6 hours on Core2Duo E8400 with 8GB RAM, makeflags j2 (tuxsavvy).

  • 50 minutes on 6c/12t 3.3GHz (@kubrick).

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 16 Next › Last »

Hubro commented on 2021-01-08 08:37 (UTC)

@Baltazar72 Dude you are a lifesaver! I got it to build now and I'm back on the company VPN (with pulse-secure), what a massive pain the last week has been without it.

BruceR commented on 2021-01-07 09:26 (UTC)

Adding this patch to configure.ac allowed me to build it with autoconf 2.70.

$ cat gtk-doc.patch
diff --git a/configure.ac b/configure.ac
index d0bb1a1..5eee551 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,13 @@ AM_INIT_AUTOMAKE([foreign subdir-objects dist-xz no-dist-gzip tar-ustar])
 AM_MAINTAINER_MODE([enable])
 m4_include([Source/autotools/SetupAutomake.m4])

+# check for gtk-doc
+m4_ifdef([GTK_DOC_CHECK], [
+GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
+],[
+AM_CONDITIONAL([ENABLE_GTK_DOC], false)
+])
+
 ######################################################################################
 # Processing of configuration files
 ######################################################################################

See https://developer.gnome.org/gtk-doc-manual/stable/settingup_autoconf.html.en

Baltazar72 commented on 2021-01-06 22:15 (UTC)

Hi @Hubro . I downgraded autoconf from 2.70-1 to 2.69-7 to avoid the gtkdocize build error.

Hubro commented on 2021-01-04 07:40 (UTC)

This package is failing to build for me:

autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'Source/autotools'.
libtoolize: copying file 'Source/autotools/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'Source/autotools'.
libtoolize: copying file 'Source/autotools/libtool.m4'
libtoolize: copying file 'Source/autotools/ltoptions.m4'
libtoolize: copying file 'Source/autotools/ltsugar.m4'
libtoolize: copying file 'Source/autotools/ltversion.m4'
libtoolize: copying file 'Source/autotools/lt~obsolete.m4'
libtoolize: Remember to add 'LT_INIT' to configure.ac.
libtoolize: Consider adding '-I Source/autotools' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: configure.ac: not using Intltool
autoreconf: running: gtkdocize --copy
gtkdocize: GTK_DOC_CHECK not called in ./configure.ac
autoreconf: error: gtkdocize failed with exit status: 1

u666sa commented on 2021-01-03 16:26 (UTC)

gtkdocize: GTK_DOC_CHECK not called in ./configure.ac autoreconf: error: gtkdocize failed with exit status: 1

frealgagu commented on 2021-01-01 03:49 (UTC)

@Lantorax @mwz before building something in AUR packages you need to install base-devel group package: https://wiki.archlinux.org/index.php/Makepkg#Usage

those packages don't need to be added in PKGBUILDs because it's assumed they must be already installed.

https://wiki.archlinux.org/index.php/Arch_User_Repository#Getting_started

Please try to build the package in a clean chroot before report it here, depending on your system setup some issues could happen. You can also download the already built packages here:

https://github.com/frealgagu/archlinux.webkitgtk/releases

aiXie6 commented on 2020-12-31 22:56 (UTC) (edited on 2020-12-31 22:58 (UTC) by aiXie6)

Hi, I'm having trouble building the new version. After I installed automake-1.15 manually, because I had aclocal-1.16.2 just like Lantorax below, I'm getting the following error:

configure.ac:35: error: required file 'Source/autotools/missing' not found
configure.ac:35:   'automake --add-missing' can install 'missing'
GNUmakefile.am: error: required file 'Source/autotools/depcomp' not found
GNUmakefile.am:   'automake --add-missing' can install 'depcomp'
make: *** [GNUmakefile:25844: ~/.cache/pacaur/webkitgtk2/src/webkitgtk-2.4.11/GNUmakefile.in] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build webkitgtk2 package(s)

Shouldn't automake-1.15 --add-missing be included in the PKGBUILD to fix this issue and shouldn't automake-1.15 be listed as a dependency?

Lantorax commented on 2020-12-31 13:24 (UTC) (edited on 2020-12-31 15:26 (UTC) by Lantorax)

I'm having problems building this package. Fails through yay, makepkg, and make:

yay and makepkg -si:

autoreconf: configure.ac: not using Intltool
autoreconf: running: gtkdocize --copy
gtkdocize: GTK_DOC_CHECK not called in ./configure.ac
autoreconf: error: gtkdocize failed with exit status: 1
==> ERROR: A failure occurred in prepare().
    Aborting...

make:

CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.15 -I Source/autotools
/bin/sh: line 1: aclocal-1.15: command not found
make: *** [GNUmakefile:25873: aclocal.m4] Error 127

I have aclocal-1.16.2 installed.

core/automake 1.16.2-3 (base-devel) [installed]
    usr/bin/aclocal

Edit: OK, I have gotten it to successfully compile. I had to install the aur package: automake-1.15

Still would not build correctly with the current PKGBUILD, but running make in the src/webkitgtk-2.4.11/ did work. I had to run 'automake-1.15 --add-missing' after a failed 'make'

It did fail after a few minutes:

./Source/WebCore/bindings/js/JSDOMBinding.h:191:12:   required from ‘void WebCore::cacheWrapper(WebCore::DOMWrapperWorld&, DOMClass*, WrapperClass*) [with DOMClass = JSC::ArrayBuffer; WrapperClass = JSC::JSArrayBuffer]’
./Source/WebCore/bindings/js/JSDOMBinding.h:358:53:   required from here
./Source/WTF/wtf/HashTable.h:774:19: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
  774 |             memset(&bucket, 0, sizeof(bucket));
      |             ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./Source/WTF/wtf/HashTable.h:32,
                 from ./Source/WTF/wtf/HashMap.h:25,
                 from ./Source/JavaScriptCore/runtime/JSCJSValue.h:31,
                 from ./Source/JavaScriptCore/bytecode/SpeculatedType.h:32,
                 from ./Source/JavaScriptCore/runtime/IndexingType.h:29,
                 from ./Source/JavaScriptCore/bytecode/ArrayAllocationProfile.h:29,
                 from ./Source/JavaScriptCore/runtime/JSGlobalObject.h:25,
                 from ./Source/WebCore/bindings/js/JSDOMGlobalObject.h:31,
                 from ./Source/WebCore/bindings/js/JSDOMBinding.h:27,
                 from DerivedSources/WebCore/JSSVGZoomEvent.h:26,
                 from DerivedSources/WebCore/JSSVGZoomEvent.cpp:25:
./Source/WTF/wtf/HashTraits.h:169:8: note: ‘struct WTF::KeyValuePair<void*, JSC::Weak<JSC::JSObject> >’ declared here
  169 | struct KeyValuePair {
      |        ^~~~~~~~~~~~
make[1]: Leaving directory '/home/jason/build/webkitgtk/src/webkitgtk-2.4.11'
make: *** [GNUmakefile:25837: all] Error 2

Trying it with 'make -j1' gives the same error:

./Source/WTF/wtf/HashTraits.h:169:8: note: ‘struct WTF::KeyValuePair<int, WTF::OwnPtr<WebCore::GlyphMetricsMap<float>::GlyphMetricsPage> >’ declared here
  169 | struct KeyValuePair {
      |        ^~~~~~~~~~~~
make[1]: *** [GNUmakefile:51072: Source/WebCore/platform/graphics/libPlatform_la-SegmentedFontData.lo] Error 1
make[1]: Leaving directory '/home/jason/build/webkitgtk/src/webkitgtk-2.4.11'
make: *** [GNUmakefile:25837: all] Error 2

slenderchat commented on 2020-12-29 21:15 (UTC)

@ejsav tested in clean chroot, and on different machines, and can't confirm problem. Must be something about your setup. If you can, try to build in clean chroot environment.

ejsav commented on 2020-12-29 16:42 (UTC)

This is failing to build for me.

  CXXLD    Programs/jsc-3
  CCLD     Programs/minidom
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_setAttribute_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to  `u_toupper_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `udat_close_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `udat_open_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_memcasecmp_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_getAttribute_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_strToUpper_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_getLocaleByType_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_strToLower_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `udat_format_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_strcoll_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_charType_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_open_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_tolower_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_strFoldCase_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_charDirection_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_foldCase_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_close_67'
collect2: error: ld returned 1 exit status
make[1]: *** [GNUmakefile:46284: Programs/minidom] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_setAttribute_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_toupper_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `udat_close_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `udat_open_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_memcasecmp_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_getAttribute_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_strToUpper_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_getLocaleByType_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_strToLower_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `udat_format_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_strcoll_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_charType_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_open_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_tolower_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_strFoldCase_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_charDirection_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `u_foldCase_67'
/usr/bin/ld: ./.libs/libjavascriptcoregtk-3.0.so: undefined reference to `ucol_close_67'
collect2: error: ld returned 1 exit status
make[1]: *** [GNUmakefile:46259: Programs/jsc-3] Error 1
make[1]: Leaving directory '/tmp/makepkg/webkitgtk/src/build-gtk'
make: *** [GNUmakefile:30360: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Based on the _67 numbering I'm assuming that this is ICU-related. I am on ICU68 but this also fails if I downgrade to the last 67 version.