Subject: bug#51555: closed (Re: bug#51559: Webkit fails to build)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 02 Nov 2021 03:15:02 +0000

Your bug report

#51559: webkitgtk broken with commit 8797a07a

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
51559: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51559
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#51559: Webkit fails to build
From: Maxim Cournoyer <[email-masked]>
To: Liliana Marie Prikler <[email-masked]>
Cc: [email-masked]
Date: Mon, 01 Nov 2021 23:14:37 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Liliana Marie Prikler <[email-masked]> writes:

> Copypasta of the relevant log
> (/var/log/guix/drvs/pr/nl8g1ky1z3l3dfp4llh50w5qzd2qz4-webkitgtk-
> 2.34.1.drv.bz2):
>
> -- Checking for module 'egl'
> --   Found egl, version 20.2.4
> -- Found EGL: /gnu/store/jf269s6clr6r57p8v5c3c1qkyra6apq2-mesa-
> 20.2.4/include  
> -- Checking for module 'gl'
> --   Found gl, version 20.2.4
> -- Found OpenGL: /gnu/store/jf269s6clr6r57p8v5c3c1qkyra6apq2-mesa-
> 20.2.4/include  
> -- Looking for include file GL/glx.h
> -- Looking for include file GL/glx.h - found
> -- Checking for module 'glesv2'
> --   Found glesv2, version 20.2.4
> -- Found OpenGLES2: /gnu/store/jf269s6clr6r57p8v5c3c1qkyra6apq2-mesa-
> 20.2.4/lib/libGLESv2.so (found version "3.2") 
> -- Checking for module 'gtk+-3.0'
> --   Found gtk+-3.0, version 3.24.24
> -- Checking for module 'gtk+-unix-print-3.0'
> --   Found gtk+-unix-print-3.0, version 3.24.24
> -- Found GTK: 3.24.24 (Required is at least version "3.22.0") 
> -- Could NOT find LibSoup: Found unsuitable version "", but required is
> at least "2.99.9" (found LIBSOUP_INCLUDE_DIRS-NOTFOUND)
> CMake Error at Source/cmake/OptionsGTK.cmake:212 (message):
>   libsoup 3 is required.  Enable USE_SOUP2 to use libsoup 2 (disables
> HTTP/2)
> Call Stack (most recent call first):
>   Source/cmake/WebKitCommon.cmake:220 (include)
>   CMakeLists.txt:20 (include)
>
>
> -- Configuring incomplete, errors occurred!
> See also "/tmp/guix-build-webkitgtk-2.34.1.drv-
> 0/build/CMakeFiles/CMakeOutput.log".
> See also "/tmp/guix-build-webkitgtk-2.34.1.drv-
> 0/build/CMakeFiles/CMakeError.log".
> command "cmake" "../webkitgtk-2.34.1" "-DCMAKE_BUILD_TYPE=Release" "-
> DCMAKE_INSTALL_PREFIX=/gnu/store/4vchdgd2c3kvgyf8s9z54985vf80gsaa-
> webkitgtk-2.34.1" "-DCMAKE_INSTALL_LIBDIR=lib" "-
> DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" "-
> DCMAKE_INSTALL_RPATH=/gnu/store/4vchdgd2c3kvgyf8s9z54985vf80gsaa-
> webkitgtk-2.34.1/lib" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DPORT=GTK" "-
> DENABLE_GTKDOC=ON" "-DENABLE_GAMEPAD=OFF" "-DUSE_SYSTEMD=OFF" "-
> DLIB_INSTALL_DIR=/gnu/store/4vchdgd2c3kvgyf8s9z54985vf80gsaa-webkitgtk-
> 2.34.1/lib" "-DUSE_GSTREAMER_GL=OFF" failed with status 1

That's fixed on core-updates-frozen-batched-changes, having upgraded
webkitgtk to 2.34.4 and libsoup to 3.0.1.

Closing.

Maxim

Subject: webkitgtk broken with commit 8797a07a
From: zachary rothenberg <[email-masked]>
To: [email-masked]
Date: Mon, 1 Nov 2021 13:20:30 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

It looks like webkitgtk won't build for me anymore after the version got
bumped to 2.34.1.

The error happens during configuration, with relevant logging
===============================
-- Could NOT find LibSoup: Found unsuitable version "", but required is at
least "2.99.9" (found LIBSOUP_INCLUDE_DIRS-NOTFOUND)
CMake Error at Source/cmake/OptionsGTK.cmake:212 (message):
  libsoup 3 is required.  Enable USE_SOUP2 to use libsoup 2 (disables
HTTP/2)
Call Stack (most recent call first):
  Source/cmake/WebKitCommon.cmake:220 (include)
  CMakeLists.txt:20 (include)
===============================

If instead I time-machine to the previous commit
==============
guix time-machine --commit=80c0505f166101bbe6d55b8f2314d1a18227b3ee --
install webkitgtk
==============
it all builds fine.

I think the issue is that with version 2.33 webkitgtk started building with
libsoup3 by default. Since the last version in guix was 2.32.1 this would
explain why this bump started causing issues. The package the libsoup guix
pulls in (version 2) no longer satisfies the requirement and we can't
build. Potential fixes are setting USE_SOUP2 or building with libsoup3
instead.