Opened 12 months ago

Closed 4 weeks ago

#68705 closed defect (fixed)

webkit2-gtk @2.28.2: config.rb: in `<top (required)>': undefined method `exists?' for File:Class (NoMethodError)

Reported by: barracuda156 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma haspatch Cc: dbevans (David B. Evans), catap (Kirill A. Korinsky), ShadSterling (Shad Sterling), cooljeanius (Eric Gallager), JDLH (Jim DeLaHunt), kwolcott
Port: webkit2-gtk

Description

Possibly, it got broken on Sonoma:

:info:build [664/4504] 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/Source/JavaScriptCore && /opt/local/bin/ruby3.2 /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 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/DerivedSources/JavaScriptCore/ /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/llint/LowLevelInterpreter.asm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/DerivedSources/JavaScriptCore/LLIntDesiredSettings.h ARM64
:info:build FAILED: DerivedSources/JavaScriptCore/LLIntDesiredSettings.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/DerivedSources/JavaScriptCore/LLIntDesiredSettings.h 
:info:build 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/Source/JavaScriptCore && /opt/local/bin/ruby3.2 /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 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/DerivedSources/JavaScriptCore/ /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/llint/LowLevelInterpreter.asm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/DerivedSources/JavaScriptCore/LLIntDesiredSettings.h ARM64
: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 File:Class (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.2/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
:info:build 	from <internal:/opt/local/lib/ruby3.2/3.2.0/rubygems/core_ext/kernel_require.rb>:85: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>'
:info:build [665/4504] /usr/bin/clang++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DEGL_EGL_PROTOTYPES=0 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -I/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/ThirdParty/ANGLE/include -I/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/ThirdParty/ANGLE/include/KHR -I/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/ThirdParty/ANGLE/src -I/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/ThirdParty/ANGLE/src/common/third_party/base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/Source/ThirdParty/ANGLE/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIC -Wno-cast-align -Wno-type-limits -Wno-undef -Wno-unused-parameter -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/android_util.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/android_util.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/android_util.cpp.o -c /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/ThirdParty/ANGLE/src/common/android_util.cpp
:info:build [666/4504] /usr/bin/clang++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DEGL_EGL_PROTOTYPES=0 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -I/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/ThirdParty/ANGLE/include -I/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/ThirdParty/ANGLE/include/KHR -I/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/ThirdParty/ANGLE/src -I/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/ThirdParty/ANGLE/src/common/third_party/base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/Source/ThirdParty/ANGLE/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIC -Wno-cast-align -Wno-type-limits -Wno-undef -Wno-unused-parameter -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/event_tracer.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/event_tracer.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/event_tracer.cpp.o -c /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/ThirdParty/ANGLE/src/common/event_tracer.cpp
:info:build [667/4504] /usr/bin/clang++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DEGL_EGL_PROTOTYPES=0 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -I/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/ThirdParty/ANGLE/include -I/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/ThirdParty/ANGLE/include/KHR -I/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/ThirdParty/ANGLE/src -I/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/ThirdParty/ANGLE/src/common/third_party/base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/Source/ThirdParty/ANGLE/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIC -Wno-cast-align -Wno-type-limits -Wno-undef -Wno-unused-parameter -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/mathutil.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/mathutil.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/mathutil.cpp.o -c /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/ThirdParty/ANGLE/src/common/mathutil.cpp
:info:build [668/4504] /usr/bin/clang++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DEGL_EGL_PROTOTYPES=0 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -I/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/ThirdParty/ANGLE/include -I/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/ThirdParty/ANGLE/include/KHR -I/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/ThirdParty/ANGLE/src -I/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/ThirdParty/ANGLE/src/common/third_party/base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/Source/ThirdParty/ANGLE/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIC -Wno-cast-align -Wno-type-limits -Wno-undef -Wno-unused-parameter -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/debug.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/debug.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/debug.cpp.o -c /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/ThirdParty/ANGLE/src/common/debug.cpp
:info:build [669/4504] /usr/bin/clang++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DEGL_EGL_PROTOTYPES=0 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -I/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/ThirdParty/ANGLE/include -I/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/ThirdParty/ANGLE/include/KHR -I/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/ThirdParty/ANGLE/src -I/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/ThirdParty/ANGLE/src/common/third_party/base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/Source/ThirdParty/ANGLE/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIC -Wno-cast-align -Wno-type-limits -Wno-undef -Wno-unused-parameter -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/angleutils.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/angleutils.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/angleutils.cpp.o -c /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/ThirdParty/ANGLE/src/common/angleutils.cpp
:info:build [670/4504] /usr/bin/clang++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DEGL_EGL_PROTOTYPES=0 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -I/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/ThirdParty/ANGLE/include -I/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/ThirdParty/ANGLE/include/KHR -I/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/ThirdParty/ANGLE/src -I/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/ThirdParty/ANGLE/src/common/third_party/base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/Source/ThirdParty/ANGLE/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIC -Wno-cast-align -Wno-type-limits -Wno-undef -Wno-unused-parameter -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/matrix_utils.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/matrix_utils.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/matrix_utils.cpp.o -c /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/ThirdParty/ANGLE/src/common/matrix_utils.cpp
:info:build [671/4504] /usr/bin/clang++ -DANGLE_ENABLE_ESSL -DANGLE_ENABLE_GLSL -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DEGL_EGL_PROTOTYPES=0 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGL_GLES_PROTOTYPES=0 -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DLIBANGLE_IMPLEMENTATION -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -I/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/ThirdParty/ANGLE/include -I/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/ThirdParty/ANGLE/include/KHR -I/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/ThirdParty/ANGLE/src -I/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/ThirdParty/ANGLE/src/common/third_party/base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/Source/ThirdParty/ANGLE/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIC -Wno-cast-align -Wno-type-limits -Wno-undef -Wno-unused-parameter -MD -MT Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/string_utils.cpp.o -MF Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/string_utils.cpp.o.d -o Source/ThirdParty/ANGLE/CMakeFiles/ANGLE.dir/src/common/string_utils.cpp.o -c /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/ThirdParty/ANGLE/src/common/string_utils.cpp
:info:build ninja: build stopped: subcommand failed.
:info:build 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 
:info:build Exit code: 1
:error:build Failed to build webkit2-gtk: command execution failed
:debug:build Error code: CHILDSTATUS 3999 1

Attachments (3)

webkit2-gtk_sonoma_main.txt (948.3 KB) - added by barracuda156 12 months ago.
patch-deprecated-file-exists-rb32.diff (1.3 KB) - added by JDLH (Jim DeLaHunt) 6 months ago.
Diff file changing File.exists? invocations to File.exist?, for ruby 3.2 compatibility.
Portfile (10.9 KB) - added by JDLH (Jim DeLaHunt) 6 months ago.
webkit2-gtk Portfile, revision 8, applies patch-deprecated-file-exists-rb32.diff

Download all attachments as: .zip

Change History (15)

Changed 12 months ago by barracuda156

Attachment: webkit2-gtk_sonoma_main.txt added

comment:1 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

First Google search result says:

Starting in Ruby 3.2.0 the exists? (pluralized) alias for exist? seems to have been removed.

comment:2 in reply to:  1 ; Changed 12 months ago by barracuda156

Replying to ryandesign:

First Google search result says:

Starting in Ruby 3.2.0 the exists? (pluralized) alias for exist? seems to have been removed.

Perhaps 3.1.0 can be used instead?

comment:3 Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ShadSterling added
Summary: webkit2-gtk fails on Sonoma: config.rb: in `<top (required)>': undefined method `exists?' for File:Class (NoMethodError)webkit2-gtk @2.28.2: config.rb: in `<top (required)>': undefined method `exists?' for File:Class (NoMethodError)

Has duplicate #69323.

comment:4 in reply to:  2 ; Changed 9 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to barracuda156:

Perhaps 3.1.0 can be used instead?

Perhaps.

Better yet, make it compatible with ruby 3.2.0 and later by applying the upstream patch:

https://github.com/WebKit/WebKit/commit/b7ac5d0ccc7ca3ed6bf4f2d40fde60247ce87d3c

Better still, update the port to a newer version that already includes that fix.

comment:5 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:6 in reply to:  4 Changed 7 months ago by Dave-Allured (Dave Allured)

Better still, update the port to a newer version that already includes that fix.

Yup. Please see the update ticket #65492.

comment:7 Changed 6 months ago by JDLH (Jim DeLaHunt)

Cc: JDLH added

Changed 6 months ago by JDLH (Jim DeLaHunt)

Diff file changing File.exists? invocations to File.exist?, for ruby 3.2 compatibility.

Changed 6 months ago by JDLH (Jim DeLaHunt)

Attachment: Portfile added

webkit2-gtk Portfile, revision 8, applies patch-deprecated-file-exists-rb32.diff

comment:8 in reply to:  4 Changed 6 months ago by JDLH (Jim DeLaHunt)

Replying to ryandesign:

...make it compatible with ruby 3.2.0 and later by applying the upstream patch:

https://github.com/WebKit/WebKit/commit/b7ac5d0ccc7ca3ed6bf4f2d40fde60247ce87d3c

To amuse myself, I did this. It was a backport, actually. The above commit is for webkit 2.38.0, and MacPorts is on webkit 2.28.2. Thus I agree with this:

Better still, update the port to a newer version that already includes that fix.

12. But in case it helps others, I have attached a diff file with that patch, and a Portfile for webkit2-gtk @2.28.2_9 (revision 9) which applies that patch. It compiles on macOS Monterey 12.7.4 on aarch64.

comment:9 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

It's better to attach a diff of the portfile, rather than the entire new portfile, so that we can see what changes you are proposing. Better still, file a pull request. I see that you are proposing to increase the port's revision from 8 to 9; please don't increase the revision when only fixing a build failure, as documented in the guide.

comment:10 Changed 6 months ago by JDLH (Jim DeLaHunt)

Thank you for the guidance. I see the reason for not updating the revision number.

I intentionally did not make a PR, because I am hopeful that people won't need this workaround, it will instead be possible to update the version of the software instead.

comment:11 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Cc: kwolcott added

Has duplicate #71088.

comment:12 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 4c065ede94a5f90f1c59f7b81553561079bd5f52/macports-ports (master):

webkit2-gtk*: Fix build with ruby >= 3.2

Closes: #68705

Note: See TracTickets for help on using tickets.