Package Base Details: webkitgtk

Git Clone URL: https://aur.archlinux.org/webkitgtk.git (read-only)
Submitter: City-busz
Maintainer: yan12125
Last Packager: yan12125
Votes: 55
Popularity: 4.271635
First Submitted: 2017-06-30 07:40
Last Updated: 2018-04-30 05:33

Packages (2)

Pinned Comments

yan12125 commented on 2017-12-20 02:56

FAQ

  • error while loading shared libraries: libicui18n.so.60: cannot open shared object file: No such file or directory

You'll need to rebuild against the new ICU 61. Normally it should be done with usual package upgrading (webkitgtk 2.4.11-11 => webkitgtk 2.4.11-12)

  • I can't build! There's an error "error: ‘WTF::StringImpl::StaticASCIILiteraicASCIILiteral’ has not been declared"

Try disabling parallel building - use -j1 in both PKGBUILD and /etc/makepkg.conf

  • Building takes too long time!

A: WebKit is inherently big and complex. It can take up to 13.5 hours to build (on AMD Athlon X2, thanks to @Bonnietwin for sharing). You can modify makepkg.conf or PKGBUILD directly to build it in parallel. Check out @MadMe's and @tuxsavvy's comments.

  • Is there a prebuilt package?

A: The awesome Arch Linux CN team maintains one. You can enable it by appending the following section to /etc/pacman.conf:

[archlinuxcn]
Server = https://cdn.repo.archlinuxcn.org/$arch

And installing as if it were official packages:

sudo pacman -S webkitgtk
sudo pacman -S webkitgtk2

Check out https://github.com/archlinuxcn/repo/blob/master/README.md for more details.

  • I can't build! There's an error about codegen

There's a bug in old glib2. Make sure you have upgraded to glib2 2.56. Check out @ValHue's and @zoidby's comments.

  • Other questions

I've disabled notifications for this package for too many non-constructive comments. Please open a new issue at https://gitlab.com/yan12125/aur for suggestions/questions/bug reports/...

Latest Comments

Scimmia commented on 2018-04-30 14:30

Because this isn't webbkit2

dalu commented on 2018-04-30 14:05

isn't this severely outdated and vulnerable? latest version of webkit2gtk+ is at the time of writing 2.20.1 (stable).

So why is this at version 2.4.11 and not flagged as being outdated?

yan12125 commented on 2018-04-30 05:41

@ReDemoNBR: Thanks and done :)

Scimmia commented on 2018-04-29 15:38

Or you should read the AUR wiki page and figure out how things actually work

dafta commented on 2018-04-29 15:35

The following build dependencies are missing: automake, bison, flex. You should probably add them to makedepends.

ReDemoNBR commented on 2018-04-23 05:11

I've been building the last versions of this package for my Raspberry Pi 3 (arch 'armv7h') correctly for some months already and I think it is time to report that it is safe to add 'armv7h' in arch. Same is valid for webkitgtk2 package :D

Takes around 40-50 hours to build it but, believe it or not, it does work.

But please let the version as it is, otherwise we will have have to update it again :)

testbird71 commented on 2018-04-04 11:01

I have added the Repo from CN and addet the Keyring sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring

Löse Abhängigkeiten auf... Warnung: Kann "icu>=61" nicht auflösen (eine Abhängigkeit von "webkitgtk") Warnung: Kann "icu>=61" nicht auflösen (eine Abhängigkeit von "webkitgtk2") :: Die folgenden Pakete können aufgrund nicht auflösbarer Abhängigkeiten nicht aktualisiert werden: webkitgtk webkitgtk2

yan12125 commented on 2018-03-08 05:13

Your package webkitgtk [1] has been flagged out-of-date by rbirkelbach
[2]:

The version provided is from 2016-04-10.

@rbirkelbach: WebKitGTK+ 2.4.x is the latest branch that provides WebKit1 API. Later branches provides WebKit2 API only, which is incompatible.

agentcobra commented on 2018-02-22 01:13

doesn't build

Traceback (most recent call last): File "/usr/sbin/gdbus-codegen", line 41, in <module> from codegen import codegen_main ModuleNotFoundError: No module named 'codegen' make: *** [GNUmakefile:82203: DerivedSources/Platform/Geoclue2Interface.h] Error 1 ==> ERREUR : Une erreur s’est produite dans build(). Abandon... ==> ERREUR : Makepkg n'a pas pu construire webkitgtk.</module>

