Accepting request 137345 from Base:System
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/137345 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/udisks2?expand=0&rev=7
This commit is contained in:
commit
873ff7eba7
49
systemd-dynamic-check.diff
Normal file
49
systemd-dynamic-check.diff
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
commit ce5a67127223e99ffdbf9cb697537c689e2fe364
|
||||||
|
Author: Vincent Untz <vuntz@gnome.org>
|
||||||
|
Date: Tue Sep 25 10:55:31 2012 +0200
|
||||||
|
|
||||||
|
Fix same seat detection if built with systemd, but not booted with it
|
||||||
|
|
||||||
|
If we haven't booted with systemd, then we can only assume it's always
|
||||||
|
the same seat.
|
||||||
|
|
||||||
|
Based on patch by Takashi Iwai <tiwai@suse.com>.
|
||||||
|
|
||||||
|
https://bugzilla.novell.com/show_bug.cgi?id=769570
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 994fd1a..93c715e 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -145,7 +145,7 @@ AC_SUBST(LIBATASMART_CFLAGS)
|
||||||
|
AC_SUBST(LIBATASMART_LIBS)
|
||||||
|
|
||||||
|
PKG_CHECK_MODULES(LIBSYSTEMD_LOGIN,
|
||||||
|
- [libsystemd-login >= 44],
|
||||||
|
+ [libsystemd-login >= 44 libsystemd-daemon],
|
||||||
|
have_libsystemd_login=yes,
|
||||||
|
have_libsystemd_login=no)
|
||||||
|
AM_CONDITIONAL(HAVE_LIBSYSTEMD_LOGIN, test x$have_libsystemd_login = xyes)
|
||||||
|
diff --git a/src/udisksdaemonutil.c b/src/udisksdaemonutil.c
|
||||||
|
index ef925f5..69cd8a5 100644
|
||||||
|
--- a/src/udisksdaemonutil.c
|
||||||
|
+++ b/src/udisksdaemonutil.c
|
||||||
|
@@ -42,6 +42,7 @@
|
||||||
|
#include "udiskslinuxdriveobject.h"
|
||||||
|
|
||||||
|
#if defined(HAVE_LIBSYSTEMD_LOGIN)
|
||||||
|
+#include <systemd/sd-daemon.h>
|
||||||
|
#include <systemd/sd-login.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@@ -1021,6 +1022,10 @@ udisks_daemon_util_on_same_seat (UDisksDaemon *daemon,
|
||||||
|
UDisksObject *drive_object = NULL;
|
||||||
|
UDisksDrive *drive = NULL;
|
||||||
|
|
||||||
|
+ /* if we haven't booted with systemd, assume it's always the same seat */
|
||||||
|
+ if (sd_booted () <= 0)
|
||||||
|
+ return TRUE;
|
||||||
|
+
|
||||||
|
if (UDISKS_IS_LINUX_BLOCK_OBJECT (object))
|
||||||
|
{
|
||||||
|
UDisksLinuxBlockObject *linux_block_object;
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 25 09:14:34 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Update systemd-dynamic-check.diff with patch sent upstream.
|
||||||
|
- Add gnome-common BuildRequires and call to gnome-autogen.sh, as
|
||||||
|
needed by the patch now.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 3 15:39:33 CEST 2012 - tiwai@suse.de
|
||||||
|
|
||||||
|
- Add systemd-dynamic-check.diff: add a check of running systemd
|
||||||
|
(bnc#769570)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 26 18:18:09 UTC 2012 - gber@opensuse.org
|
Tue Jun 26 18:18:09 UTC 2012 - gber@opensuse.org
|
||||||
|
|
||||||
|
@ -27,8 +27,12 @@ Url: http://www.freedesktop.org/wiki/Software/udisks
|
|||||||
Source: http://udisks.freedesktop.org/releases/%{_name}-%{version}.tar.bz2
|
Source: http://udisks.freedesktop.org/releases/%{_name}-%{version}.tar.bz2
|
||||||
# PATCH-FIX-UPSTREAM udisks-hide-lvm-raid-partitions.patch fdo#51439 bnc#737038 gber@opensuse.org -- Hide partitions marked as containing LVM and RAID. This is only useful for encrypted partitions.
|
# PATCH-FIX-UPSTREAM udisks-hide-lvm-raid-partitions.patch fdo#51439 bnc#737038 gber@opensuse.org -- Hide partitions marked as containing LVM and RAID. This is only useful for encrypted partitions.
|
||||||
Patch0: udisks-hide-lvm-raid-partitions.patch
|
Patch0: udisks-hide-lvm-raid-partitions.patch
|
||||||
|
# PATCH-FIX-UPSTREAM systemd-dynamic-check.diff fdo#55309 bnc#769570 tiwai@suse.de -- Add a check of running systemd so that it still works with sysvinit
|
||||||
|
Patch1: systemd-dynamic-check.diff
|
||||||
# Needed to build the man pages
|
# Needed to build the man pages
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
|
# needed for patch1
|
||||||
|
BuildRequires: gnome-common
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
@ -92,9 +96,12 @@ for managing disks and storage devices.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export V=1
|
export V=1
|
||||||
|
# needed for patch1
|
||||||
|
NOCONFIGURE=1 gnome-autogen.sh
|
||||||
%configure \
|
%configure \
|
||||||
--disable-static
|
--disable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user