Search
SailfishOS Open Build Service
>
Projects
>
home:kaltsi
:
tnhlbug
>
qt
> 0009-Hardcode-TMPDIR-to-var-tmp-BMC-13603.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0009-Hardcode-TMPDIR-to-var-tmp-BMC-13603.patch of Package qt
From 1e40f1dc14a17adbc98fb441f8e61155a6c187c9 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 09/29] Hardcode TMPDIR to /var/tmp (BMC#13603) 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. Author: Fathi Boudra <fathi.boudra@nokia.com> --- mkspecs/common/posix/qplatformdefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mkspecs/common/posix/qplatformdefs.h b/mkspecs/common/posix/qplatformdefs.h index f59f45d..d619d73 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.10.3