<?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>307051</bug_id>
          
          <creation_ts>2026-02-05 02:15:12 -0800</creation_ts>
          <short_desc>[CMake] Avoid confusing message about Ruby not being found</short_desc>
          <delta_ts>2026-02-05 08:24:56 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CMake</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></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>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2178310</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-02-05 02:15:12 -0800</bug_when>
    <thetext>When CMake searches for Ruby, typically it can happen that it is reported as not found:

-- The CMake build type is: Release
-- Could NOT find Ruby (missing: Ruby_INCLUDE_DIR Ruby_LIBRARY Ruby_CONFIG_INCLUDE_DIR) (found suitable version &quot;3.2.3&quot;, minimum required is &quot;2.5&quot;)
-- Enabling ccache: Setting ccache prefix for compiler.

But then only the Ruby executable is needed, as per the comment in WebKitCommon.cmake:

    # We cannot check for RUBY_FOUND because it is set only when the full package is installed and
    # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro
    # for finding only the Ruby interpreter.

We could improve this by passing the QUIET flag to find_package() and print the message ourselves after checking the version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178313</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-02-05 02:24:50 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57946</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178397</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-05 08:24:53 -0800</bug_when>
    <thetext>Committed 306869@main (6b1a9bc0ba60): &lt;https://commits.webkit.org/306869@main&gt;

Reviewed commits have been landed. Closing PR #57946 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>