Bug 224926

Summary: [GTK] Build error: Couldn't find include 'Soup-2.4.gir'
Product: WebKit Reporter: Fernando Jiménez Moreno <fjimenez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, bugs-noreply, cgarcia, ews-watchlist, gyuyoung.kim, pnormand, ryuan.choi, sergio
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch pnormand: review+

Description Fernando Jiménez Moreno 2021-04-22 04:17:24 PDT
I see the following build error with r276428:

```
[20/136] Generating ../docs-build-no-html.stamp
FAILED: docs-build-no-html.stamp
cd /home/ferjm/dev/igalia/WebKit/WebKitBuild/Release && /usr/bin/cmake -E env CC=/usr/lib64/ccache/cc "CFLAGS=-fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare  -fno-strict-aliasing -fno-exceptions -Wno-unused-parameter" "LDFLAGS= -fuse-ld=gold -Wl,--disable-new-dtags" /usr/bin/python2.7 /home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/generate-gtkdoc --gtk --skip-html && touch docs-build-no-html.stamp
Traceback (most recent call last):
  File "/home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/generate-gtkdoc", line 254, in <module>
    build_gtkdoc_for_wkgtk(arguments)
  File "/home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/generate-gtkdoc", line 208, in build_gtkdoc_for_wkgtk
    saw_warnings = generate_documentation(jsc_generator)
  File "/home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/generate-gtkdoc", line 158, in generate_documentation
    return generate_doc(generator, arguments.skip_html)
  File "/home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/generate-gtkdoc", line 145, in generate_doc
    generator.generate(not skip_html)
  File "/home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/gtkdoc.py", line 146, in generate
    self._run_gtkdoc_scan()
  File "/home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/gtkdoc.py", line 311, in _run_gtkdoc_scan
    self._run_command(args)
  File "/home/ferjm/dev/igalia/WebKit/Tools/gtkdoc/gtkdoc.py", line 196, in _run_command
    stderr=subprocess.PIPE)
  File "/usr/lib64/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[22/136] Generating ../../WebKit2-4.1.gir
FAILED: WebKit2-4.1.gir 
cd /home/ferjm/dev/igalia/WebKit/WebKitBuild/Release/Source/WebKit && CC=/usr/lib64/ccache/cc CFLAGS=-Wno-deprecated-declarations LDFLAGS= LD_LIBRARY_PATH="/home/ferjm/dev/igalia/WebKit/WebKitBuild/Release/lib" /usr/bin/g-ir-scanner --quiet --warn-all --symbol-prefix=webkit --identifier-prefix=WebKit --namespace=WebKit2 --nsversion=4.1 --include=GObject-2.0 --include=Gtk-3.0 --include=Soup-2.4 --include-uninstalled=/home/ferjm/dev/igalia/WebKit/WebKitBuild/Release/JavaScriptCore-4.1.gir --library=webkit2gtk-4.1 --library=javascriptcoregtk-4.1 -L/home/ferjm/dev/igalia/WebKit/WebKitBuild/Release/lib --no-libtool --pkg=gobject-2.0 --pkg=gtk+-3.0 --pkg=libsoup-2.4 --pkg-export=webkit2gtk-4.1 --output=/home/ferjm/dev/igalia/WebKit/WebKitBuild/Release/WebKit2-4.1.gir --sources-top-dirs=/home/ferjm/dev/igalia/WebKit/WebKitBuild/Release --c-include="webkit2/webkit2.h" -DBUILDING_WEBKIT -DWEBKIT2_COMPILATION

[...]

Couldn't find include 'Soup-2.4.gir' (search path: '['/usr/share', '/home/ferjm/.local/share/flatpak/exports/share/gir-1.0', '/var/lib/flatpak/exports/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/var/lib/snapd/desktop/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
```

I had libsoup 2.72.0 installed locally via dnf and I had to manually build and install 2.99.3 to make the configure step pass.

I see Soup-3.0.gir but no Soup-2.4.gir in /usr/local/share/gir-1.0
Comment 1 Carlos Garcia Campos 2021-04-22 04:20:28 PDT
Created attachment 426798 [details]
Patch
Comment 2 Carlos Garcia Campos 2021-04-22 04:52:24 PDT
Committed r276430 (236893@main): <https://commits.webkit.org/236893@main>