Subject: [PATCH] gnu: webkitgtk: Fix configure failures.

From: Liliana Marie Prikler <[email-masked]>
Date: Tue, 2 Nov 2021 11:04:37 +0100

See <https://bugs.gnu.org/51555>, <https://bugs.gnu.org/51559>, and
<https://bugs.gnu.org/51564>.

* gnu/packages/webkit.scm (webkitgtk)[#:configure-flags]: Enable USE_SOUP2.
[inputs]: Add lcms.
---
Currently building this thing, but my machine is rather slow.
Someone with a faster one might want to try and push it in my stead.

 gnu/packages/webkit.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/webkit.scm b/gnu/packages/webkit.scm
index 0e6cdb8588..8600c3833e 100644
--- a/gnu/packages/webkit.scm
+++ b/gnu/packages/webkit.scm
@@ -40,6 +40,7 @@ (define-module (gnu packages webkit)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
@@ -248,6 +249,8 @@ (define-public webkitgtk
                           ;; TODO Decide if we should enable this
                           "-DENABLE_GAMEPAD=OFF"
                           "-DUSE_SYSTEMD=OFF"
+                          ;; XXX: Remove once we have libsoup 3
+                          "-DUSE_SOUP2=ON"
                           (string-append ; uses lib64 by default
                            "-DLIB_INSTALL_DIR="
                            (assoc-ref %outputs "out") "/lib")
@@ -336,6 +339,7 @@ (define-public webkitgtk
        ("libxml2" ,libxml2)
        ("libxslt" ,libxslt)
        ("libxt" ,libxt)
+       ("lcms" ,lcms)
        ("mesa" ,mesa)
        ("openjpeg" ,openjpeg)
        ("sqlite" ,sqlite)
-- 
2.33.1