mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
extra/webkit2gtk: fix
This commit is contained in:
parent
a35a77cdaa
commit
0df8989c29
2 changed files with 31 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - do not use LLINT assembly for v5/v6
|
# - do not use LLINT assembly for v5/v6
|
||||||
|
# - patch from Fedora to fix ARM FTBFS
|
||||||
|
|
||||||
highmem=1
|
highmem=1
|
||||||
|
|
||||||
|
@ -20,15 +21,18 @@ optdepends=('gtk2: Netscape plugin support'
|
||||||
'gst-plugins-base: free media decoding'
|
'gst-plugins-base: free media decoding'
|
||||||
'gst-plugins-good: media decoding'
|
'gst-plugins-good: media decoding'
|
||||||
'gst-libav: nonfree media decoding')
|
'gst-libav: nonfree media decoding')
|
||||||
source=(https://webkitgtk.org/releases/webkitgtk-${pkgver}.tar.xz{,.asc})
|
source=(https://webkitgtk.org/releases/webkitgtk-${pkgver}.tar.xz{,.asc}
|
||||||
|
webkit-jsc-use-ternary-operator.patch)
|
||||||
sha256sums=('fa42b54a98831405c8a3e7f40371eec3f0bd5cdbb124813a5e329e7a9f8c6f2a'
|
sha256sums=('fa42b54a98831405c8a3e7f40371eec3f0bd5cdbb124813a5e329e7a9f8c6f2a'
|
||||||
'SKIP')
|
'SKIP'
|
||||||
|
'f96413b556f66bd456e21e272d3cee18cb3e98a69953d76d7137a1c38b6b517d')
|
||||||
validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3')
|
validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir build
|
mkdir build
|
||||||
cd webkitgtk-$pkgver
|
cd webkitgtk-$pkgver
|
||||||
sed -i '1s/python$/&2/' Tools/gtk/generate-gtkdoc
|
sed -i '1s/python$/&2/' Tools/gtk/generate-gtkdoc
|
||||||
|
patch -p1 -i ../webkit-jsc-use-ternary-operator.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
25
extra/webkit2gtk/webkit-jsc-use-ternary-operator.patch
Normal file
25
extra/webkit2gtk/webkit-jsc-use-ternary-operator.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
From 9154ea477728797b9d33b32fb36940485f6927fa Mon Sep 17 00:00:00 2001
|
||||||
|
From: rpm-build <rpm-build>
|
||||||
|
Date: Thu, 30 Aug 2018 07:04:58 +0200
|
||||||
|
Subject: [PATCH] Use ternary operator instead of std::max
|
||||||
|
|
||||||
|
---
|
||||||
|
Source/JavaScriptCore/heap/RegisterState.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Source/JavaScriptCore/heap/RegisterState.h b/Source/JavaScriptCore/heap/RegisterState.h
|
||||||
|
index baaef4c7..b3037dba 100644
|
||||||
|
--- a/Source/JavaScriptCore/heap/RegisterState.h
|
||||||
|
+++ b/Source/JavaScriptCore/heap/RegisterState.h
|
||||||
|
@@ -166,7 +166,7 @@ using RegisterState = jmp_buf;
|
||||||
|
#pragma warning(disable: 4611)
|
||||||
|
#endif
|
||||||
|
#define ALLOCATE_AND_GET_REGISTER_STATE(registers) \
|
||||||
|
- alignas(std::max(alignof(void*), alignof(RegisterState))) RegisterState registers; \
|
||||||
|
+ alignas(alignof(void*) > alignof(RegisterState) ? alignof(void*) : alignof(RegisterState)) RegisterState registers; \
|
||||||
|
setjmp(registers)
|
||||||
|
|
||||||
|
#if COMPILER(MSVC)
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
Loading…
Reference in a new issue