disable unnamed temporary file to fix QTemporaryFile issue (#308)
This commit is contained in:
parent
75aa831271
commit
6fc9d963d5
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A cross-platform application and UI framework"
|
||||
TERMUX_PKG_LICENSE="LGPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
|
||||
TERMUX_PKG_VERSION=5.12.10
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SRCURL="https://download.qt.io/official_releases/qt/5.12/${TERMUX_PKG_VERSION}/submodules/qtbase-everywhere-src-${TERMUX_PKG_VERSION}.tar.xz"
|
||||
TERMUX_PKG_SHA256=8088f174e6d28e779516c083b6087b6a9e3c8322b4bc161fd1b54195e3c86940
|
||||
TERMUX_PKG_DEPENDS="dbus, harfbuzz, libandroid-shmem, libc++, libice, libicu, libjpeg-turbo, libpng, libsm, libuuid, libx11, libxcb, libxi, libxkbcommon, openssl, pcre2, ttf-dejavu, freetype, xcb-util-image, xcb-util-keysyms, xcb-util-renderutil, xcb-util-wm, zlib"
|
||||
@ -166,12 +166,17 @@ termux_step_make_install() {
|
||||
##
|
||||
#######################################################
|
||||
|
||||
## Drop QMAKE_PRL_BUILD_DIR because reference the build dir.
|
||||
find "${TERMUX_PREFIX}/lib" -type f -name '*.prl' \
|
||||
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' "{}" \;
|
||||
# Limit the scope, otherwise it'll touch other Qt files in a dirty host env
|
||||
for i in Bootstrap Concurrent Core DBus DeviceDiscoverySupport EdidSupport EventDispatcherSupport FbSupport FontDatabaseSupport Gui InputSupport Network PrintSupport ServiceSupport Sql Test ThemeSupport Widget XcbQpa XkbCommonSupport Xml Zlib; do
|
||||
## Drop QMAKE_PRL_BUILD_DIR because reference the build dir.
|
||||
find "${TERMUX_PREFIX}/lib" -type f -name "libQt5${i}.prl" \
|
||||
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' "{}" \;
|
||||
done
|
||||
unset i
|
||||
|
||||
## Remove *.la files.
|
||||
find "${TERMUX_PREFIX}/lib" -iname \*.la -delete
|
||||
find "${TERMUX_PREFIX}/opt/qt/cross/lib" -iname \*.la -delete
|
||||
|
||||
## Set qt spec path suitable for target.
|
||||
sed -i \
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- src/src/corelib/io/qtemporaryfile_p.h 2021-05-09 10:40:38.972403873 +0100
|
||||
+++ src.mod/src/corelib/io/qtemporaryfile_p.h 2021-05-09 10:40:32.520423082 +0100
|
||||
@@ -58,7 +58,7 @@
|
||||
#include "private/qfile_p.h"
|
||||
#include "qtemporaryfile.h"
|
||||
|
||||
-#if defined(Q_OS_LINUX) && QT_CONFIG(linkat)
|
||||
+#if defined(Q_OS_LINUX) && !defined(__ANDROID__) && QT_CONFIG(linkat)
|
||||
# include <fcntl.h>
|
||||
# ifdef O_TMPFILE
|
||||
// some early libc support had the wrong values for O_TMPFILE
|
Loading…
Reference in New Issue
Block a user