From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/qt5-qtscript/qt5-qtscript.xibuild | 36 ++++++++++++++++++++++ .../qtscript-everywhere-src-5.10.1-sgidefs.patch | 11 +++++++ repo/qt5-qtscript/qtscript-s390x.patch | 32 +++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 repo/qt5-qtscript/qt5-qtscript.xibuild create mode 100644 repo/qt5-qtscript/qtscript-everywhere-src-5.10.1-sgidefs.patch create mode 100644 repo/qt5-qtscript/qtscript-s390x.patch (limited to 'repo/qt5-qtscript') diff --git a/repo/qt5-qtscript/qt5-qtscript.xibuild b/repo/qt5-qtscript/qt5-qtscript.xibuild new file mode 100644 index 0000000..00cd115 --- /dev/null +++ b/repo/qt5-qtscript/qt5-qtscript.xibuild @@ -0,0 +1,36 @@ +#!/bin/sh + +NAME="qt5-qtscript" +DESC="Qt5 - QtScript component" + +MAKEDEPS="qt5-qtbase linux-headers" + +PKG_VER=5.15.3_git20210316 +_commit="5cec94b2c1503f106f4ef4778d016410ebb86211" +SOURCE="https://invent.kde.org/qt/qt/qtscript/-/archive/$_commit/qtscript-$_commit.tar.gz" + +ADDITIONAL=" +qtscript-everywhere-src-5.10.1-sgidefs.patch +qtscript-s390x.patch +" + +prepare() { + apply_patches + mkdir .git +} + +build() { + qmake-qt5 + make +} + +package() { + make INSTALL_ROOT="$PKG_DEST" install + + find "$PKG_DEST/usr/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + + install -d "$PKG_DEST"/usr/share/licenses + ln -s /usr/share/licenses/qt5-base "$PKG_DEST"/usr/share/licenses/qt5-qtscript +} + diff --git a/repo/qt5-qtscript/qtscript-everywhere-src-5.10.1-sgidefs.patch b/repo/qt5-qtscript/qtscript-everywhere-src-5.10.1-sgidefs.patch new file mode 100644 index 0000000..01ef14d --- /dev/null +++ b/repo/qt5-qtscript/qtscript-everywhere-src-5.10.1-sgidefs.patch @@ -0,0 +1,11 @@ +--- qtscript-everywhere-src-5.10.1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h.orig ++++ qtscript-everywhere-src-5.10.1/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +@@ -389,7 +389,7 @@ + + #if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_)) + #define WTF_CPU_MIPS 1 +-#include ++#include + #if defined(__MIPSEB__) + #define WTF_CPU_BIG_ENDIAN 1 + #endif diff --git a/repo/qt5-qtscript/qtscript-s390x.patch b/repo/qt5-qtscript/qtscript-s390x.patch new file mode 100644 index 0000000..9c81f76 --- /dev/null +++ b/repo/qt5-qtscript/qtscript-s390x.patch @@ -0,0 +1,32 @@ +diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +index 96942c7..61b64a2 100644 +--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h ++++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h +@@ -226,6 +226,18 @@ + #define WTF_CPU_SPARC 1 + #endif + ++/* CPU(S390X) - S390 64-bit */ ++#if defined(__s390x__) ++#define WTF_CPU_S390X 1 ++#define WTF_CPU_BIG_ENDIAN 1 ++#endif ++ ++/* CPU(S390) - S390 32-bit */ ++#if defined(__s390__) && !defined(__s390x__) ++#define WTF_CPU_S390 1 ++#define WTF_CPU_BIG_ENDIAN 1 ++#endif ++ + /* CPU(X86) - i386 / x86 32-bit */ + #if defined(__i386__) \ + || defined(i386) \ +@@ -960,7 +972,7 @@ + #if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64) + #if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64) || CPU(RISCV64) + #define WTF_USE_JSVALUE64 1 +-#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32) ++#elif CPU(ARM) || CPU(PPC64) || CPU(RISCV32) || CPU(S390X) + #define WTF_USE_JSVALUE32 1 + #elif OS(WINDOWS) && COMPILER(MINGW) + /* Using JSVALUE32_64 causes padding/alignement issues for JITStubArg -- cgit v1.2.1