[Bug 271562] www/qt5-webkit: Port fails to build with Ruby 3.2.x
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 May 2023 12:29:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271562 Bug ID: 271562 Summary: www/qt5-webkit: Port fails to build with Ruby 3.2.x Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: jimp@netgate.com Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) Created attachment 242325 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242325&action=edit Patch to fix qt5-webkit build with Ruby 3.x www/qt5-webkit fails to build with Ruby 3.2.2 for me (and almost certainly others), since one of its files uses deprecated Ruby syntax. Searching on the error led me to https://www.linuxquestions.org/questions/slackware-14/regression-on-current-with-qt5-webkit-4175720296/ and applying that patch locally fixes the build. Here is the build error: FAILED: DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h /usr/ports/www/qt5-webkit/work/.build/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h cd /usr/ports/www/qt5-webkit/work/.build/Source/JavaScriptCore && /usr/local/bin/ruby /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb -I/usr/ports/www/qt5-webkit/work/.build/DerivedSources/JavaScriptCore/ /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /usr/ports/www/qt5-webkit/work/.build/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:587:in `block in parseSequence': undefined method `=~' for #<Annotation:0x0000000806bf2468 @codeOrigin=#<CodeOrigin:0x0000000806bf2530 @sourceFile=#<SourceFile:0x0000000806c1fb70 @name=#<Pathname:/usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm>, @fileNumber=3>, @lineNumber=511>, @type=:local, @string="Check if there are some unaligned slots we can use"> (NoMethodError) from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `loop' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `parseSequence' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:654:in `block in parseSequence' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `loop' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `parseSequence' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:814:in `parseData' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:818:in `parse' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:780:in `block in parseSequence' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `loop' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `parseSequence' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:625:in `block in parseSequence' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `loop' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:586:in `parseSequence' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:814:in `parseData' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/parser.rb:818:in `parse' from /usr/ports/www/qt5-webkit/work/qtwebkit-5.212.0-alpha4/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb:68:in `<main>' Using the attached patch as www/qt5-webkit/files/patch-Source_JavaScriptCore_offlineasm_parser.rb allows the port to build successfully -- You are receiving this mail because: You are the assignee for the bug.