Skip to content

[WebkitGtk+]Making webkitgtk build work behind a proxy.



I have been trying to build WebkitGtk in my company PC and was stuck with dependencies update and the subsequent build. I had to work behind a proxy which complicated things a bit. The general build is supposed to work on PC’s with open network. But once you get behind a proxy with just the http port only open, things usually taken for granted like git and ftp access go for a toss. Hence I was stuck a bit. With some help from the webkigtk-dev mailing list, following changes were suggested to make the build and dependencies to work:


Index: Tools/jhbuild/jhbuild-wrapper
===================================================================
--- Tools/jhbuild/jhbuild-wrapper (revision 164856)
+++ Tools/jhbuild/jhbuild-wrapper (working copy)
@@ -69,7 +69,7 @@
if not os.path.exists(installation_prefix):
os.makedirs(installation_prefix)

- process = subprocess.Popen(['git', 'clone', 'git://git.gnome.org/jhbuild'], cwd=source_path)
+ process = subprocess.Popen(['git', 'clone', 'https://git.gnome.org/browse/jhbuild'], cwd=source_path)
process.wait()
if process.returncode != 0:
raise Exception('jhbuild git clone failed with return code: %i' % process.returncode)
Index: Tools/gtk/jhbuild.modules
===================================================================
--- Tools/gtk/jhbuild.modules (revision 164856)
+++ Tools/gtk/jhbuild.modules (working copy)
@@ -37,13 +37,13 @@


+ href="https://github.com"/>



+ href="https://git.gnome.org/browse/"/>

But apart from this the best way would be to add a --proxy command line argument to update and build webkit commands so that the switch happens automatically.