dbus: Update to 1.8.2 version
cover dbus: Update to 1.8.2 version
Start with systemd:
root@qemuarm:~# systemctl status dbus.service
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static)
Active: active (running) since Wed 2014-05-14 09:15:33 UTC; 19s ago
Docs: man:dbus-daemon(1)
Main PID: 98 (dbus-daemon)
CGroup: /system.slice/dbus.service
└─98 /usr/bin/dbus-daemon --system --address=systemd: --nofork --n...May 14 09:15:33 qemuarm systemd[1]: Started D-Bus System Message Bus. root@qemuarm:~# systemctl status dbus.socket ● dbus.socket - D-Bus System Message Bus Socket Loaded: loaded (/lib/systemd/system/dbus.socket; static) Active: active (running) since Wed 2014-05-14 09:15:33 UTC; 25s ago Listen: /var/run/dbus/system_bus_socket (Stream)
May 14 09:15:33 qemuarm systemd[1]: Starting D-Bus System Message Bus Socket. May 14 09:15:33 qemuarm systemd[1]: Listening on D-Bus System Message Bus S...t.
Hint: Some lines were ellipsized, use -l to show in full.
Start with sysvinit:
root@qemuarm:~# /etc/init.d/dbus-1 status /usr/bin/dbus-daemon (pid 324) is running...
Test ptest suite:
root@qemuarm:/usr/lib/dbus-test/ptest# ./run-ptest PASS: test/test-bus PASS: test/test-bus-launch-helper PASS: test/test-bus-system PASS: test/test-corrupt PASS: test/test-dbus ** Message: ProcessID of this process is 124 ** Message: UnixUserID of this process is 0 ** Message: SKIP: set DBUS_TEST_DATA to a directory containing valid-config-files/incoming-limit.conf PASS: test/test-dbus-daemon PASS: test/test-dbus-daemon-eavesdrop ...
The following changes since commit d6900a5fe7670cb4514969d60e0ca65372121c87:
wic: Extend indirect string connection to support image names and rootfs (2014-05-13 19:35:11 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/dbus
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/dbus
Chong Lu (1):
dbus: Update to 1.8.2 version
.../{dbus-test_1.6.18.bb => dbus-test_1.8.2.bb} | 13 +-
meta/recipes-core/dbus/dbus.inc | 14 +-
...orrect-address-when-using-address-systemd.patch | 193 ---------------------
...y-freeing-if-error-during-listing-service.patch | 45 -----
meta/recipes-core/dbus/dbus/ptest.patch | 154 ----------------
meta/recipes-core/dbus/dbus/run-ptest | 11 +-
meta/recipes-core/dbus/dbus_1.6.18.bb | 4 -
meta/recipes-core/dbus/dbus_1.8.2.bb | 4 +
8 files changed, 34 insertions(+), 404 deletions(-)
rename meta/recipes-core/dbus/{dbus-test_1.6.18.bb => dbus-test_1.8.2.bb} (74%)
delete mode 100644 meta/recipes-core/dbus/dbus/Set-correct-address-when-using-address-systemd.patch
delete mode 100644 meta/recipes-core/dbus/dbus/fixed-memory-freeing-if-error-during-listing-service.patch
delete mode 100644 meta/recipes-core/dbus/dbus/ptest.patch
delete mode 100644 meta/recipes-core/dbus/dbus_1.6.18.bb
create mode 100644 meta/recipes-core/dbus/dbus_1.8.2.bbSignature · 1 line
1.8.1.2
PATCH 1/1 dbus: Update to 1.8.2 version
Upgrade dbus to 1.8.2.
Modify ptest suite to make it enabled on new version. If systemd in DISTRO_FEATURES, we expect to install dbus systemd unit files.
Remove unneeded patches since it's included in new version. Remove unrecognized option: "--with-xml"
[YOCTO #6092]
---
.../{dbus-test_1.6.18.bb => dbus-test_1.8.2.bb} | 13 +-
meta/recipes-core/dbus/dbus.inc | 14 +-
...orrect-address-when-using-address-systemd.patch | 193 ---------------------
...y-freeing-if-error-during-listing-service.patch | 45 -----
meta/recipes-core/dbus/dbus/ptest.patch | 154 ----------------
meta/recipes-core/dbus/dbus/run-ptest | 11 +-
meta/recipes-core/dbus/dbus_1.6.18.bb | 4 -
meta/recipes-core/dbus/dbus_1.8.2.bb | 4 +
8 files changed, 34 insertions(+), 404 deletions(-)
rename meta/recipes-core/dbus/{dbus-test_1.6.18.bb => dbus-test_1.8.2.bb} (74%)
delete mode 100644 meta/recipes-core/dbus/dbus/Set-correct-address-when-using-address-systemd.patch
delete mode 100644 meta/recipes-core/dbus/dbus/fixed-memory-freeing-if-error-during-listing-service.patch
delete mode 100644 meta/recipes-core/dbus/dbus/ptest.patch
delete mode 100644 meta/recipes-core/dbus/dbus_1.6.18.bb
create mode 100644 meta/recipes-core/dbus/dbus_1.8.2.bbmeta/recipes-core/dbus/dbus-test_1.8.2.bb renamed from meta/recipes-core/dbus/dbus-test_1.6.18.bb +10 -3
@@ -12,7 +12,6 @@ RDEPENDS_${PN}-dev = "" SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ file://tmpdir.patch \ - file://ptest.patch \ file://dbus-1.init \ file://run-ptest \ file://python-config.patch \
@@ -39,7 +38,6 @@ EXTRA_OECONF = "--enable-tests \ --disable-xml-docs \ --disable-doxygen-docs \ --disable-libaudit \ - --with-xml=expat \ --disable-systemd \ --without-systemdsystemunitdir \ --with-dbus-test-dir=${PTEST_PATH} \
@@ -49,5 +47,14 @@ do_install() { } do_install_ptest() { - find ${D}${PTEST_PATH} -name Makefile | xargs sed -i 's/^Makefile:/_Makefile:/' + install -d ${D}${PTEST_PATH}/test + case1="shell printf refs syslog" + for i in ${case1}; do install ${B}/test/test-$i ${D}${PTEST_PATH}/test; done + case2="marshal syntax corrupt dbus-daemon dbus-daemon-eavesdrop loopback relay" + for i in ${case2}; do install ${B}/test/.libs/test-$i ${D}${PTEST_PATH}/test; done + case3="bus bus-system bus-launch-helper" + for i in ${case3}; do install ${B}/bus/test-$i ${D}${PTEST_PATH}/test; done + install ${B}/dbus/test-dbus ${D}${PTEST_PATH}/test + cp -r ${B}/test/data ${D}${PTEST_PATH}/test } +RDEPENDS_${PN}-ptest += "bash"
meta/recipes-core/dbus/dbus.inc +11 -3
@@ -17,8 +17,6 @@ SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ file://dbus-1.init \ file://os-test.patch \ file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ - file://Set-correct-address-when-using-address-systemd.patch \ - file://fixed-memory-freeing-if-error-during-listing-service.patch \ " inherit useradd autotools pkgconfig gettext update-rc.d
@@ -56,6 +54,7 @@ FILES_${PN} = "${bindir}/dbus-daemon* \ ${bindir}/dbus-send \ ${bindir}/dbus-monitor \ ${bindir}/dbus-launch \ + ${bindir}/dbus-run-session \ ${libexecdir}/dbus* \ ${sysconfdir} \ ${localstatedir} \
@@ -84,7 +83,6 @@ EXTRA_OECONF = "--disable-tests \ --disable-xml-docs \ --disable-doxygen-docs \ --disable-libaudit \ - --with-xml=expat \ --disable-systemd" PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
@@ -106,6 +104,16 @@ do_install() { install -m 0755 ${WORKDIR}/dbus-1.init.sh ${D}${sysconfdir}/init.d/dbus-1 fi + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + for i in dbus.target.wants sockets.target.wants multi-user.target.wants; do \ + install -d ${D}${systemd_unitdir}/system/$i; done + install ${B}/bus/dbus.service ${B}/bus/dbus.socket ${D}${systemd_unitdir}/system/ + cd ${D}${systemd_unitdir}/system/dbus.target.wants/ + ln -fs ../dbus.socket ${D}${systemd_unitdir}/system/dbus.target.wants/dbus.socket + ln -fs ../dbus.socket ${D}${systemd_unitdir}/system/sockets.target.wants/dbus.socket + ln -fs ../dbus.service ${D}${systemd_unitdir}/system/multi-user.target.wants/dbus.service + fi + install -d ${D}${sysconfdir}/default/volatiles echo "d messagebus messagebus 0755 ${localstatedir}/run/dbus none" \ > ${D}${sysconfdir}/default/volatiles/99_dbus
meta/recipes-core/dbus/dbus/Set-correct-address-when-using-address-systemd.patch deleted +0 -193
193 lines not on this page · raw message
meta/recipes-core/dbus/dbus/fixed-memory-freeing-if-error-during-listing-service.patch deleted +0 -45
45 lines not on this page · raw message
meta/recipes-core/dbus/dbus/ptest.patch deleted +0 -154
154 lines not on this page · raw message
meta/recipes-core/dbus/dbus/run-ptest +9 -2
@@ -1,3 +1,10 @@ #!/bin/sh -cd test -make -k runtest-TESTS + +output() { + if [ $? -eq 0 ] + then echo "PASS: $i" + else echo "FAIL: $i" + fi +} + +for i in `ls test/test-*`; do ./$i ./test/data DBUS_TEST_HOMEDIR=./test >/dev/null; output; done
meta/recipes-core/dbus/dbus_1.6.18.bb deleted +0 -4
@@ -1,4 +0,0 @@ -include dbus.inc - -SRC_URI[md5sum] = "b02e9c95027a416987b81f9893831061" -SRC_URI[sha256sum] = "7085a0895a9eb11a952394cdbea6d8b4358e17cb991fed0e8fb85e2b9e686dcd"
meta/recipes-core/dbus/dbus_1.8.2.bb new file +4 -0
@@ -0,0 +1,4 @@ +include dbus.inc + +SRC_URI[md5sum] = "d6f709bbec0a022a1847c7caec9d6068" +SRC_URI[sha256sum] = "5689f7411165adc953f37974e276a3028db94447c76e8dd92efe910c6d3bae08"
Signature · 1 line
1.8.1.2