After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 739929 - Build webkitgtk+ >= 2.6.0
Build webkitgtk+ >= 2.6.0
Status: RESOLVED FIXED
Product: gnome-continuous
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Continuous maintainer(s)
GNOME Continuous maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-11-10 21:34 UTC by Debarshi Ray
Modified: 2014-11-28 18:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
manifest: Add webkitgtk-2.6.2 to the build (1.25 KB, patch)
2014-11-11 12:03 UTC, Debarshi Ray
needs-work Details | Review
Revert "manifest.json: Fix build" (879 bytes, patch)
2014-11-11 12:03 UTC, Debarshi Ray
none Details | Review
Revert "manifest: tag epiphany" (940 bytes, patch)
2014-11-11 12:04 UTC, Debarshi Ray
none Details | Review
manifest: Add webkitgtk-2.6.4 to the build (3.84 KB, patch)
2014-11-21 10:41 UTC, Debarshi Ray
none Details | Review
manifest: define empty enchant lib dirs (1.77 KB, patch)
2014-11-21 12:03 UTC, Vadim Rutkovsky
none Details | Review
manifest: add config opts for webkit2 (882 bytes, patch)
2014-11-21 12:03 UTC, Vadim Rutkovsky
reviewed Details | Review
manifest: build enchant before webkitgtk4 (1.39 KB, patch)
2014-11-21 12:29 UTC, Vadim Rutkovsky
none Details | Review
manifest: build enchant before webkitgtk4 (1.39 KB, patch)
2014-11-21 16:02 UTC, Vadim Rutkovsky
none Details | Review
manifest: specify linker bugs for webkitgtk4 (1.07 KB, patch)
2014-11-21 16:05 UTC, Vadim Rutkovsky
none Details | Review

Description Debarshi Ray 2014-11-10 21:34:22 UTC
The 2.4.x releases were the last ones to have the WK1 API, so to accommodate those who have not ported to WK2, the newer releases were made parallel installable. However, this means that the pkgconfig file provided by the newer releases has been renamed to webkit2gtk-4.0.pc.

So, either we need to have the newer webkitgtk+ in Continuous, or WK2 applications need to retain compatibility with older releases. It is easier to do the former, because doing the latter is non-trivial for epiphany. As more complex applications join the WK2 party (eg., evolution, geary, yelp) it is only going to become harder.
Comment 1 Debarshi Ray 2014-11-11 12:03:12 UTC
Created attachment 290408 [details] [review]
manifest: Add webkitgtk-2.6.2 to the build
Comment 2 Debarshi Ray 2014-11-11 12:03:35 UTC
Created attachment 290409 [details] [review]
Revert "manifest.json: Fix build"
Comment 3 Debarshi Ray 2014-11-11 12:04:00 UTC
Created attachment 290410 [details] [review]
Revert "manifest: tag epiphany"
Comment 4 Colin Walters 2014-11-11 12:58:19 UTC
Review of attachment 290408 [details] [review]:

::: manifest.json
@@ +760,3 @@
 				 "--disable-maintainer-mode"]},
 
+		{"src": "tarball:http://www.webkitgtk.org/releases/webkitgtk-2.6.2.tar.xz",

It's not that simple as this release switched to cmake.  Look at libssh-cmake-buildapi.patch.  We'd need to do something similar except also plumb through -DPORT=GTK.

(Or teach continuous how to deal with cmake more directly internally)
Comment 5 Debarshi Ray 2014-11-21 10:41:44 UTC
Created attachment 291147 [details] [review]
manifest: Add webkitgtk-2.6.4 to the build
Comment 6 Vadim Rutkovsky 2014-11-21 12:03:01 UTC
Created attachment 291152 [details] [review]
manifest: define empty enchant lib dirs

Tried Debarshi's patch and it seem to need some more changes
Comment 7 Vadim Rutkovsky 2014-11-21 12:03:30 UTC
Created attachment 291153 [details] [review]
manifest: add config opts for webkit2
Comment 8 Vadim Rutkovsky 2014-11-21 12:29:05 UTC
Created attachment 291156 [details] [review]
manifest: build enchant before webkitgtk4

We should build enchant before webkitgtk4
Comment 9 Debarshi Ray 2014-11-21 15:41:28 UTC
Review of attachment 291153 [details] [review]:

::: manifest.json
@@ +765,3 @@
+		 "patches": ["webkitgtk-cmake-buildapi.patch"],
+		 "config-opts": ["--enable-introspection",
+				 "--enable-debug-symbols=min"]},

