Package Details: webkitgtk 3:2.4.11-28

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: 71
Popularity: 0.76
First Submitted: 2017-06-30 07:40 (UTC)
Last Updated: 2024-11-16 02:41 (UTC)

Sources (16)

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 10 11 .. 16 Next › Last »

jhurst commented on 2020-10-06 13:43 (UTC)

Getting this error:

fatal error: CSSGrammar.hpp: No such file or directory

I found a patch for GNUmakefile.in that copies CSSGrammar.h and XPathGrammar.h to CSSGrammar.hpp and XPathGrammar.hpp respectively: https://www.linuxquestions.org/questions/slackware-14/sbo-scripts-not-building-on-current-read-1st-post-pls-4175561999/page195.html#post6160562

--- webkitgtk-2.4.11.orig/GNUmakefile.in    2020-08-28 22:11:51.510864558 +0800
+++ webkitgtk-2.4.11.new/GNUmakefile.in 2020-08-28 22:24:17.657842406 +0800
@@ -82071,6 +82071,7 @@
 $(GENSOURCES_WEBCORE)/XPathGrammar.cpp: $(WebCore)/xml/XPathGrammar.y
    $(AM_V_GEN)
    $(AM_V_at)perl $(WebCore)/css/makegrammar.pl --outputDir $(GENSOURCES_WEBCORE) --bison "$(BISON)" --symbolsPrefix xpathyy $<
+   $(AM_V_at)cp $(GENSOURCES_WEBCORE)/XPathGrammar.h $(GENSOURCES_WEBCORE)/XPathGrammar.hpp

 # MathML tag and attribute names, and element factory
 DerivedSources/WebCore/MathMLElementFactory.h: DerivedSources/WebCore/MathMLElementFactory.cpp
@@ -82129,6 +82130,7 @@
 DerivedSources/WebCore/CSSGrammar.cpp: $(WebCore)/css/CSSGrammar.y.in
    $(AM_V_GEN)
    $(AM_V_at)perl -I $(WebCore)/bindings/scripts $(WebCore)/css/makegrammar.pl --extraDefines "$(feature_defines)" --outputDir $(GENSOURCES_WEBCORE) --bison "$(BISON)" --symbolsPrefix cssyy $<
+   $(AM_V_at)cp $(GENSOURCES_WEBCORE)/CSSGrammar.h $(GENSOURCES_WEBCORE)/CSSGrammar.hpp

 DerivedSources/WebCore/UserAgentStyleSheetsData.cpp: DerivedSources/WebCore/UserAgentStyleSheets.h
 DerivedSources/WebCore/UserAgentStyleSheets.h: $(WebCore)/css/make-css-file-arrays.pl $(WebCore)/bindings/scripts/preprocessor.pm $(USER_AGENT_STYLE_SHEETS)

Applying it after the autoreconf in the PKGBUILD seems to work.

pha-qu commented on 2020-09-09 20:02 (UTC)

Warning!!! Anyone uninitiated should check that a) They need this and b) Can they install the binary version. This pile of c++ foo takes a long time to compile for a 49Mb footprint

slav commented on 2019-11-23 22:40 (UTC)

Someone can drop build webkitgtk 3:2.4.11-18 package please? Thanks, Slav

nenad commented on 2019-11-19 22:18 (UTC)

This package is missing the following dependencies during build time: bison flex

Baltazar72 commented on 2019-11-17 20:00 (UTC)

Thank you @chiwanpark ! You nailed it !

Best Reagards!

chiwanpark commented on 2019-11-17 15:16 (UTC)

