[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

XDG_RUNTIME_DIR points to non-existing path



Hey,

I am currently packaging kdepim for Debian and unfortunately test failing for 
many archs, because XDG_RUNTIME_DIR is pointing to non-existing path. If I 
understand the documentation from freedesktop [1] correctly, it is in the 
responsibility of the system to provide a valid path:

"XDG_RUNTIME_DIR defines the base directory relative to which user-specific 
non-essential runtime files and other file objects (such as sockets, named 
pipes, ...) should be stored. The directory MUST be owned by the user, and he 
MUST be the only one having read and write access to it. Its Unix access mode 
MUST be 0700.

The lifetime of the directory MUST be bound to the user being logged in. It 
MUST be created when the user first logs in and if the user fully logs out the 
directory MUST be removed. If the user logs in more than once he should get 
pointed to the same directory, and it is mandatory that the directory 
continues to exist from his first login to his last logout on the system, and 
not removed in between. Files in the directory MUST not survive reboot or a 
full logout/login cycle. "

Currently the tests failing for kdav [2]:
QWARN  : DavItemFetchJobTest::runSuccessfullTest() QStandardPaths: 
XDG_RUNTIME_DIR points to non-existing path '/run/user/2952', please create it 
with 0700 permissions.

Several archs show the same behaviour: arm64, armel,armhf, i386, mips, 
mips64el, mipsel, ppc64el and s390x. Maybe also amd64 but as I uploaded amd64 
packages and the buildds haven't build them. See [3] version 17.12.2-1. 

17.12.2-2 has a temporally fix that creates and removes a XDG_RUNTIME_DIR in 
the build path [4].

Just a site note - if I trigger the build process on a porterbox (barriere), 
it succeed, because the XDG_RUNTIME_DIR is not set and falls back to the 
default:

QWARN  : DavItemFetchJobTest::runSuccessfullTest() QStandardPaths: 
XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-hefee' 

hefee

[1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
[2]https://buildd.debian.org/status/fetch.php?
pkg=kdav&arch=arm64&ver=17.12.2-1&stamp=1521119310&raw=0
[3] https://buildd.debian.org/status/logs.php?pkg=kdav
[4] https://salsa.debian.org/qt-kde-team/kde/kdav/commit/
f5b3e788c9d690a6e05846297895d665b8cf0f01

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: