Search
SailfishOS Open Build Service
>
Projects
>
home:sbinner
:
qt481
>
qt
> qt-4.8.0-Hardcode-TMPDIR-to-var-tmp-BMC-13603.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qt-4.8.0-Hardcode-TMPDIR-to-var-tmp-BMC-13603.patch of Package qt
From 4221b522daacb3fc0921f1504439de592136bdc7 Mon Sep 17 00:00:00 2001 From: Robin Burchell <robin.burchell@collabora.com> Date: Sun, 13 Nov 2011 12:41:07 +0100 Subject: [PATCH] Hardcode TMPDIR to /var/tmp (BMC#13603) MPDIR sometimes points to /tmp and sometimes to /var/tmp To guarantee native platform key generation for QSharedMemory and friends, we must hard code the temp path to /var/tmp here. Author: Fathi Boudra <fathi.boudra@nokia.com> --- mkspecs/common/posix/qplatformdefs.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/mkspecs/common/posix/qplatformdefs.h b/mkspecs/common/posix/qplatformdefs.h index 6fac11b..cb93950 100644 --- a/mkspecs/common/posix/qplatformdefs.h +++ b/mkspecs/common/posix/qplatformdefs.h @@ -50,6 +50,11 @@ #endif #include <sys/stat.h> +// TMPDIR sometimes points to /tmp and sometimes to /var/tmp +// To guarantee native platform key generation for QSharedMemory and friends, +// we must hard code the temp path to /var/tmp here. +#define QT_UNIX_TEMP_PATH_OVERRIDE "/var/tmp" + #if defined(QT_USE_XOPEN_LFS_EXTENSIONS) && defined(QT_LARGEFILE_SUPPORT) #define QT_STATBUF struct stat64 -- 1.7.7.4