<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>231367</bug_id>
          
          <creation_ts>2021-10-07 09:41:37 -0700</creation_ts>
          <short_desc>[WPE] Fails to build if not already installed</short_desc>
          <delta_ts>2021-10-07 09:48:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1801629</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-10-07 09:41:37 -0700</bug_when>
    <thetext>If WPE WebKit is not already installed, it fails to build trying to configure cog during the build process. So WPE port currently depends on an existing WPE install to bootstrap itself. Oops?

[1878/2019] Performing configure step for &apos;cog&apos;
FAILED: Tools/cog-prefix/src/cog-stamp/cog-configure /home/mcatanzaro/Projects/WebKit/WebKitBuild/WPE/Tools/cog-prefix/src/cog-stamp/cog-configure 
cd /home/mcatanzaro/Projects/WebKit/WebKitBuild/WPE/Tools/cog-prefix/src/cog-build &amp;&amp; /usr/bin/cmake -DCOG_PLATFORM_GTK4=ON -DCOG_PLATFORM_HEADLESS=ON -DCOG_PLATFORM_X11=ON -DUSE_SOUP2=OFF -GNinja /home/mcatanzaro/Projects/WebKit/Tools/wpe/cog &amp;&amp; /usr/bin/cmake -E touch /home/mcatanzaro/Projects/WebKit/WebKitBuild/WPE/Tools/cog-prefix/src/cog-stamp/cog-configure
-- The C compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: /usr/bin/git (found version &quot;2.32.0&quot;) 
-- Source tree revision: 0.9.1+git-6dea32b
-- Found PkgConfig: /usr/bin/pkg-config (found version &quot;1.8.0&quot;) 
-- Checking for module &apos;gio-2.0&gt;=2.67.4&apos;
--   Found gio-2.0, version 2.70.0
-- Checking for module &apos;libsoup-3.0&gt;=2.99.7&apos;
--   Found libsoup-3.0, version 3.0.1
-- Checking for module &apos;wpe-webkit-1.1&gt;=2.33.1&apos;
--   Package &apos;wpe-webkit-1.1&apos;, required by &apos;virtual:world&apos;, not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:562 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:784 (_pkg_check_modules_internal)
  CMakeLists.txt:142 (pkg_check_modules)


-- Configuring incomplete, errors occurred!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1801635</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-10-07 09:48:15 -0700</bug_when>
    <thetext>Maybe it&apos;s OK because it depends on -DENABLE_DEVELOPER_MODE=ON and can be worked around pretty easily by building with -DENABLE_COG=OFF. So feel free to close this if this is intended. That said, I was surprised.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>