diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2016-01-14 17:16:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-30 11:37:00 +0000 |
commit | a16e9a2f0e2d0dfd8446e0dfd78f35bcab863619 (patch) | |
tree | 7f3c83c877dadf9514beb6e6b47a1224322ce489 /meta | |
parent | 70814586bb11c8f1aeb4c991f44cd52542159a91 (diff) | |
download | poky-a16e9a2f0e2d0dfd8446e0dfd78f35bcab863619.tar.gz |
dbus: upgrade to 1.10.6
Now that systemd doesn't use DBus directly, dbus can --enable-systemd. In fact
this appears to be essential for DBus to work on under modern systemd.
python-config.patch refreshed.
Package dbus-test-tool into PN-dev, and remove obsolete dbus-glib-tool
reference.
Remove obsolete --without-dbus-glib option, and dependency on dbus-glib in
dbus-test.
[ patch originally by Chen, tweaked and message rewritten by RB ]
(From OE-Core rev: 3cd34c673d2f64e310b474036754e1ead5775d66)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/dbus/dbus-test_1.10.6.bb (renamed from meta/recipes-core/dbus/dbus-test_1.8.20.bb) | 6 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus/python-config.patch | 21 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus_1.10.6.bb (renamed from meta/recipes-core/dbus/dbus_1.8.20.bb) | 18 |
3 files changed, 28 insertions, 17 deletions
diff --git a/meta/recipes-core/dbus/dbus-test_1.8.20.bb b/meta/recipes-core/dbus/dbus-test_1.10.6.bb index f5400a0f26..a768a09c4a 100644 --- a/meta/recipes-core/dbus/dbus-test_1.8.20.bb +++ b/meta/recipes-core/dbus/dbus-test_1.10.6.bb | |||
@@ -5,7 +5,7 @@ LICENSE = "AFL-2 | GPLv2+" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ |
6 | file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c" | 6 | file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c" |
7 | 7 | ||
8 | DEPENDS = "python-pygobject dbus dbus-glib" | 8 | DEPENDS = "python-pygobject dbus" |
9 | 9 | ||
10 | RDEPENDS_${PN} += "make" | 10 | RDEPENDS_${PN} += "make" |
11 | RDEPENDS_${PN}-dev = "" | 11 | RDEPENDS_${PN}-dev = "" |
@@ -18,8 +18,8 @@ SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | |||
18 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ | 18 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ |
19 | " | 19 | " |
20 | 20 | ||
21 | SRC_URI[md5sum] = "b49890bbabedab3a1c3f4f73c7ff8b2b" | 21 | SRC_URI[md5sum] = "26d0cf3a1c9782cb0e342101f0450440" |
22 | SRC_URI[sha256sum] = "5c4fbf4c64621c96e871da91d2b729a5b00536e116d3c4612a469d924b1b703a" | 22 | SRC_URI[sha256sum] = "b5fefa08a77edd76cd64d872db949eebc02cf6f3f8be82e4bbc641742af5d35f" |
23 | 23 | ||
24 | S="${WORKDIR}/dbus-${PV}" | 24 | S="${WORKDIR}/dbus-${PV}" |
25 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/dbus:" | 25 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/dbus:" |
diff --git a/meta/recipes-core/dbus/dbus/python-config.patch b/meta/recipes-core/dbus/dbus/python-config.patch index 294400247e..da2f10c726 100644 --- a/meta/recipes-core/dbus/dbus/python-config.patch +++ b/meta/recipes-core/dbus/dbus/python-config.patch | |||
@@ -7,19 +7,28 @@ Upstream-Status: Inappropriate [oe specific] | |||
7 | 7 | ||
8 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | 8 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
9 | 9 | ||
10 | --- dbus-1.6.8/configure.ac.orig 2013-07-11 14:15:58.834554799 -0500 | 10 | --- |
11 | +++ dbus-1.6.8/configure.ac 2013-07-11 14:14:40.969554848 -0500 | 11 | configure.ac | 7 ------- |
12 | @@ -257,13 +257,6 @@ | 12 | 1 file changed, 7 deletions(-) |
13 | |||
14 | diff --git a/configure.ac b/configure.ac | ||
15 | index 80d27b4..becc1cc 100644 | ||
16 | --- a/configure.ac | ||
17 | +++ b/configure.ac | ||
18 | @@ -279,13 +279,6 @@ if test "x$enable_tests" = xyes; then | ||
13 | # full test coverage is required, Python is a hard dependency | 19 | # full test coverage is required, Python is a hard dependency |
14 | AC_MSG_NOTICE([Full test coverage (--enable-tests=yes) requires Python, dbus-python, pygobject]) | 20 | AC_MSG_NOTICE([Full test coverage (--enable-tests=yes) requires Python, dbus-python, pygi]) |
15 | AM_PATH_PYTHON([2.6]) | 21 | AM_PATH_PYTHON([2.6]) |
16 | - AC_MSG_CHECKING([for Python modules for full test coverage]) | 22 | - AC_MSG_CHECKING([for Python modules for full test coverage]) |
17 | - if "$PYTHON" -c "import dbus, gobject, dbus.mainloop.glib"; then | 23 | - if "$PYTHON" -c "import dbus, gi.repository.GObject, dbus.mainloop.glib"; then |
18 | - AC_MSG_RESULT([yes]) | 24 | - AC_MSG_RESULT([yes]) |
19 | - else | 25 | - else |
20 | - AC_MSG_RESULT([no]) | 26 | - AC_MSG_RESULT([no]) |
21 | - AC_MSG_ERROR([cannot import dbus, gobject, dbus.mainloop.glib Python modules]) | 27 | - AC_MSG_ERROR([cannot import dbus, gi.repository.GObject, dbus.mainloop.glib Python modules]) |
22 | - fi | 28 | - fi |
23 | else | 29 | else |
24 | # --enable-tests not given: do not abort if Python is missing | 30 | # --enable-tests not given: do not abort if Python is missing |
25 | AM_PATH_PYTHON([2.6], [], [:]) | 31 | AM_PATH_PYTHON([2.6], [], [:]) |
32 | -- | ||
33 | 1.9.1 | ||
34 | |||
diff --git a/meta/recipes-core/dbus/dbus_1.8.20.bb b/meta/recipes-core/dbus/dbus_1.10.6.bb index 0c7f6b1a21..5ba3f21242 100644 --- a/meta/recipes-core/dbus/dbus_1.8.20.bb +++ b/meta/recipes-core/dbus/dbus_1.10.6.bb | |||
@@ -20,8 +20,8 @@ SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | |||
20 | file://0001-configure.ac-support-large-file-for-stat64.patch \ | 20 | file://0001-configure.ac-support-large-file-for-stat64.patch \ |
21 | " | 21 | " |
22 | 22 | ||
23 | SRC_URI[md5sum] = "b49890bbabedab3a1c3f4f73c7ff8b2b" | 23 | SRC_URI[md5sum] = "26d0cf3a1c9782cb0e342101f0450440" |
24 | SRC_URI[sha256sum] = "5c4fbf4c64621c96e871da91d2b729a5b00536e116d3c4612a469d924b1b703a" | 24 | SRC_URI[sha256sum] = "b5fefa08a77edd76cd64d872db949eebc02cf6f3f8be82e4bbc641742af5d35f" |
25 | 25 | ||
26 | inherit useradd autotools pkgconfig gettext update-rc.d upstream-version-is-even | 26 | inherit useradd autotools pkgconfig gettext update-rc.d upstream-version-is-even |
27 | 27 | ||
@@ -59,15 +59,20 @@ FILES_${PN} = "${bindir}/dbus-daemon* \ | |||
59 | ${bindir}/dbus-monitor \ | 59 | ${bindir}/dbus-monitor \ |
60 | ${bindir}/dbus-launch \ | 60 | ${bindir}/dbus-launch \ |
61 | ${bindir}/dbus-run-session \ | 61 | ${bindir}/dbus-run-session \ |
62 | ${bindir}/dbus-update-activation-environment \ | ||
62 | ${libexecdir}/dbus* \ | 63 | ${libexecdir}/dbus* \ |
63 | ${sysconfdir} \ | 64 | ${sysconfdir} \ |
64 | ${localstatedir} \ | 65 | ${localstatedir} \ |
65 | ${datadir}/dbus-1/services \ | 66 | ${datadir}/dbus-1/services \ |
66 | ${datadir}/dbus-1/system-services \ | 67 | ${datadir}/dbus-1/system-services \ |
68 | ${datadir}/dbus-1/session.d \ | ||
69 | ${datadir}/dbus-1/session.conf \ | ||
70 | ${datadir}/dbus-1/system.d \ | ||
71 | ${datadir}/dbus-1/system.conf \ | ||
67 | ${systemd_unitdir}/system/" | 72 | ${systemd_unitdir}/system/" |
68 | FILES_${PN}-lib = "${libdir}/lib*.so.*" | 73 | FILES_${PN}-lib = "${libdir}/lib*.so.*" |
69 | RRECOMMENDS_${PN}-lib = "${PN}" | 74 | RRECOMMENDS_${PN}-lib = "${PN}" |
70 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool" | 75 | FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool" |
71 | 76 | ||
72 | pkg_postinst_dbus() { | 77 | pkg_postinst_dbus() { |
73 | # If both systemd and sysvinit are enabled, mask the dbus-1 init script | 78 | # If both systemd and sysvinit are enabled, mask the dbus-1 init script |
@@ -87,8 +92,7 @@ EXTRA_OECONF = "--disable-tests \ | |||
87 | --disable-xml-docs \ | 92 | --disable-xml-docs \ |
88 | --disable-doxygen-docs \ | 93 | --disable-doxygen-docs \ |
89 | --disable-libaudit \ | 94 | --disable-libaudit \ |
90 | --disable-systemd \ | 95 | " |
91 | --without-dbus-glib" | ||
92 | 96 | ||
93 | EXTRA_OECONF_append_class-native = " --disable-selinux" | 97 | EXTRA_OECONF_append_class-native = " --disable-selinux" |
94 | 98 | ||
@@ -98,9 +102,7 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', | |||
98 | PACKAGECONFIG_class-native = "" | 102 | PACKAGECONFIG_class-native = "" |
99 | PACKAGECONFIG_class-nativesdk = "" | 103 | PACKAGECONFIG_class-nativesdk = "" |
100 | 104 | ||
101 | # Would like to --enable-systemd but that's a circular build-dependency between | 105 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd" |
102 | # systemd<->dbus | ||
103 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir" | ||
104 | PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm" | 106 | PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm" |
105 | PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,," | 107 | PACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile,," |
106 | 108 | ||