klore commented on 2018-02-12 14:35

File "/usr/sbin/gdbus-codegen", line 41, in <module> from codegen import codegen_main ImportError: cannot import name 'codegen_main' make: *** [GNUmakefile:82203: DerivedSources/Platform/Geoclue2Interface.h] Error 1 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build webkitgtk. ==> Restart building webkitgtk2 ? [y/N]</module>

Scimmia commented on 2018-02-06 15:55

It seems someone needs to read the AUR wiki page

regagain commented on 2018-02-06 15:48

It seems that the following dependencies are missing: automake, bison, flex.

Mikle_Bond commented on 2018-02-03 19:14

Noticed another problem. Same as @ShalokShalom commented below.

During compilation it throws a couple of type conversion errors like this: error: invalid conversion from ‘const JSChar {aka const short unsigned int}’ to ‘const UChar {aka const char16_t}’

I've found relevant ticket about it here https://bugs.webkit.org/show_bug.cgi?id=101179 , though it seems pretty old and it is strange I managed to face this issue...

There was suggested a workaround - to define those types explicitly trough preprocessor flag, and it worked for me like that: CPPFLAGS="-DUCHAR_TYPE=char16_t" MAKEFLAGS="-j4" makepkg -s

jasonhansel commented on 2018-01-31 00:37

Does not work with parallel make (e.g. MAKEFLAGS="-j4").

lano1106 commented on 2018-01-27 11:01

I have tried to recompile with the latest libenchant library and I got a new compile error that I didn't have previously. Any idea why I'm getting this:

CXX DerivedSources/WebCore/libWebCore_la-XLinkNames.lo DerivedSources/WebCore/MathMLNames.cpp:642:17: error: ‘WTF::StringImpl::StaticASCIILiteraicASCIILiteral’ has not been declared StringImpl::StaticASCIILiteraicASCIILiteral::s_initialFlags | (1069503 << StringImpl::StaticASCIILiteral::s_hashShift) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DerivedSources/WebCore/MathMLNames.cpp:644:39: error: redefinition of ‘WTF::StringImpl::StaticASCIILiteral WebCore::MathMLNames::msupData’ static StringImpl::StaticASCIILiteral msupData = { ^~~~~~~~ DerivedSources/WebCore/MathMLNames.cpp:616:39: note: ‘WTF::StringImpl::StaticASCIILiteral WebCore::MathMLNames::msupData’ previously defined here static StringImpl::StaticASCIILiteral msupData = { ^~~~~~~~ DerivedSources/WebCore/MathMLNames.cpp:651:39: error: redefinition of ‘WTF::StringImpl::StaticASCIILiteral WebCore::MathMLNames::mencloseData’ static StringImpl::StaticASCIILiteral mencloseData = { ^~~~~~~~~~~~ DerivedSources/WebCore/MathMLNames.cpp:427:39: note: ‘WTF::StringImpl::StaticASCIILiteral WebCore::MathMLNames::mencloseData’ previously defined here static StringImpl::StaticASCIILiteral mencloseData = { ^~~~~~~~~~~~ CXX DerivedSources/WebCore/libWebCore_la-XMLNames.lo DerivedSources/WebCore/MathMLNames.cpp: In function ‘void WebCore::MathMLNames::init()’ DerivedSources/WebCore/MathMLNames.cpp:935:67: error: ‘maligngroupData’ was not declared in this scope { (void)&maligngroupTag, reinterpret_cast<stringimpl*>(&maligngroupData) }, ^~~~~~~~~~~~~~~ DerivedSources/WebCore/MathMLNames.cpp:935:67: note: suggested alternative: ‘maligngroupTag’ { (void)&maligngroupTag, reinterpret_cast<stringimpl*>(&maligngroupData) }, ^~~~~~~~~~~~~~~ maligngroupTag DerivedSources/WebCore/MathMLNames.cpp:964:62: error: ‘mstyleData’ was not declared in this scope { (void)&mstyleTag, reinterpret_cast<stringimpl*>(&mstyleData) }, ^~~~~~~~~~ DerivedSources/WebCore/MathMLNames.cpp:964:62: note: suggested alternative: ‘mstyleTag’ { (void)&mstyleTag, reinterpret_cast<stringimpl*>(&mstyleData) }, ^~~~~~~~~~ mstyleTag make[1]: *** [GNUmakefile:64525: DerivedSources/WebCore/libWebCore_la-MathMLNames.lo] Error 1</stringimpl*></stringimpl*></stringimpl*></stringimpl*>

yan12125 commented on 2018-01-22 15:05

Announcement: If you got enchant errors, check the first two entries in my pinned FAQ comment.

Thermi commented on 2018-01-11 12:40

Why is the library file of the previous version only a couple MB in size then? It looks like this one builds a static library or includes a lot of other files into the library. Looks wrong to me.

Batou commented on 2018-01-02 02:58

@yan12125 thanks! For those wondering, I fixed it by just exporting a new PATH without /bin in it and then just running the pacaur. The other suggestion (editing PKGBUILD and setting PYTHONPATH didn't do anything for me).

@germanfr it's a huge project. Whatever package is using this as a dep, maybe you should talk to them about providing a pre-built alternative.

Scimmia commented on 2017-12-30 08:48

"That's not ok."? It's webkit, what the hell do you expect?

germanfr commented on 2017-12-30 08:30

It took me 7h to build this package as an update. That's not ok.

yan12125 commented on 2017-12-28 09:07

@Batou: Check out @zoidby's comment

Batou commented on 2017-12-28 09:03

Fails to build.

Traceback (most recent call last): File "/bin/gdbus-codegen", line 41, in <module> from codegen import codegen_main ModuleNotFoundError: No module named 'codegen' make: *** [GNUmakefile:82204: DerivedSources/Platform/Geoclue2Interface.h] Error 1 ==> ERROR: A failure occurred in build(). Aborting... :: failed to build webkitgtk2 package(s)</module>

yan12125 commented on 2017-12-26 06:02

@kmeagher: You need to install the base-devel group before building any package. Check out https://wiki.archlinux.org/index.php/Arch_User_Repository#Getting_started.

kmeagher commented on 2017-12-26 05:47

this package requires flex to build but it is not listed as a dependency

zoidby commented on 2017-12-24 09:55

The build failed at first. But i got it to work with the temporary fix, described here: https://bugs.archlinux.org/task/55915

doronbehar commented on 2017-12-22 09:09

Yea, now I understand. I read a little bit on the WiKi about archlinuxcn and similar repositories, I had no idea those exist. Thanks.

yan12125 commented on 2017-12-22 09:06

@doronbehar: I think I misunderstood you. I was referring a binary package built from this PKGBUILD, not a prebuilt binary from the webkitgtk team.

doronbehar commented on 2017-12-22 08:28

@yan12125

  1. Now I understand, the naming confused me
  2. As far as I can see in when viewing the PKGBUILD, I don't see and archlinuxcn URL there and I see a lot of patchs and make commands.

yan12125 commented on 2017-12-22 08:23

@doronbehar:

  1. webkit2gtk provides WebKit 2 API while webkitgtk provides WebKit 1 API. They are not compatible.
  2. Why not? I'm using archlinuxcn's binary package right now.

doronbehar commented on 2017-12-22 08:20

I have 2 question:

  1. Does anyone can tell me please what is the difference between this package and the package webkit2gtk from extra/?
  2. If there is a precompiled binary like @cabbage suggested, why don't we use it instead?

cabbage commented on 2017-12-21 16:22

It took about 3.5 hours to build this package. i5 laptop with 8G of RAM, makeflags j4. Burnt the hell out of the poor laptop :(

A serious suggestion: if your machine is not extraordinarily powerful, don't try to build this from source. Go find a binary to install. Compiling huge software from source is a painful waste of life/time/energy, and that's also the reason I chose to abandon Gentoo.

troyengel commented on 2017-12-21 00:57

FYI for anyone who might care, I have some small scripts which do forward and reverse searches on libraries (binaries linked to a lib, and binaries missing libs they're linked to) system-wide and nothing comes up on my system for these libraries anymore.

On 2017-06-30 this package was moved from Extra to AUR, so I think whatever installed it as a dependency no longer uses it. I think it may have been an older version of atril, as it was added when that package was updated in 2015, and atril today uses the newer webkit2gtk package.

[2015-06-10 19:36] [ALPM] installed webkitgtk2 (2.4.9-1)
[2015-06-10 19:36] [ALPM] upgraded atril (1.8.1-2 -> 1.10.0-1)

Here is the commit which atril dropped the dependency on this package: https://git.archlinux.org/svntogit/community.git/commit/trunk?h=packages/atril&id=27172abd422604ffdc22f4e730ecfa31fd037ab3

Others might be in the same situation and have no need for this package and it's insane compile time anymore, your mileage may vary. :) In reverse, my scan actually showed me this (installed, older) package is broken as it has a dependency on ICU that has been upgraded long ago, this package was using it and never rebuilt:

$ pacman -Qo /usr/bin/jsc-1; ldd /usr/bin/jsc-1 | grep -i 'not found'
/usr/bin/jsc-1 is owned by webkitgtk2 2.4.11-6
libicui18n.so.59 => not found
libicuuc.so.59 => not found

Hope this helps someone else out there possibly avoid burning out your poor laptop CPU.

Thermi commented on 2017-12-20 22:10

This builds a 1.7 GB .so file on my system. What the hell is up with this packet?

yan12125 commented on 2017-12-20 02:56

FAQ

  • error while loading shared libraries: libicui18n.so.60: cannot open shared object file: No such file or directory

You'll need to rebuild against the new ICU 61. Normally it should be done with usual package upgrading (webkitgtk 2.4.11-11 => webkitgtk 2.4.11-12)

  • I can't build! There's an error "error: ‘WTF::StringImpl::StaticASCIILiteraicASCIILiteral’ has not been declared"

Try disabling parallel building - use -j1 in both PKGBUILD and /etc/makepkg.conf

  • Building takes too long time!

A: WebKit is inherently big and complex. It can take up to 13.5 hours to build (on AMD Athlon X2, thanks to @Bonnietwin for sharing). You can modify makepkg.conf or PKGBUILD directly to build it in parallel. Check out @MadMe's and @tuxsavvy's comments.

  • Is there a prebuilt package?

A: The awesome Arch Linux CN team maintains one. You can enable it by appending the following section to /etc/pacman.conf:

[archlinuxcn]
Server = https://cdn.repo.archlinuxcn.org/$arch

And installing as if it were official packages:

sudo pacman -S webkitgtk
sudo pacman -S webkitgtk2

Check out https://github.com/archlinuxcn/repo/blob/master/README.md for more details.

  • I can't build! There's an error about codegen

There's a bug in old glib2. Make sure you have upgraded to glib2 2.56. Check out @ValHue's and @zoidby's comments.

  • Other questions

I've disabled notifications for this package for too many non-constructive comments. Please open a new issue at https://gitlab.com/yan12125/aur for suggestions/questions/bug reports/...

stef204 commented on 2017-12-19 18:31

In addition to compile time (thanks @MadMe for the tip; [here's additional info https://wiki.gentoo.org/wiki/MAKEOPTS] but this thread wrong forum to discuss), what about the download time? Been trying to download source now for about 6 hours, progress: 3.08 MB.... What's going on with the throttling (280 bytes/s)?

In light of the considerable dwonload and compile time, would you consider providing a binary (for example, with with gpg signature)?

Bonnietwin commented on 2017-12-19 15:26

It took me 13.5 hours on an AMD Athlon X2 (not my oldest machine). It was long but it was successful.

MadMe commented on 2017-12-19 15:22

Sorry for offtopic, but for this time consuming package it might be worth it @tuxsavvy there is an more easy way: it is possible to set the makeflags in /etc/makepkg.conf

You find under

# ARCHITECTURE, COMPILE FLAGS MAKEFLAGS="-j1"

you can change it that way: https://wiki.archlinux.org/index.php/makepkg#MAKEFLAGS

i set it direct: MAKEFLAGS="-j9" # it should be one more than your virtual cpus

tuxsavvy commented on 2017-12-19 10:49

It took me ~5-6 hours on Core2Duo E8400 with 8GB RAM.

The overall default compile process does not take advantage of SMP set up. I initially ran it with the default PKGBUILD file but cancelled it about 2-3 hours in before setting it up to use 2 CPU. Check under _build area:

make all stamp-po

If it takes advantage of SMP it should be something like:

make -j 2 all stamp-po

Where 2 is however many CPU you have.

yan12125 commented on 2017-12-19 05:30

@joe1984: Quick googling brings me to an answer: too long path. [1] Could you check your path? By the way, length limitations are smaller on encrypted filesystems.

[1] https://stackoverflow.com/a/16279348

yan12125 commented on 2017-12-19 05:25

As a reference, it takes me almost 9 hours to build webkitgtk & webkitgtk2. (Linode VPS with 1G RAM + 1.5G swap)

wilberfan commented on 2017-12-19 05:16

@saligrama I cancelled it after 2 hours of compiling, and you've got a more powerful machine than I do. I may wait until I can let it run overnight. Anyone have a time-estimate on how long it has (should) take?

joe1984 commented on 2017-12-19 02:58

After a few hours of compiling, I get this error. ../webkitgtk-2.4.11/Source/WebCore/plugins/PluginView.cpp:1494:1: fatal error: opening dependency file Source/WebCore/plugins/.deps/libWebCore_la-PluginView.Tpo: No such file or directory } // namespace WebCore ^ compilation terminated. make[1]: *** [GNUmakefile:59766: Source/WebCore/plugins/libWebCore_la-PluginView.lo] Error 1

saligrama commented on 2017-12-19 02:52

Is this taking a very long time to compile for anyone else? It has taken almost 4 hours and is still in progress. I'm running on an i7-6700HQ with 16GB of RAM.

ValHue commented on 2017-12-18 16:17

Build error:

https://pastebin.com/FiMAtABV

Until that error (ImportError: cannot import name 'codegen_main') everything was fine,

SOLVED.

I have found the same error in another package and the solution explained there has worked for me.

I quote: The python script gdbus-codegen is checking for "bin" in the executable path, not "sbin". Thus, instead of getting the necessary shared folder (/usr/share/glib-2.0) it's getting something else. You should remove /usr/sbin from your path; it is supposed to simply be a link to /usr/bin anyway.

I leave the comment because it serves someone else. If you think there is a problem, I'll eliminate it.

metscoin commented on 2017-12-07 00:53

Here's a patch requested by @Schmeidenbacher until the maintainer can get to it. You'll have to add it to the PKGBUILD w/ checksum as appropriate.

https://pastebin.com/3Z65cC7R

Schmeidenbacher commented on 2017-12-04 17:02

I also have to request a patch, or change of the PKGBUILD as mentioned by remyoudompheng. Since the update to enchant 2.x this package will not build without the mentioned change.

remyoudompheng's change results in a working build which at least works with the gnucash package which is still dependent on this package here. Thank you.

doronbehar commented on 2017-11-25 17:04

I have a question:
How different is this package from the official `webkit2gtk` from the repository `extra`? I'm compiling it for a few hours now and my computer is working hard on it so I want to be sure it is absolutely necessary. I'm installing it only as a dependency for `pywebkitgtk`.

remyoudompheng commented on 2017-11-25 06:03

You will need a patch for enchant 2.x: I am using a sed command but it could be a proper patch as well.

sed -i s,enchant_dict_free_suggestions,enchant_dict_free_string_list,g \
Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp

Scimmia commented on 2017-11-11 05:49

Or rather you could read the AUR wiki page and see how things work.

trustin commented on 2017-11-11 05:40

Could you add 'bison' and 'flex' to the required build-time dependencies? (Using pacaur -S webkitgtk)

lamdacore commented on 2017-10-27 13:03

Get a non descriptive compile error. Does this compile for anyone?

../webkitgtk-2.4.11/Source/WebCore/rendering/RenderMediaControls.cpp:71:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
#if PLATFORM(WIN) && USE(CG)
^~~~~~~~~~
make[1]: Leaving directory '/home/lamdacore/abs/webkitgtk/src/build-gtk'
make: *** [GNUmakefile:25837: all] Error 2

oxplot commented on 2017-10-12 00:16

@chawlindel libwebkitgtk-1.0.0 is missing from the package you linked. I believe the correct package is: https://archive.archlinux.org/repos/2017/06/29/extra/os/x86_64/webkitgtk2-2.4.11-6-x86_64.pkg.tar.xz

chawlindel commented on 2017-10-02 18:44

Compiling this is just unfeasible. I had problems getting downgrade to work, but manually downloading the binary from the archive worked just fine.
https://archive.archlinux.org/repos/2017/06/29/extra/os/x86_64/webkitgtk-2.4.11-6-x86_64.pkg.tar.xz
I'm just gonna use it for the 'remarkable' package anyway so I don't care about security.

mocambo commented on 2017-09-26 14:39

@rast Thank you, problem solved.

xavery commented on 2017-09-22 00:32

@duelle : -j1 is only passed when installing (packaging), not building.

duelle commented on 2017-09-20 10:25

I had a look at the PKGBUILD file and saw, that you explicitly set the number of jobs to 1 ('-j1') for make. Is this intentional, or do would it be an option to remove it to allow to use more/all cores of the system during the build process?

This could massively increase the speed of the build.

rast commented on 2017-09-15 22:08

For all those who don't want to waste eternity waitinig for this to compile:

yaourt -S downgrade
# if you're manjaro user like me, downgrade won't work without NOARM=0
NOARM=0 downgrade webkitgtk2
# select anything, e.g. 1
# then answer Y to 'add webkitgtk2 to IgnorePkg?'

mocambo commented on 2017-09-10 19:41

Compiled 27 hours on my 32-bit laptop. Then met compile error and thats it, still without webkitgtk.

sapiens_anatis commented on 2017-09-05 18:42

I recommend adding `-Wno-expansion-to-defined` to CFLAGS and CXXFLAGS, otherwise you're totally flooded with warnings about 'this usage of defined may not be portable'

gauteh commented on 2017-09-05 09:23

This is webkit2 for both gtk2 and gtk3. Not just gtk2.

maxlefou commented on 2017-08-25 20:02

using downgrade doesn't work:
Branch = stable
Downgrading from A.L.A. is disabled on the stable branch. See https://wiki.archlinux.org/index.php/downgrading_packages for more details.

Can't someone publish binaries or something? My pc is on it for 9 HOURS now...
All of this just to try a DE i'm not even sure to like :'(

zxvfxwing commented on 2017-08-08 20:14

@akeif thank you man for the tips !

cgentry1972 commented on 2017-08-07 15:36

I'm sorry I'm confused on what I need to do here. I need webkitgtk2 for lightdm-webkit-greeter but it takes forever to build webkitgtk2. How would I go about doing this?

zman0900 commented on 2017-08-06 07:12

Does this really need to be a split package? As far as I can tell the only thing shared between the gtk2 and gtk3 builds in the source code - it runs two separate builds back to back then packages both. I bet most people don't need both, so it sucks to have to either wait on both or manually edit the PKGBUILD.

gnufred commented on 2017-07-20 18:25

Following martadinata666's comment, here's how to install without compiling:

yaourt -S downgrade
/usr/bin/downgrade webkitgtk
# Select 1)
# Add to IgnrList
yaourt -S remarkable

berserkingyadis commented on 2017-07-19 14:31

martadinata88 thanks for the suggestion! Mine compiled for over 4 hours until I aborted it. I downloaded webkitgtk2 2.4.11-6 with the package you mentioned.

Seems like I installed the same version as I was trying to compile for half a day in like 10 seconds. Sounds too good to be true ;)

martadinata666 commented on 2017-07-17 15:42

for the ppl who dont want compile for long time, use aur package downgrade it will search remote package from archlinux server to download, and install it.

https://aur.archlinux.org/packages/downgrade

ShalokShalom commented on 2017-07-14 07:15

https://gist.github.com/ShalokShalom/4253e88da8f774bd29acb8a0d8f77e9f

not_anonymous commented on 2017-07-03 00:40

NOTE: This *will* require LOTS of tmpfs !

kubrick commented on 2017-07-02 10:29

Took 50min for me on 6c/12t 3.3GHz, it's quite a beast to compile.

Anonymous comment on 2017-07-01 23:23

I've been trying to build this all day. I left it for literally five hours. Is that normal? I'm on a (fairly powerful) desktop PC...