fix build error
This commit is contained in:
parent
c5f08d50ad
commit
5db41550a7
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
Name: qt5-%{qt_module}
|
Name: qt5-%{qt_module}
|
||||||
Version: 5.212.0
|
Version: 5.212.0
|
||||||
Release: 8
|
Release: 9
|
||||||
Summary: Qt5 - QtWebKit components
|
Summary: Qt5 - QtWebKit components
|
||||||
|
|
||||||
License: LGPL-2.0-or-later and BSD-2-Clause
|
License: LGPL-2.0-or-later and BSD-2-Clause
|
||||||
@ -30,6 +30,10 @@ Patch4: fix_build_with_glib2_68.patch
|
|||||||
Patch5: 0001-fix-TRUE-and-FALSE-was-not-declared.patch
|
Patch5: 0001-fix-TRUE-and-FALSE-was-not-declared.patch
|
||||||
Patch6: 0001-add-loongarch-support-for-qtwebkit.patch
|
Patch6: 0001-add-loongarch-support-for-qtwebkit.patch
|
||||||
|
|
||||||
|
# From https://github.com/WebKit/WebKit/commit/c7d19a492d97f9282a546831beb918e03315f6ef
|
||||||
|
# Ruby 3.2 removes Object#=~ completely
|
||||||
|
Patch7: webkit-offlineasm-warnings-ruby27.patch
|
||||||
|
Patch8: qtwebkit-cstdint.patch
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
@ -236,6 +240,9 @@ test -z "$(pkg-config --cflags Qt5WebKit | grep Qt5WebKit)"
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 02 2023 peijiankang <peijiankang@kylinos.cn> - 5.212.0-9
|
||||||
|
- fix build error
|
||||||
|
|
||||||
* Mon Dec 12 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 5.212.0-8
|
* Mon Dec 12 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 5.212.0-8
|
||||||
- add loongarch support for qt5-qtwebkit
|
- add loongarch support for qt5-qtwebkit
|
||||||
|
|
||||||
|
|||||||
11
qtwebkit-cstdint.patch
Normal file
11
qtwebkit-cstdint.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -up qtwebkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h.me qtwebkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h
|
||||||
|
--- qtwebkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h.me 2023-02-20 15:40:04.045911245 +0100
|
||||||
|
+++ qtwebkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h 2023-02-20 15:40:39.038549787 +0100
|
||||||
|
@@ -16,6 +16,7 @@
|
||||||
|
#include <algorithm>
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
+#include <cstdint>
|
||||||
|
|
||||||
|
namespace gl
|
||||||
|
{
|
||||||
46
webkit-offlineasm-warnings-ruby27.patch
Normal file
46
webkit-offlineasm-warnings-ruby27.patch
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
From c7d19a492d97f9282a546831beb918e03315f6ef Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adrian Perez de Castro <aperez@igalia.com>
|
||||||
|
Date: Wed, 15 Jan 2020 22:15:38 +0000
|
||||||
|
Subject: [PATCH] Offlineasm warnings with newer Ruby versions
|
||||||
|
https://bugs.webkit.org/show_bug.cgi?id=206233
|
||||||
|
|
||||||
|
Reviewed by Yusuke Suzuki.
|
||||||
|
|
||||||
|
Avoid a warning about using Object#=~ on Annotation instances, which
|
||||||
|
has been deprecated in Ruby 2.7.
|
||||||
|
|
||||||
|
* offlineasm/parser.rb: Swap checks to prevent applying the =~ operator
|
||||||
|
to Annotation instances, which do not define it.
|
||||||
|
|
||||||
|
|
||||||
|
Canonical link: https://commits.webkit.org/219400@main
|
||||||
|
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
|
||||||
|
---
|
||||||
|
Source/JavaScriptCore/ChangeLog | 13 +++++++++++++
|
||||||
|
Source/JavaScriptCore/offlineasm/parser.rb | 6 +++---
|
||||||
|
2 files changed, 16 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Source/JavaScriptCore/offlineasm/parser.rb b/Source/JavaScriptCore/offlineasm/parser.rb
|
||||||
|
index 791c81a9868d..f14c873e2dbd 100644
|
||||||
|
--- a/Source/JavaScriptCore/offlineasm/parser.rb
|
||||||
|
+++ b/Source/JavaScriptCore/offlineasm/parser.rb
|
||||||
|
@@ -628,9 +628,7 @@ def parseSequence(final, comment)
|
||||||
|
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.
|
||||||
|
@@ -644,6 +642,8 @@ def parseSequence(final, comment)
|
||||||
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user