Skip to contentSkip to conversation

webkitgtk: Fix build for armv5

PATCH New Khem Raj 1 participant 2 messages May 18, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 webkitgtk: Fix build for armv5

Detect atomics during configure

---
 .../detect-atomics-during-configure.patch          | 34 ++++++++++++++++++++++
 meta/recipes-sato/webkit/webkitgtk_2.16.1.bb       |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch
meta/recipes-sato/webkit/webkitgtk/detect-atomics-during-configure.patch new file +34 -0
new file mode 100644
index 0000000000..12836f28f2
@@ -0,0 +1,34 @@
+Taken from
+https://bugs.webkit.org/show_bug.cgi?id=161900
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <[email protected]>
+
+Index: webkitgtk-2.16.1/Source/WTF/wtf/CMakeLists.txt
+===================================================================
+--- webkitgtk-2.16.1.orig/Source/WTF/wtf/CMakeLists.txt
++++ webkitgtk-2.16.1/Source/WTF/wtf/CMakeLists.txt
+@@ -182,7 +182,6 @@ set(WTF_HEADERS
+ 
+ set(WTF_SOURCES
+     Assertions.cpp
+-    Atomics.cpp
+     AutomaticThread.cpp
+     BitVector.cpp
+     ClockType.cpp
+@@ -301,6 +300,15 @@ if (NOT USE_SYSTEM_MALLOC)
+     list(APPEND WTF_LIBRARIES bmalloc)
+ endif ()
+ 
++file(WRITE ${CMAKE_BINARY_DIR}/test_atomics.cpp
++     "int main(void)\n"
++     "{ long long x = 1; return (int) __sync_add_and_fetch_8(&x, 1); }\n")
++try_compile(ATOMICS_BUILD_SUCCEEDED ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/test_atomics.cpp)
++if (NOT ATOMICS_BUILD_SUCCEEDED)
++    list(APPEND WTF_SOURCES Atomics.cpp)
++endif ()
++file(REMOVE ${CMAKE_BINARY_DIR}/test_atomics.cpp)
++
+ list(APPEND WTF_SOURCES
+     unicode/icu/CollatorICU.cpp
+ )
meta/recipes-sato/webkit/webkitgtk_2.16.1.bb +1 -0
index 0931a50636..a52d93cfbe 100644
@@ -20,6 +20,7 @@ SRC_URI = "http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
            file://x32_support.patch \
            file://cross-compile.patch \
            file://gcc7.patch \
+           file://detect-atomics-during-configure.patch \
            "
 SRC_URI[md5sum] = "d3bcf995a667fd9febb9ab991acf0ca7"
 SRC_URI[sha256sum] = "eb92383232328ce655b703c64370ed3795662479719ad1b4a869ed46769d2945"
Signature · 1 line
2.13.0
author
#1 lore raw

PATCH 2/2 xkeyboard-config: Enable nls support explicitly

Helps compile when distros disable NLS

---
 meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-graphics/xorg-lib/xkeyboard-config_2.20.bb +2 -0
index d00904df21..d308e9b07b 100644
@@ -19,6 +19,8 @@ SRC_URI[sha256sum] = "d1bfc72553c4e3ef1cd6f13eec0488cf940498b612ab8a0b362e7090c9
 SECTION = "x11/libs"
 DEPENDS = "intltool-native virtual/gettext util-macros libxslt-native"
 
+USE_NLS = "yes"
+
 EXTRA_OECONF = "--with-xkb-rules-symlink=xorg --disable-runtime-deps"
 
 FILES_${PN} += "${datadir}/X11/xkb"
Signature · 1 line
2.13.0