From 62e86dba8de31177e5403a1ee3a528b710abff9b Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Mon, 10 Aug 2015 12:28:06 +0000
Subject: udisks: rebuild

---
 abs/core/udisks/PKGBUILD | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/abs/core/udisks/PKGBUILD b/abs/core/udisks/PKGBUILD
index 8e2a311..68d728e 100644
--- a/abs/core/udisks/PKGBUILD
+++ b/abs/core/udisks/PKGBUILD
@@ -3,18 +3,25 @@
 
 pkgname=udisks
 pkgver=1.0.5
-pkgrel=1
+pkgrel=2
 pkgdesc="Disk Management Service"
 arch=('i686' 'x86_64')
 url="http://www.freedesktop.org/wiki/Software/udisks"
 license=('GPL')
-depends=('systemd' 'util-linux' 'sg3_utils' 'glib2' 'dbus-glib' 'polkit' 'parted'
-         'device-mapper' 'libatasmart' 'lsof')
+depends=('systemd' 'util-linux' 'sg3_utils' 'glib2' 'dbus-glib' 'polkit'
+         'parted' 'device-mapper' 'libatasmart' 'lsof' 'libgudev')
 makedepends=('intltool' 'docbook-xsl')
 source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
         udisks.service
         drop-pci-db.patch)
 
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # https://bugs.freedesktop.org/show_bug.cgi?id=90778
+  sed -i '1i #include <sys/stat.h>' src/helpers/job-drive-detach.c
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
-- 
cgit v0.12

