From 669656b0fa1b0f677a273a1d38580e6b7570d273 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 29 Jul 2011 22:46:20 +0200 Subject: [PATCH] udisks: added patch to use /tmp for mkfs helper. --- srcpkgs/udisks/patches/01-mkfs-tempdir.patch | 15 +++++++++++++++ srcpkgs/udisks/template | 4 +--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/udisks/patches/01-mkfs-tempdir.patch diff --git a/srcpkgs/udisks/patches/01-mkfs-tempdir.patch b/srcpkgs/udisks/patches/01-mkfs-tempdir.patch new file mode 100644 index 0000000000..b72644bc8f --- /dev/null +++ b/srcpkgs/udisks/patches/01-mkfs-tempdir.patch @@ -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) + { diff --git a/srcpkgs/udisks/template b/srcpkgs/udisks/template index bec8569749..f7401070ec 100644 --- a/srcpkgs/udisks/template +++ b/srcpkgs/udisks/template @@ -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