]> git.pld-linux.org Git - packages/gtk-webkit4.git/commitdiff
- fix building on x32 auto/th/gtk-webkit4-2.6.5-2
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 6 Mar 2015 22:57:30 +0000 (22:57 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 6 Mar 2015 22:57:30 +0000 (22:57 +0000)
- rel 2

gtk-webkit4.spec
x32.patch [new file with mode: 0644]

index 4df3226ce6321d29912b20303d630f2ddff9e62d..a5348b4eb1cde8b991317829cd527236954719c9 100644 (file)
@@ -13,11 +13,12 @@ Summary:    Port of WebKit embeddable web component to GTK+ 3
 Summary(pl.UTF-8):     Port osadzalnego komponentu WWW WebKit do GTK+ 3
 Name:          gtk-webkit4
 Version:       2.6.5
-Release:       1
+Release:       2
 License:       BSD-like
 Group:         X11/Libraries
 Source0:       http://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz
 # Source0-md5: 44addb5ccdace97642cb7656382293bb
+Patch0:                x32.patch
 URL:           http://webkitgtk.org/
 BuildRequires: /usr/bin/ld.gold
 BuildRequires: EGL-devel
@@ -131,6 +132,7 @@ Dokumentacja API WebKita.
 
 %prep
 %setup -q -n webkitgtk-%{version}
+%patch0 -p1
 
 %build
 install -d build
@@ -145,6 +147,9 @@ LDFLAGS="%{rpmldflags} -fuse-ld=gold"
        %{!?with_gtk2:-DENABLE_PLUGIN_PROCESS_GTK2=OFF} \
        %{?with_seccomp:-DENABLE_SECCOMP_FILTERS=ON} \
        %{?with_wayland:-DENABLE_WAYLAND_TARGET=ON} \
+%ifarch x32
+       -DENABLE_JIT=OFF \
+%endif
        -DENABLE_VIDEO=ON \
        -DENABLE_WEB_AUDIO=ON \
        -DENABLE_WEBGL=ON \
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..d47f7cd
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,29 @@
+From: Daniel Schepler <dschepler@gmail.com>
+Subject: Fix FTBFS in x32
+Bug-Debian: https://bugs.debian.org/700795
+Index: webkitgtk/Source/WTF/wtf/Platform.h
+===================================================================
+--- webkitgtk.orig/Source/WTF/wtf/Platform.h
++++ webkitgtk/Source/WTF/wtf/Platform.h
+@@ -179,8 +179,12 @@
+ /* CPU(X86_64) - AMD64 / Intel64 / x86_64 64-bit */
+ #if   defined(__x86_64__) \
+     || defined(_M_X64)
++#ifdef __ILP32__
++#define WTF_CPU_X86_64_32 1
++#else
+ #define WTF_CPU_X86_64 1
+ #endif
++#endif
+ /* CPU(ARM64) - Apple */
+ #if defined(__arm64__) && defined(__APPLE__)
+@@ -826,7 +826,7 @@
+ #define ENABLE_REGEXP_TRACING 0
+ /* Yet Another Regex Runtime - turned on by default for JIT enabled ports. */
+-#if !defined(ENABLE_YARR_JIT)
++#if !defined(ENABLE_YARR_JIT) && ENABLE(JIT)
+ #define ENABLE_YARR_JIT 1
+ /* Setting this flag compares JIT results with interpreter results. */
This page took 0.040594 seconds and 4 git commands to generate.