diff --git a/udisks-2.1.1-firewire-ident.patch b/udisks-2.1.1-firewire-ident.patch new file mode 100644 index 0000000..9df3ad4 --- /dev/null +++ b/udisks-2.1.1-firewire-ident.patch @@ -0,0 +1,26 @@ +From b841e30a98459816dfc49a735d3db4355a88edcd Mon Sep 17 00:00:00 2001 +From: David Zeuthen +Date: Tue, 19 Mar 2013 04:31:40 +0000 +Subject: Properly identify firewire devices as non-system devices + +This was reported in bug 62077. + +https://bugs.freedesktop.org/show_bug.cgi?id=62077 + +Signed-off-by: David Zeuthen +--- +diff --git a/src/udiskslinuxblock.c b/src/udiskslinuxblock.c +index a1781cf..d619850 100644 +--- a/src/udiskslinuxblock.c ++++ b/src/udiskslinuxblock.c +@@ -354,7 +354,7 @@ update_hints (UDisksLinuxBlock *block, + connection_bus = udisks_drive_get_connection_bus (drive); + removable = udisks_drive_get_media_removable (drive); + if (removable || +- (g_strcmp0 (connection_bus, "usb") == 0 || g_strcmp0 (connection_bus, "firewire") == 0) || ++ (g_strcmp0 (connection_bus, "usb") == 0 || g_strcmp0 (connection_bus, "ieee1394") == 0) || + (g_str_has_prefix (device_file, "/dev/mmcblk") || g_str_has_prefix (device_file, "/dev/mspblk"))) + { + hint_system = FALSE; +-- +cgit v0.9.0.2-2-gbebe diff --git a/udisks2.spec b/udisks2.spec index 7f69054..8faaf7d 100644 --- a/udisks2.spec +++ b/udisks2.spec @@ -8,7 +8,7 @@ Summary: Disk Manager Name: udisks2 Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://www.freedesktop.org/wiki/Software/udisks @@ -63,6 +63,12 @@ Requires: ntfsprogs # for /proc/self/mountinfo, only available in 2.6.26 or higher Conflicts: kernel < 2.6.26 + +# Cannot mount external firewire hard drive or usb thumb drive as normal user, root required +# https://bugzilla.redhat.com/show_bug.cgi?id=909010 +Patch0: udisks-2.1.1-firewire-ident.patch + + %description udisks provides a daemon, D-Bus API and command line tools for managing disks and storage devices. This package is for the udisks 2.x @@ -92,6 +98,7 @@ daemon. This package is for the udisks 2.x series. %prep %setup -q -n udisks-%{version} +%patch0 -p1 -b .firewire-ident %build # we can't use _hardened_build here, see @@ -155,6 +162,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a # Note: please don't forget the %{?dist} in the changelog. Thanks %changelog +* Thu Mar 28 2013 Tomas Bzatek - 2.1.0-2%{?dist} +- Fix firewire drives identification (#909010) + * Wed Mar 20 2013 Kalev Lember - 2.1.0-1 - Update to 2.1.0