@Baltazar72 The error is caused by recent ICU update (https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/umachine_8h_source.html#l00143). You may fix line 66 of PKGBUILD as follows to build successfully.

CXXFLAGS+=" -Wno-expansion-to-defined -Wno-class-memaccess -DUPRV_BLOCK_MACRO_BEGIN=\"\" -DUPRV_BLOCK_MACRO_END=\"\""

Baltazar72 commented on 2019-11-16 22:05 (UTC) (edited on 2019-11-16 22:10 (UTC) by Baltazar72)

Hi

I cannot build this :

/home/notorknu/.cache/yay/webkitgtk/src/webkitgtk-2.4.11/Source/WebCore/platform/graphics/SegmentedFontData.cpp: In member function ‘virtual bool WebCore::SegmentedFontData::containsCharacters(const UChar*, int) const’:
/home/notorknu/.cache/yay/webkitgtk/src/webkitgtk-2.4.11/Source/WebCore/platform/graphics/SegmentedFontData.cpp:65:9: error: expected ‘;’ before ‘if’
   65 |         if (!containsCharacter(c))
      |         ^~
make[1]: *** [GNUmakefile:55608: Source/WebCore/platform/graphics/libPlatform_la-SegmentedFontData.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/notorknu/.cache/yay/webkitgtk/src/build-gtk'
make: *** [GNUmakefile:30367: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Then I "added the ";", and next go It went further., but then it stopped agin on :

  CXX      Source/WebCore/dom/libWebCore_la-DOMImplementation.lo
  CXX      Source/WebCore/dom/libWebCore_la-DOMNamedFlowCollection.lo
make[1]: *** [GNUmakefile:59745: Source/WebCore/dom/libWebCore_la-Document.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
/home/notorknu/.cache/yay/webkitgtk/src/webkitgtk-2.4.11/Source/WebCore/dom/DOMImplementation.cpp: In static member function ‘static WTF::PassRefPtr<WebCore::CSSStyleSheet> WebCore::DOMImplementation::createCSSStyleSheet(const WTF::String&, const WTF::String&, WebCore::ExceptionCode&)’:
/home/notorknu/.cache/yay/webkitgtk/src/webkitgtk-2.4.11/Source/WebCore/dom/DOMImplementation.cpp:264:21: warning: redundant move in return statement [-Wredundant-move]
  264 |     return std::move(sheet);
      |            ~~~~~~~~~^~~~~~~
/home/notorknu/.cache/yay/webkitgtk/src/webkitgtk-2.4.11/Source/WebCore/dom/DOMImplementation.cpp:264:21: note: remove ‘std::move’ call
make[1]: Leaving directory '/home/notorknu/.cache/yay/webkitgtk/src/build-gtk'
make: *** [GNUmakefile:30367: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: webkitgtk

I tried downgrading gcc to older versions, but I had no luck ..

ANY suggestions would make me happy. Thank You, and Best Regards Torstein

vlatkoB commented on 2019-04-15 18:54 (UTC) (edited on 2019-04-15 18:57 (UTC) by vlatkoB)

Getting this error:

  CXXLD    libwebkitgtk-3.0.la
ld: error: duplicate symbol 'webkit_media_player_debug' in version script
collect2: error: ld returned 1 exit status
make[1]: *** [GNUmakefile:45093: libwebkitgtk-3.0.la] Error 1
make[1]: Leaving directory '/home/vlatko/.cache/yay/webkitgtk/src/build-gtk
make: *** [GNUmakefile:30367: all] Error 2
==> ERROR: A failure occurred in build().

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).

Crodar commented on 2019-02-19 22:11 (UTC) (edited on 2019-02-19 22:20 (UTC) by Crodar)

It doesn't compile for me. Does anyone happen to know how to fix this error? :

  CXX      Source/JavaScriptCore/API/libjavascriptcoregtk_3_0_la-JSScriptRef.lo
  CXX      Source/JavaScriptCore/API/libjavascriptcoregtk_3_0_la-JSStringRef.lo
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp: In function ‘OpaqueJSString* JSStringCreateWithCharacters(const JSChar*, size_t)’:
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp:40:35: error: invalid conversion from ‘const JSChar*’ {aka ‘const char16_t*’} to ‘const UChar*’ {aka ‘const short unsigned int*’} [-fpermissive]
     return OpaqueJSString::create(chars, numChars).leakRef();
                                   ^~~~~
In file included from /tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp:31:
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/OpaqueJSString.h:49:59: note:   initializing argument 1 of ‘static WTF::PassRefPtr<OpaqueJSString> OpaqueJSString::create(const UChar*, unsigned int)’
     static PassRefPtr<OpaqueJSString> create(const UChar* characters, unsigned length)
                                              ~~~~~~~~~~~~~^~~~~~~~~~
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp: In function ‘OpaqueJSString* JSStringCreateWithCharactersNoCopy(const JSChar*, size_t)’:
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp:65:68: error: invalid conversion from ‘const JSChar*’ {aka ‘const char16_t*’} to ‘const UChar*’ {aka ‘const short unsigned int*’} [-fpermissive]
     return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars)).leakRef();
                                                                    ^~~~~
In file included from /tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/WTF/wtf/text/WTFString.h:29,
                 from /tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/OpaqueJSString.h:31,
                 from /tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp:31:
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/WTF/wtf/text/StringImpl.h:393:88: note:   initializing argument 1 of ‘static WTF::PassRef<WTF::StringImpl> WTF::StringImpl::createWithoutCopying(const UChar*, unsigned int)’
     WTF_EXPORT_STRING_API static PassRef<StringImpl> createWithoutCopying(const UChar* characters, unsigned length);
                                                                           ~~~~~~~~~~~~~^~~~~~~~~~
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp: In function ‘const JSChar* JSStringGetCharactersPtr(JSStringRef)’:
/tmp/yaourt-tmp-mark/aur-webkitgtk/src/webkitgtk-2.4.11/Source/JavaScriptCore/API/JSStringRef.cpp:86:30: error: invalid conversion from ‘const UChar*’ {aka ‘const short unsigned int*’} to ‘const JSChar*’ {aka ‘const char16_t*’} [-fpermissive]
     return string->characters();
            ~~~~~~~~~~~~~~~~~~^~
make[1]: *** [GNUmakefile:74690: Source/JavaScriptCore/API/libjavascriptcoregtk_3_0_la-JSStringRef.lo] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-mark/aur-webkitgtk/src/build-gtk'
make: *** [GNUmakefile:30360: all] Error 2