[MacPorts] #71088: webkit2-gtk: undefined method `exists?' for class File (NoMethodError) (was: webkit2-gtk: install via building from source fails:)

MacPorts noreply at macports.org
Fri Oct 11 17:42:00 UTC 2024


#71088: webkit2-gtk: undefined method `exists?' for class File (NoMethodError)
--------------------------+--------------------
  Reporter:  kwolcott     |      Owner:  (none)
      Type:  defect       |     Status:  closed
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:  duplicate    |   Keywords:
      Port:  webkit2-gtk  |
--------------------------+--------------------
Changes (by ryandesign):

 * status:  new => closed
 * resolution:   => duplicate


Old description:

> ninja: build stopped: subcommand failed.
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build"
> && ninja -j8 all -j8 -v
> Exit code: 1
> Error: Failed to build webkit2-gtk: command execution failed
>
> I've looked through the log file and I do not see any fatal error...

New description:

 {{{
 ninja: build stopped: subcommand failed.
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build"
 && ninja -j8 all -j8 -v
 Exit code: 1
 Error: Failed to build webkit2-gtk: command execution failed
 }}}

 I've looked through the log file and I do not see any fatal error...

--

Comment:

 The error in the log is:

 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/webkitgtk-2.28.2/Source/JavaScriptCore/offlineasm/config.rb:29:in
 `<top (required)>': undefined method `exists?' for class File
 (NoMethodError)
 :info:build if sdkRootDirectory and File.exists?(sdkRootDirectory)
 :info:build                             ^^^^^^^^
 :info:build Did you mean?  exist?
 :info:build     from
 <internal:/opt/local/lib/ruby3.3/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in
 `require'
 :info:build     from
 <internal:/opt/local/lib/ruby3.3/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in
 `require'
 :info:build     from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/webkitgtk-2.28.2/Source/JavaScriptCore/offlineasm/generate_settings_extractor.rb:28:in
 `<main>'
 }}}

 Duplicate of #68705.

-- 
Ticket URL: <https://trac.macports.org/ticket/71088#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list