From 9022ec3c632d89cd0985a9815688bfb15629b58c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 28 Oct 2013 12:00:05 +0100 Subject: [PATCH] udisks: various fixes from Arch. --- srcpkgs/udisks/files/udisks.service | 2 -- srcpkgs/udisks/patches/drop-pci-db.patch | 28 ++++++++++++++++++++++++ srcpkgs/udisks/template | 9 +++++--- 3 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/udisks/patches/drop-pci-db.patch diff --git a/srcpkgs/udisks/files/udisks.service b/srcpkgs/udisks/files/udisks.service index 9ff28b8f596..4f1792edcd9 100644 --- a/srcpkgs/udisks/files/udisks.service +++ b/srcpkgs/udisks/files/udisks.service @@ -1,12 +1,10 @@ [Unit] Description=Disk Manager -After=syslog.target [Service] Type=dbus BusName=org.freedesktop.UDisks ExecStart=/usr/libexec/udisks-daemon -StandardOutput=syslog [Install] WantedBy=graphical.target diff --git a/srcpkgs/udisks/patches/drop-pci-db.patch b/srcpkgs/udisks/patches/drop-pci-db.patch new file mode 100644 index 00000000000..3c3d4d0b488 --- /dev/null +++ b/srcpkgs/udisks/patches/drop-pci-db.patch @@ -0,0 +1,28 @@ +commit c73b5ab54378ec6d7df9948c46ce87f98587af9a +Author: Tom Gundersen +Date: 2 days ago + + udev: remove redundant call to deprecated pci-db + + The binary is no longer shipped with systemd/udev. The functionality + is taken over by a builtin, which is ran for all devices, rendering + this rule superfluous. + + Cc: Jan de Groot + Signed-off-by: Tom Gundersen + +diff --git a/data/80-udisks.rules b/data/80-udisks.rules +index d1c8c5d..4bf2b37 100644 +--- data/80-udisks.rules ++++ data/80-udisks.rules +@@ -1,10 +1,6 @@ + # Do not edit this file, it will be overwritten on updates + # + +-# import names for PCI storage controllers +-# +-SUBSYSTEM=="pci", ACTION=="add|change", ENV{ID_MODEL_FROM_DATABASE}=="", ATTR{class}=="0x01*", IMPORT{program}="pci-db %p" +- + # Set eSATA port type for known eSATA CardBus adapters - first we want to ensure + # the device is on a cardbus controller (upper PCI device) - then we check + # vid/pid (lower PCI device) diff --git a/srcpkgs/udisks/template b/srcpkgs/udisks/template index 645b9325c1c..3fe76c4b179 100644 --- a/srcpkgs/udisks/template +++ b/srcpkgs/udisks/template @@ -1,11 +1,11 @@ # Template file for 'udisks' pkgname=udisks version=1.0.4 -revision=11 +revision=12 build_style=gnu-configure configure_args="--disable-static --enable-lvm2" -hostmakedepends="pkg-config intltool libxslt docbook-xsl" -makedepends="glib-devel device-mapper-devel +hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel" +makedepends="libglib-devel device-mapper-devel liblvm2app-devel libparted-devel libatasmart-devel polkit-devel dbus-glib-devel libgudev-devel>=183 sg3_utils-devel" short_desc="Disk Management Service" @@ -35,6 +35,9 @@ post_install() { vmkdir usr/share/bash-completion/completions mv ${DESTDIR}/etc/profile.d/udisks-bash-completion.sh \ ${DESTDIR}/usr/share/bash-completion/completions/udisks + + echo "SystemdService=udisks.service" \ + >> ${DESTDIR}/usr/share/dbus-1/system-services/org.freedesktop.UDisks.service } udisks_package() {