File 0001-Fix-compiling-on-Tumbleweed.patch of Package mingw64-libqt5-qtwebkit

From 9c3fc224eb4eb565668c75b556a61c91749f689f Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker@freenet.de>
Date: Thu, 27 Jun 2024 11:06:14 +0200
Subject: [PATCH] Fix compiling on Tumbleweed

Fixes build failure:
.../Source/JavaScriptCore/offlineasm/parser.rb:587:
  in `block in parseSequence':
    undefined method `=~' for an instance of Annotation (NoMethodError)
---
 Source/JavaScriptCore/offlineasm/parser.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Source/JavaScriptCore/offlineasm/parser.rb b/Source/JavaScriptCore/offlineasm/parser.rb
index b445112..cd1cffa 100644
--- a/Source/JavaScriptCore/offlineasm/parser.rb
+++ b/Source/JavaScriptCore/offlineasm/parser.rb
@@ -584,9 +584,7 @@ class Parser
         firstCodeOrigin = @tokens[@idx].codeOrigin
         list = []
         loop {
-            if (@idx == @tokens.length and not final) or (final and @tokens[@idx] =~ final)
-                break
-            elsif @tokens[@idx].is_a? Annotation
+            if @tokens[@idx].is_a? Annotation
                 # This is the only place where we can encounter a global
                 # annotation, and hence need to be able to distinguish between
                 # them.
@@ -600,6 +598,8 @@ class Parser
                 list << Instruction.new(codeOrigin, annotationOpcode, [], @tokens[@idx].string)
                 @annotation = nil
                 @idx += 2 # Consume the newline as well.
+            elsif (@idx == @tokens.length and not final) or (final and @tokens[@idx] =~ final)
+                break
             elsif @tokens[@idx] == "\n"
                 # ignore
                 @idx += 1
-- 
2.44.0

openSUSE Build Service is sponsored by