<?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>265440</bug_id>
          
          <creation_ts>2023-11-28 01:06:41 -0800</creation_ts>
          <short_desc>[WPE][CMake] Cannot complete distcheck with ENABLE_WPE_1_1_API=OFF</short_desc>
          <delta_ts>2024-03-21 14:40: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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1995214</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2023-11-28 01:06:41 -0800</bug_when>
    <thetext>When using ENABLE_WPE_1_1_API=OFF (the default), the “distcheck” target
fails with the following error:

----- 8&lt; ----- snip ----- 8&lt; ------

WebKit % MAKEFLAGS=-j47 MFLAGS=-j47 NUMBER_OF_PROCESSORS=47 ./Tools/Scripts/build-webkit --wpe --no-unified-builds --makeargs=distcheck
Building flatpak based environment
+  cmake --build /app/webkit/WebKitBuild/WPE/Release --config Release -- distcheck -j47
[1/1/2|0.0/s|  0%] Re-checking globbed directories...
[1/7740/7740|26.6/s| 99%] Checking release tarball: wpewebkit-2.43.1.tar
Traceback (most recent call last):
  File &quot;/app/webkit/Tools/Scripts/make-dist&quot;, line 341, in &lt;module&gt;
    manifest = Manifest(arguments.manifest_filename, arguments.source_dir, arguments.build_dir, tarball_root)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/app/webkit/Tools/Scripts/make-dist&quot;, line 150, in __init__
    self.process_line(line)
  File &quot;/app/webkit/Tools/Scripts/make-dist&quot;, line 188, in process_line
    self.add_directory(Directory(*self.get_source_and_tarball_paths_from_parts(parts)))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/app/webkit/Tools/Scripts/make-dist&quot;, line 173, in get_source_and_tarball_paths_from_parts
    full_source_path = self.get_full_source_path(parts[1])
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/app/webkit/Tools/Scripts/make-dist&quot;, line 166, in get_full_source_path
    raise Exception(&apos;Could not find directory %s&apos; % source_path)
Exception: Could not find directory /app/webkit/WebKitBuild/WPE/Release/Documentation/wpe-web-extension-2.0
FAILED: Source/CMakeFiles/distcheck /app/webkit/WebKitBuild/WPE/Release/Source/CMakeFiles/distcheck 
cd /app/webkit/WebKitBuild/WPE/Release/Source &amp;&amp; /app/webkit/Tools/Scripts/make-dist --check --port=WPE --tarball-name=wpewebkit --source-dir=/app/webkit --build-dir=/app/webkit/WebKitBuild/WPE/Release --version=2.43.1 /app/webkit/WebKitBuild/WPE/Release/manifest.txt &amp;&amp; /usr/bin/xz -evfQ /app/webkit/WebKitBuild/WPE/Release/wpewebkit-2.43.1.tar
ninja: build stopped: subcommand failed.
WebKit %

----- 8&lt; ----- snip ----- 8&lt; ------

I had to make the last few releases manually enabling ENABLE_WPE_1_1_API
in order to be able to produce tarballs, but that should not be needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995217</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-11-28 01:20:25 -0800</bug_when>
    <thetext>I think this is because of the rename of web-extensions -&gt; web-process-extensions. Just use the expected name in the wpe manifest file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996677</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2023-12-04 02:19:31 -0800</bug_when>
    <thetext>(In reply to Carlos Garcia Campos from comment #1)
&gt; I think this is because of the rename of web-extensions -&gt;
&gt; web-process-extensions. Just use the expected name in the wpe manifest file.

That was also my suspicion, I&apos;ll look into fixing this issue soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022827</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-03-21 11:29:48 -0700</bug_when>
    <thetext>It took me a while to get back to this, but I&apos;m now testing a patch :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022881</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-03-21 14:21:30 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/26265</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022884</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-21 14:39:06 -0700</bug_when>
    <thetext>Committed 276496@main (fc03e5ddcfb7): &lt;https://commits.webkit.org/276496@main&gt;

Reviewed commits have been landed. Closing PR #26265 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022885</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-21 14:40:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/125193326&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>