udisks: added patch to use /tmp for mkfs helper.
This commit is contained in:
parent
75dfa866a6
commit
669656b0fa
|
@ -0,0 +1,15 @@
|
|||
# Description: Daemon does not create /var/run/udisks/, so mkfs jobs fail.
|
||||
# Just create the directory in /tmp, this is what /tmp is for, after all.
|
||||
# Upstream: https://bugs.freedesktop.org/show_bug.cgi?id=24265
|
||||
|
||||
--- src/helpers/job-mkfs.c 2010-12-05 23:08:54.587881164 +0100
|
||||
+++ src/helpers/job-mkfs.c 2010-12-05 23:09:12.399889312 +0100
|
||||
@@ -546,7 +546,7 @@
|
||||
/* take ownership of the device if requested */
|
||||
if (take_ownership_uid != 0 || take_ownership_gid != 0)
|
||||
{
|
||||
- char dir[256] = PACKAGE_LOCALSTATE_DIR "/run/udisks/job-mkfs-XXXXXX";
|
||||
+ char dir[256] = "/tmp/job-mkfs-XXXXXX";
|
||||
|
||||
if (mkdtemp (dir) == NULL)
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'udisks'
|
||||
pkgname=udisks
|
||||
version=1.0.3
|
||||
revision=1
|
||||
revision=2
|
||||
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--disable-static --localstatedir=/var --enable-lvm2"
|
||||
|
@ -20,8 +20,6 @@ long_desc="
|
|||
The actions that a user can perform using udisks are restricted using
|
||||
PolicyKit."
|
||||
|
||||
keep_empty_dirs=yes
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run glib
|
||||
Add_dependency run device-mapper
|
||||
|
|
Loading…
Reference in New Issue