Are you sure that a --enable-introspection flag in the new cmake build setup? I grepped through the Git sources and the Fedora spec and could not see one.
Comment 10 Vadim Rutkovsky 2014-11-21 16:02:30 UTC
Created attachment 291188 [details] [review]
manifest: build enchant before webkitgtk4
Comment 11 Vadim Rutkovsky 2014-11-21 16:05:01 UTC
Created attachment 291189 [details] [review]
manifest: specify linker bugs for webkitgtk4

We don't really need config-ops for it.

Locally the build fails for me, so lets try linker flags from Fedora spec file
Comment 12 Colin Walters 2014-11-21 17:35:38 UTC
Please push if it works locally.
Comment 13 Vadim Rutkovsky 2014-11-24 16:11:24 UTC
Pushed a reworked patch (CMake requires a separate env for cflags): https://git.gnome.org/browse/gnome-continuous/commit/?id=9c0b515496f0bc4faac34fd42b99ea51d44a7069
Comment 14 Vadim Rutkovsky 2014-11-27 16:41:54 UTC
WebkitGTK breaks builddisks now, reopening the bug. I'll try to build it locally without debug symbols
Comment 15 Debarshi Ray 2014-11-27 18:27:59 UTC
Random thought: is this caused by having 2 webkitgtk+ builds?
Comment 16 Colin Walters 2014-11-28 15:18:22 UTC
Might be "fixed" by https://git.gnome.org/browse/gnome-continuous/commit/?id=07fa0166fac6b18b7308a675c7f54876bb67a186

I know at least Fedora's GPG signing chokes on webkitgtk debuginfo.

(A minute passes while Colin logs into build gnome.org...)

Oh yeah, look at this:

ostree@spinner:~/ostbuild/work$ ostree --repo=repo ls -R gnome-continuous/components/webkitgtk4/x86_64 /debug
d02775 0 0      0 /debug
d02775 0 0      0 /debug/usr
d02775 0 0      0 /debug/usr/lib
d02775 0 0      0 /debug/usr/lib/debug
d02775 0 0      0 /debug/usr/lib/debug/.build-id
d02775 0 0      0 /debug/usr/lib/debug/.build-id/1d
-00775 0 0  25407 /debug/usr/lib/debug/.build-id/1d/1a005569b6c7a62a742450aad8f2cec6a20f67.debug
d02775 0 0      0 /debug/usr/lib/debug/.build-id/1f
-00775 0 0  99480 /debug/usr/lib/debug/.build-id/1f/ac5b89e44d581457916f0cb1f794785c54d250.debug
d02775 0 0      0 /debug/usr/lib/debug/.build-id/29
-00775 0 0  25621 /debug/usr/lib/debug/.build-id/29/0ee42614e3ea02ecbceb6d4997117fe0fd38e3.debug
d02775 0 0      0 /debug/usr/lib/debug/.build-id/45
-00775 0 0 2057770851 /debug/usr/lib/debug/.build-id/45/fe3b97ccbe6e6348de5183202c001809ac260e.debug
d02775 0 0      0 /debug/usr/lib/debug/.build-id/95
-00775 0 0  25661 /debug/usr/lib/debug/.build-id/95/311ca56401b5ffe81e81f98f5e6c9f231a5807.debug
d02775 0 0      0 /debug/usr/lib/debug/.build-id/be
-00775 0 0 476690850 /debug/usr/lib/debug/.build-id/be/7d93c1b0b41f0c7c1d95195055ac3f9c2604ae.debug
-00775 0 0 1797070549 /debug/usr/lib/debug/.build-id/be/81bc714b5369e7ab2554a9462d695d63e512e5.debug
d02775 0 0      0 /debug/usr/lib/debug/.build-id/df
-00775 0 0 4069961 /debug/usr/lib/debug/.build-id/df/fec18cccb72ce1f5e129c87ee92e32faf91efa.debug


$ gjs -c 'print(imports.gi.GLib.format_size(1797070549 + 2057770851 + 4069961 + 476690850))'
4.3 GB
$

So...I think we may need to hack Continuous to not generate debuginfo for webkitgtk.
Comment 17 Vadim Rutkovsky 2014-11-28 15:42:27 UTC
(In reply to comment #16)
> So...I think we may need to hack Continuous to not generate debuginfo for
> webkitgtk.

Pushed https://git.gnome.org/browse/gnome-continuous/commit/?id=eeaf10a4956e4ad7fe08193a601e2e0db78242f4, this should solve it
Comment 18 Vadim Rutkovsky 2014-11-28 18:24:56 UTC
WK2 now available since http://build.gnome.org/#/build/20141128.35