summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/udisks
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/udisks')
-rw-r--r--meta-oe/recipes-support/udisks/udisks/0001-fix-build-with-newer-glibc-versions.patch29
-rw-r--r--meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch112
-rw-r--r--meta-oe/recipes-support/udisks/udisks/udisks-1.0.5-fix-service-file.patch33
-rw-r--r--meta-oe/recipes-support/udisks/udisks_1.0.5.bb (renamed from meta-oe/recipes-support/udisks/udisks_1.0.4.bb)20
4 files changed, 72 insertions, 122 deletions
diff --git a/meta-oe/recipes-support/udisks/udisks/0001-fix-build-with-newer-glibc-versions.patch b/meta-oe/recipes-support/udisks/udisks/0001-fix-build-with-newer-glibc-versions.patch
new file mode 100644
index 000000000..520655a21
--- /dev/null
+++ b/meta-oe/recipes-support/udisks/udisks/0001-fix-build-with-newer-glibc-versions.patch
@@ -0,0 +1,29 @@
1From 9829152b12a8924d2e091a00133ed1a3a7ba75c0 Mon Sep 17 00:00:00 2001
2From: Alexandre Rostovtsev <tetromino@gentoo.org>
3Date: Fri, 29 May 2015 21:09:39 -0400
4Subject: [PATCH] fix build with newer glibc versions
5
6https://bugs.freedesktop.org/show_bug.cgi?id=90778
7
8Upstream-Status: Applied [1]
9
10[1] http://cgit.freedesktop.org/udisks/commit/?h=udisks1&id=9829152b12a8924d2e091a00133ed1a3a7ba75c0
11---
12 src/helpers/job-drive-detach.c | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/src/helpers/job-drive-detach.c b/src/helpers/job-drive-detach.c
16index eeafcab..d122a1f 100644
17--- a/src/helpers/job-drive-detach.c
18+++ b/src/helpers/job-drive-detach.c
19@@ -18,6 +18,7 @@
20 *
21 */
22
23+#include <sys/stat.h>
24 #include <stdio.h>
25 #include <string.h>
26 #include <errno.h>
27--
282.1.0
29
diff --git a/meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch b/meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch
deleted file mode 100644
index 29df8a4da..000000000
--- a/meta-oe/recipes-support/udisks/udisks/add-systemd-support.patch
+++ /dev/null
@@ -1,112 +0,0 @@
1From 7a485d491697906b445020dfcb37fe91806d7134 Mon Sep 17 00:00:00 2001
2From: Lennart Poettering <lennart@poettering.net>
3Date: Thu, 22 Jul 2010 02:20:22 +0200
4Subject: [PATCH] systemd: install systemd unit files
5Upstream-Status: ?
6Based on: https://www.libreoffice.org/bugzilla/show_bug.cgi?id=29205
7---
8 Makefile.am | 5 ++++-
9 configure.ac | 9 +++++++++
10 data/.gitignore | 1 +
11 data/Makefile.am | 11 ++++++++++-
12 data/org.freedesktop.UDisks.service.in | 2 +-
13 data/udisks-daemon.service.in | 12 ++++++++++++
14 6 files changed, 37 insertions(+), 3 deletions(-)
15 create mode 100644 data/udisks-daemon.service.in
16
17diff --git a/Makefile.am b/Makefile.am
18index 588f05d..c3aaeea 100644
19--- a/Makefile.am
20+++ b/Makefile.am
21@@ -24,7 +24,10 @@ EXTRA_DIST = \
22 ChangeLog
23
24 # xsltproc barfs on 'make distcheck'; disable for now
25-DISTCHECK_CONFIGURE_FLAGS=--disable-man-pages --disable-gtk-doc
26+DISTCHECK_CONFIGURE_FLAGS = \
27+ --disable-man-pages \
28+ --disable-gtk-doc \
29+ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
30
31 clean-local :
32 rm -f *~
33diff --git a/configure.ac b/configure.ac
34index a9141bf..39bbd7a 100644
35--- a/configure.ac
36+++ b/configure.ac
37@@ -232,6 +232,15 @@ AC_SUBST([GETTEXT_PACKAGE])
38 AM_GLIB_GNU_GETTEXT
39 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
40
41+# systemd
42+
43+AC_ARG_WITH([systemdsystemunitdir],
44+ AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
45+ [],
46+ [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
47+AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
48+AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir"])
49+
50 AC_OUTPUT([
51 Makefile
52 data/Makefile
53diff --git a/data/Makefile.am b/data/Makefile.am
54index ca6d8ac..bf5c1a7 100644
55--- a/data/Makefile.am
56+++ b/data/Makefile.am
57@@ -35,6 +35,14 @@ avahiservicedir = $(sysconfdir)/avahi/services
58 avahiservice_DATA = udisks.service
59 endif # REMOTE_ACCESS_ENABLED
60
61+if HAVE_SYSTEMD
62+systemdsystemunit_DATA = \
63+ udisks-daemon.service
64+
65+udisks-daemon.service: udisks-daemon.service.in
66+ @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
67+endif
68+
69 EXTRA_DIST = \
70 80-udisks.rules \
71 $(dbusif_DATA) \
72@@ -42,7 +50,8 @@ EXTRA_DIST = \
73 $(dbusconf_in_files) \
74 udisks.pc.in \
75 udisks.service \
76+ udisks-daemon.service.in \
77 $(NULL)
78
79 clean-local :
80- rm -f *~ $(service_DATA) $(dbusconf_DATA)
81+ rm -f *~ $(service_DATA) $(dbusconf_DATA) udisks-daemon.service
82diff --git a/data/org.freedesktop.UDisks.service.in b/data/org.freedesktop.UDisks.service.in
83index b3606a6..6ba2cd0 100644
84--- a/data/org.freedesktop.UDisks.service.in
85+++ b/data/org.freedesktop.UDisks.service.in
86@@ -2,4 +2,4 @@
87 Name=org.freedesktop.UDisks
88 Exec=@libexecdir@/udisks-daemon
89 User=root
90-
91+SystemdService=udisks-daemon.service
92diff --git a/data/udisks-daemon.service.in b/data/udisks-daemon.service.in
93new file mode 100644
94index 0000000..78379b2
95--- /dev/null
96+++ b/data/udisks-daemon.service.in
97@@ -0,0 +1,12 @@
98+[Unit]
99+Description=Disk Manager
100+After=syslog.target
101+
102+[Service]
103+Type=dbus
104+BusName=org.freedesktop.UDisks
105+ExecStart=@libexecdir@/udisks-daemon
106+StandardOutput=syslog
107+
108+[Install]
109+WantedBy=graphical.target
110--
1111.7.0.1
112
diff --git a/meta-oe/recipes-support/udisks/udisks/udisks-1.0.5-fix-service-file.patch b/meta-oe/recipes-support/udisks/udisks/udisks-1.0.5-fix-service-file.patch
new file mode 100644
index 000000000..d5e84d34d
--- /dev/null
+++ b/meta-oe/recipes-support/udisks/udisks/udisks-1.0.5-fix-service-file.patch
@@ -0,0 +1,33 @@
1From 7d61ad048856ee239870b917d6933e3ad63f0789 Mon Sep 17 00:00:00 2001
2From: David King <amigadave@amigadave.com>
3Date: Thu, 2 Jul 2015 13:49:22 +0100
4Subject: [PATCH] Fix systemd service file
5
6udisks-daemon is installed to $(libexecdir), not $(prefix)/lib/udisks.
7
8https://bugzilla.redhat.com/show_bug.cgi?id=1238664
9https://bugs.freedesktop.org/show_bug.cgi?id=91191
10
11Taken-From: [1]
12[1] http://pkgs.fedoraproject.org/cgit/udisks.git/tree/udisks-1.0.5-fix-service-file.patch
13
14Upstream-Status: Pending
15---
16 data/Makefile.am | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/data/Makefile.am b/data/Makefile.am
20index 411ea0f..08af5f4 100644
21--- a/data/Makefile.am
22+++ b/data/Makefile.am
23@@ -31,7 +31,7 @@ systemdservicedir = $(systemdsystemunitdir)
24 systemdservice_DATA = $(systemdservice_in_files:.service.in=.service)
25
26 $(systemdservice_DATA): $(systemdservice_in_files) Makefile
27- @sed -e "s|\@libexecdir\@|$(prefix)/lib/udisks|" $< > $@
28+ @sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
29 endif
30
31 udevrulesdir = $(slashlibdir)/udev/rules.d
32--
332.4.5
diff --git a/meta-oe/recipes-support/udisks/udisks_1.0.4.bb b/meta-oe/recipes-support/udisks/udisks_1.0.5.bb
index 9923d6049..8ddc20dab 100644
--- a/meta-oe/recipes-support/udisks/udisks_1.0.4.bb
+++ b/meta-oe/recipes-support/udisks/udisks_1.0.5.bb
@@ -7,17 +7,17 @@ DEPENDS = "libatasmart sg3-utils polkit libgudev dbus-glib glib-2.0 intltool-nat
7 7
8DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" 8DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
9 9
10SRC_URI = "http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \ 10SRC_URI = " \
11 file://optional-depends.patch" 11 http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \
12 12 file://optional-depends.patch \
13SRC_URI += "${@base_contains('DISTRO_FEATURES', 'systemd', 'file://add-systemd-support.patch', '', d)}" 13 file://0001-fix-build-with-newer-glibc-versions.patch \
14 14 file://udisks-1.0.5-fix-service-file.patch \
15SRC_URI[udisks.md5sum] = "86c63b2b5484f2060499a052b5b6256b" 15"
16SRC_URI[udisks.sha256sum] = "854b89368733b9c3a577101b761ad5397ae75a05110c8698ac5b29de9a8bf8f5"
17 16
18PR = "r9" 17SRC_URI[udisks.md5sum] = "70d48dcfe523a74cd7c7fbbc2847fcdd"
18SRC_URI[udisks.sha256sum] = "f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71"
19 19
20inherit autotools systemd gtk-doc 20inherit autotools-brokensep systemd gtk-doc
21 21
22PACKAGECONFIG ??= "" 22PACKAGECONFIG ??= ""
23PACKAGECONFIG[parted] = "--enable-parted,--disable-parted,parted" 23PACKAGECONFIG[parted] = "--enable-parted,--disable-parted,parted"
@@ -35,5 +35,5 @@ FILES_${PN}-dbg += "${nonarch_base_libdir}/udev/.debug"
35RPROVIDES_${PN} += "${PN}-systemd" 35RPROVIDES_${PN} += "${PN}-systemd"
36RREPLACES_${PN} += "${PN}-systemd" 36RREPLACES_${PN} += "${PN}-systemd"
37RCONFLICTS_${PN} += "${PN}-systemd" 37RCONFLICTS_${PN} += "${PN}-systemd"
38SYSTEMD_SERVICE_${PN} = "udisks-daemon.service" 38SYSTEMD_SERVICE_${PN} = "udisks.service"
39SYSTEMD_AUTO_ENABLE = "disable" 39SYSTEMD_AUTO_ENABLE = "disable"