<div dir="ltr">Remember to upgrade dbus-test at the same time as otherwise you break dbus-test.<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 September 2017 at 08:46, Fan Xin <span dir="ltr">&lt;<a href="mailto:fan.xin@jp.fujitsu.com" target="_blank">fan.xin@jp.fujitsu.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Upgrade dbus from 1.10.20 to 1.10.22<br>
<br>
Signed-off-by: <a href="mailto:fan.xin@jp.fujitsu.com">fan.xin@jp.fujitsu.com</a><br>
---<br>
 meta/recipes-core/dbus/<a href="http://dbus_1.10.20.bb" rel="noreferrer" target="_blank">dbus_1.<wbr>10.20.bb</a> | 180 ------------------------------<wbr>---<br>
 meta/recipes-core/dbus/<a href="http://dbus_1.10.22.bb" rel="noreferrer" target="_blank">dbus_1.<wbr>10.22.bb</a> | 180 ++++++++++++++++++++++++++++++<wbr>+++<br>
 2 files changed, 180 insertions(+), 180 deletions(-)<br>
 delete mode 100644 meta/recipes-core/dbus/<a href="http://dbus_1.10.20.bb" rel="noreferrer" target="_blank">dbus_1.<wbr>10.20.bb</a><br>
 create mode 100644 meta/recipes-core/dbus/<a href="http://dbus_1.10.22.bb" rel="noreferrer" target="_blank">dbus_1.<wbr>10.22.bb</a><br>
<br>
diff --git a/meta/recipes-core/dbus/<a href="http://dbus_1.10.20.bb" rel="noreferrer" target="_blank">dbus_<wbr>1.10.20.bb</a> b/meta/recipes-core/dbus/<a href="http://dbus_1.10.20.bb" rel="noreferrer" target="_blank">dbus_<wbr>1.10.20.bb</a><br>
deleted file mode 100644<br>
index 9ddedc1..0000000<br>
--- a/meta/recipes-core/dbus/<a href="http://dbus_1.10.20.bb" rel="noreferrer" target="_blank">dbus_<wbr>1.10.20.bb</a><br>
+++ /dev/null<br>
@@ -1,180 +0,0 @@<br>
-SUMMARY = &quot;D-Bus message bus&quot;<br>
-DESCRIPTION = &quot;D-Bus is a message bus system, a simple way for applications to talk to one another. In addition to interprocess communication, D-Bus helps coordinate process lifecycle; it makes it simple and reliable to code a \&quot;single instance\&quot; application or daemon, and to launch applications and daemons on demand when their services are needed.&quot;<br>
-HOMEPAGE = &quot;<a href="http://dbus.freedesktop.org" rel="noreferrer" target="_blank">http://dbus.freedesktop.org</a>&quot;<br>
-SECTION = &quot;base&quot;<br>
-LICENSE = &quot;AFL-2 | GPLv2+&quot;<br>
-LIC_FILES_CHKSUM = &quot;file://COPYING;md5=<wbr>10dded3b58148f3f1fd804b26354af<wbr>3e \<br>
-                    file://dbus/dbus.h;beginline=<wbr>6;endline=20;md5=<wbr>7755c9d7abccd5dbd25a6a974538bb<wbr>3c&quot;<br>
-DEPENDS = &quot;expat virtual/libintl&quot;<br>
-RDEPENDS_dbus_class-native = &quot;&quot;<br>
-RDEPENDS_dbus_class-nativesdk = &quot;&quot;<br>
-PACKAGES += &quot;${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;ptest&#39;, &#39;${PN}-ptest&#39;, &#39;&#39;, d)}&quot;<br>
-ALLOW_EMPTY_dbus-ptest = &quot;1&quot;<br>
-RDEPENDS_dbus-ptest_class-<wbr>target = &quot;dbus-test-ptest&quot;<br>
-<br>
-SRC_URI = &quot;<a href="http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz" rel="noreferrer" target="_blank">http://dbus.freedesktop.org/<wbr>releases/dbus/dbus-${PV}.tar.<wbr>gz</a> \<br>
-           file://tmpdir.patch \<br>
-           file://dbus-1.init \<br>
-           file://os-test.patch \<br>
-           file://clear-guid_from_server-<wbr>if-send_negotiate_unix_f.patch \<br>
-           file://0001-configure.ac-<wbr>explicitely-check-stdint.h.<wbr>patch \<br>
-&quot;<br>
-<br>
-SRC_URI[md5sum] = &quot;<wbr>94c991e763d4f9f13690416b2dcd94<wbr>11&quot;<br>
-SRC_URI[sha256sum] = &quot;<wbr>e574b9780b5425fde4d973bb596e7e<wbr>a0f09e00fe2edd662da9016e976c46<wbr>0b48&quot;<br>
-<br>
-inherit useradd autotools pkgconfig gettext update-rc.d upstream-version-is-even<br>
-<br>
-INITSCRIPT_NAME = &quot;dbus-1&quot;<br>
-INITSCRIPT_PARAMS = &quot;start 02 5 3 2 . stop 20 0 1 6 .&quot;<br>
-<br>
-python __anonymous() {<br>
-    if not bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;sysvinit&#39;, True, False, d):<br>
-        d.setVar(&quot;INHIBIT_UPDATERCD_<wbr>BBCLASS&quot;, &quot;1&quot;)<br>
-}<br>
-<br>
-USERADD_PACKAGES = &quot;${PN}&quot;<br>
-GROUPADD_PARAM_${PN} = &quot;-r netdev&quot;<br>
-USERADD_PARAM_${PN} = &quot;--system --home ${localstatedir}/lib/dbus \<br>
-                       --no-create-home --shell /bin/false \<br>
-                       --user-group messagebus&quot;<br>
-<br>
-CONFFILES_${PN} = &quot;${sysconfdir}/dbus-1/system.<wbr>conf ${sysconfdir}/dbus-1/session.<wbr>conf&quot;<br>
-<br>
-DEBIANNAME_${PN} = &quot;dbus-1&quot;<br>
-<br>
-PACKAGES =+ &quot;${PN}-lib&quot;<br>
-<br>
-OLDPKGNAME = &quot;dbus-x11&quot;<br>
-OLDPKGNAME_class-nativesdk = &quot;&quot;<br>
-<br>
-# for compatibility<br>
-RPROVIDES_${PN} = &quot;${OLDPKGNAME}&quot;<br>
-RREPLACES_${PN} += &quot;${OLDPKGNAME}&quot;<br>
-<br>
-FILES_${PN} = &quot;${bindir}/dbus-daemon* \<br>
-               ${bindir}/dbus-uuidgen \<br>
-               ${bindir}/dbus-cleanup-sockets \<br>
-               ${bindir}/dbus-send \<br>
-               ${bindir}/dbus-monitor \<br>
-               ${bindir}/dbus-launch \<br>
-               ${bindir}/dbus-run-session \<br>
-               ${bindir}/dbus-update-<wbr>activation-environment \<br>
-               ${libexecdir}/dbus* \<br>
-               ${sysconfdir} \<br>
-               ${localstatedir} \<br>
-               ${datadir}/dbus-1/services \<br>
-               ${datadir}/dbus-1/system-<wbr>services \<br>
-               ${datadir}/dbus-1/session.d \<br>
-               ${datadir}/dbus-1/session.conf \<br>
-               ${datadir}/dbus-1/system.d \<br>
-               ${datadir}/dbus-1/system.conf \<br>
-               ${systemd_system_unitdir} \<br>
-               ${systemd_user_unitdir} \<br>
-&quot;<br>
-FILES_${PN}-lib = &quot;${libdir}/lib*.so.*&quot;<br>
-RRECOMMENDS_${PN}-lib = &quot;${PN}&quot;<br>
-FILES_${PN}-dev += &quot;${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool&quot;<br>
-<br>
-PACKAGE_WRITE_DEPS += &quot;${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;,&#39;systemd sysvinit&#39;,&#39;systemd-systemctl-<wbr>native&#39;,&#39;&#39;,d)}&quot;<br>
-pkg_postinst_dbus() {<br>
-       # If both systemd and sysvinit are enabled, mask the dbus-1 init script<br>
-        if ${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;,&#39;systemd sysvinit&#39;,&#39;true&#39;,&#39;false&#39;,d)}; then<br>
-               if [ -n &quot;$D&quot; ]; then<br>
-                       OPTS=&quot;--root=$D&quot;<br>
-               fi<br>
-               systemctl $OPTS mask dbus-1.service<br>
-       fi<br>
-<br>
-       if [ -z &quot;$D&quot; ] &amp;&amp; [ -e /etc/init.d/populate-volatile.<wbr>sh ] ; then<br>
-               /etc/init.d/populate-volatile.<wbr>sh update<br>
-       fi<br>
-}<br>
-<br>
-EXTRA_OECONF = &quot;--disable-tests \<br>
-                --disable-xml-docs \<br>
-                --disable-doxygen-docs \<br>
-                --disable-libaudit \<br>
-                --enable-largefile \<br>
-                &quot;<br>
-<br>
-EXTRA_OECONF_append_class-<wbr>target = &quot; SYSTEMCTL=${base_bindir}/<wbr>systemctl&quot;<br>
-EXTRA_OECONF_append_class-<wbr>native = &quot; --disable-selinux&quot;<br>
-<br>
-PACKAGECONFIG ??= &quot;${@bb.utils.filter(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;systemd x11&#39;, d)}&quot;<br>
-PACKAGECONFIG_class-native = &quot;&quot;<br>
-PACKAGECONFIG_class-nativesdk = &quot;&quot;<br>
-<br>
-PACKAGECONFIG[systemd] = &quot;--enable-systemd --with-systemdsystemunitdir=${<wbr>systemd_system_unitdir},--<wbr>disable-systemd --without-<wbr>systemdsystemunitdir,systemd&quot;<br>
-PACKAGECONFIG[x11] = &quot;--with-x --enable-x11-autolaunch,--<wbr>without-x --disable-x11-autolaunch, virtual/libx11 libsm&quot;<br>
-PACKAGECONFIG[user-session] = &quot;--enable-user-session --with-systemduserunitdir=${<wbr>systemd_user_unitdir},--<wbr>disable-user-session&quot;<br>
-<br>
-do_install() {<br>
-       autotools_do_install<br>
-<br>
-       if ${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;sysvinit&#39;, &#39;true&#39;, &#39;false&#39;, d)}; then<br>
-               install -d ${D}${sysconfdir}/init.d<br>
-               sed &#39;s:@bindir@:${bindir}:&#39; &lt; ${WORKDIR}/dbus-1.init &gt;${WORKDIR}/<a href="http://dbus-1.init.sh" rel="noreferrer" target="_blank">dbus-1.init.sh</a><br>
-               install -m 0755 ${WORKDIR}/<a href="http://dbus-1.init.sh" rel="noreferrer" target="_blank">dbus-1.init.sh</a> ${D}${sysconfdir}/init.d/dbus-<wbr>1<br>
-       fi<br>
-<br>
-       if ${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;systemd&#39;, &#39;true&#39;, &#39;false&#39;, d)}; then<br>
-               for i in dbus.target.wants sockets.target.wants multi-user.target.wants; do \<br>
-                       install -d ${D}${systemd_system_unitdir}/<wbr>$i; done<br>
-               install -m 0644 ${B}/bus/dbus.service ${B}/bus/dbus.socket ${D}${systemd_system_unitdir}/<br>
-               ln -fs ../dbus.socket ${D}${systemd_system_unitdir}/<wbr>dbus.target.wants/dbus.socket<br>
-               ln -fs ../dbus.socket ${D}${systemd_system_unitdir}/<wbr>sockets.target.wants/dbus.<wbr>socket<br>
-               ln -fs ../dbus.service ${D}${systemd_system_unitdir}/<wbr>multi-user.target.wants/dbus.<wbr>service<br>
-       fi<br>
-<br>
-       install -d ${D}${sysconfdir}/default/<wbr>volatiles<br>
-       echo &quot;d messagebus messagebus 0755 ${localstatedir}/run/dbus none&quot; \<br>
-            &gt; ${D}${sysconfdir}/default/<wbr>volatiles/99_dbus<br>
-<br>
-<br>
-       mkdir -p ${D}${localstatedir}/lib/dbus<br>
-<br>
-       chown messagebus:messagebus ${D}${localstatedir}/lib/dbus<br>
-<br>
-       chown root:messagebus ${D}${libexecdir}/dbus-daemon-<wbr>launch-helper<br>
-       chmod 4755 ${D}${libexecdir}/dbus-daemon-<wbr>launch-helper<br>
-<br>
-       # Remove Red Hat initscript<br>
-       rm -rf ${D}${sysconfdir}/rc.d<br>
-<br>
-       # Remove empty testexec directory as we don&#39;t build tests<br>
-       rm -rf ${D}${libdir}/dbus-1.0/test<br>
-<br>
-       # Remove /var/run as it is created on startup<br>
-       rm -rf ${D}${localstatedir}/run<br>
-}<br>
-<br>
-do_install_class-native() {<br>
-       autotools_do_install<br>
-<br>
-       # for dbus-glib-native introspection generation<br>
-       install -d ${D}${STAGING_DATADIR_NATIVE}/<wbr>dbus/<br>
-       # N.B. is below install actually required?<br>
-       install -m 0644 bus/session.conf ${D}${STAGING_DATADIR_NATIVE}/<wbr>dbus/session.conf<br>
-<br>
-       # dbus-glib-native and dbus-glib need this xml file<br>
-       ./bus/dbus-daemon --introspect &gt; ${D}${STAGING_DATADIR_NATIVE}/<wbr>dbus/dbus-bus-introspect.xml<br>
-<br>
-       # dbus-launch has no X support so lets not install it in case the host<br>
-       # has a more featured and useful version<br>
-       rm -f ${D}${bindir}/dbus-launch<br>
-}<br>
-<br>
-do_install_class-nativesdk() {<br>
-       autotools_do_install<br>
-<br>
-       # dbus-launch has no X support so lets not install it in case the host<br>
-       # has a more featured and useful version<br>
-       rm -f ${D}${bindir}/dbus-launch<br>
-<br>
-       # Remove /var/run to avoid QA error<br>
-       rm -rf ${D}${localstatedir}/run<br>
-}<br>
-BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
-<br>
-INSANE_SKIP_${PN}-ptest += &quot;build-deps&quot;<br>
diff --git a/meta/recipes-core/dbus/<a href="http://dbus_1.10.22.bb" rel="noreferrer" target="_blank">dbus_<wbr>1.10.22.bb</a> b/meta/recipes-core/dbus/<a href="http://dbus_1.10.22.bb" rel="noreferrer" target="_blank">dbus_<wbr>1.10.22.bb</a><br>
new file mode 100644<br>
index 0000000..370e4b2<br>
--- /dev/null<br>
+++ b/meta/recipes-core/dbus/<a href="http://dbus_1.10.22.bb" rel="noreferrer" target="_blank">dbus_<wbr>1.10.22.bb</a><br>
@@ -0,0 +1,180 @@<br>
+SUMMARY = &quot;D-Bus message bus&quot;<br>
+DESCRIPTION = &quot;D-Bus is a message bus system, a simple way for applications to talk to one another. In addition to interprocess communication, D-Bus helps coordinate process lifecycle; it makes it simple and reliable to code a \&quot;single instance\&quot; application or daemon, and to launch applications and daemons on demand when their services are needed.&quot;<br>
+HOMEPAGE = &quot;<a href="http://dbus.freedesktop.org" rel="noreferrer" target="_blank">http://dbus.freedesktop.org</a>&quot;<br>
+SECTION = &quot;base&quot;<br>
+LICENSE = &quot;AFL-2 | GPLv2+&quot;<br>
+LIC_FILES_CHKSUM = &quot;file://COPYING;md5=<wbr>10dded3b58148f3f1fd804b26354af<wbr>3e \<br>
+                    file://dbus/dbus.h;beginline=<wbr>6;endline=20;md5=<wbr>7755c9d7abccd5dbd25a6a974538bb<wbr>3c&quot;<br>
+DEPENDS = &quot;expat virtual/libintl&quot;<br>
+RDEPENDS_dbus_class-native = &quot;&quot;<br>
+RDEPENDS_dbus_class-nativesdk = &quot;&quot;<br>
+PACKAGES += &quot;${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;ptest&#39;, &#39;${PN}-ptest&#39;, &#39;&#39;, d)}&quot;<br>
+ALLOW_EMPTY_dbus-ptest = &quot;1&quot;<br>
+RDEPENDS_dbus-ptest_class-<wbr>target = &quot;dbus-test-ptest&quot;<br>
+<br>
+SRC_URI = &quot;<a href="http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz" rel="noreferrer" target="_blank">http://dbus.freedesktop.org/<wbr>releases/dbus/dbus-${PV}.tar.<wbr>gz</a> \<br>
+           file://tmpdir.patch \<br>
+           file://dbus-1.init \<br>
+           file://os-test.patch \<br>
+           file://clear-guid_from_server-<wbr>if-send_negotiate_unix_f.patch \<br>
+           file://0001-configure.ac-<wbr>explicitely-check-stdint.h.<wbr>patch \<br>
+&quot;<br>
+<br>
+SRC_URI[md5sum] = &quot;<wbr>baaa10b7cb49086ad91179a8decfad<wbr>c5&quot;<br>
+SRC_URI[sha256sum] = &quot;<wbr>e2b1401e3eedc7b5c9a2034d31254c<wbr>886e1fcbc7858006e0a1c59158fe4b<wbr>7b97&quot;<br>
+<br>
+inherit useradd autotools pkgconfig gettext update-rc.d upstream-version-is-even<br>
+<br>
+INITSCRIPT_NAME = &quot;dbus-1&quot;<br>
+INITSCRIPT_PARAMS = &quot;start 02 5 3 2 . stop 20 0 1 6 .&quot;<br>
+<br>
+python __anonymous() {<br>
+    if not bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;sysvinit&#39;, True, False, d):<br>
+        d.setVar(&quot;INHIBIT_UPDATERCD_<wbr>BBCLASS&quot;, &quot;1&quot;)<br>
+}<br>
+<br>
+USERADD_PACKAGES = &quot;${PN}&quot;<br>
+GROUPADD_PARAM_${PN} = &quot;-r netdev&quot;<br>
+USERADD_PARAM_${PN} = &quot;--system --home ${localstatedir}/lib/dbus \<br>
+                       --no-create-home --shell /bin/false \<br>
+                       --user-group messagebus&quot;<br>
+<br>
+CONFFILES_${PN} = &quot;${sysconfdir}/dbus-1/system.<wbr>conf ${sysconfdir}/dbus-1/session.<wbr>conf&quot;<br>
+<br>
+DEBIANNAME_${PN} = &quot;dbus-1&quot;<br>
+<br>
+PACKAGES =+ &quot;${PN}-lib&quot;<br>
+<br>
+OLDPKGNAME = &quot;dbus-x11&quot;<br>
+OLDPKGNAME_class-nativesdk = &quot;&quot;<br>
+<br>
+# for compatibility<br>
+RPROVIDES_${PN} = &quot;${OLDPKGNAME}&quot;<br>
+RREPLACES_${PN} += &quot;${OLDPKGNAME}&quot;<br>
+<br>
+FILES_${PN} = &quot;${bindir}/dbus-daemon* \<br>
+               ${bindir}/dbus-uuidgen \<br>
+               ${bindir}/dbus-cleanup-sockets \<br>
+               ${bindir}/dbus-send \<br>
+               ${bindir}/dbus-monitor \<br>
+               ${bindir}/dbus-launch \<br>
+               ${bindir}/dbus-run-session \<br>
+               ${bindir}/dbus-update-<wbr>activation-environment \<br>
+               ${libexecdir}/dbus* \<br>
+               ${sysconfdir} \<br>
+               ${localstatedir} \<br>
+               ${datadir}/dbus-1/services \<br>
+               ${datadir}/dbus-1/system-<wbr>services \<br>
+               ${datadir}/dbus-1/session.d \<br>
+               ${datadir}/dbus-1/session.conf \<br>
+               ${datadir}/dbus-1/system.d \<br>
+               ${datadir}/dbus-1/system.conf \<br>
+               ${systemd_system_unitdir} \<br>
+               ${systemd_user_unitdir} \<br>
+&quot;<br>
+FILES_${PN}-lib = &quot;${libdir}/lib*.so.*&quot;<br>
+RRECOMMENDS_${PN}-lib = &quot;${PN}&quot;<br>
+FILES_${PN}-dev += &quot;${libdir}/dbus-1.0/include ${bindir}/dbus-test-tool&quot;<br>
+<br>
+PACKAGE_WRITE_DEPS += &quot;${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;,&#39;systemd sysvinit&#39;,&#39;systemd-systemctl-<wbr>native&#39;,&#39;&#39;,d)}&quot;<br>
+pkg_postinst_dbus() {<br>
+       # If both systemd and sysvinit are enabled, mask the dbus-1 init script<br>
+        if ${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;,&#39;systemd sysvinit&#39;,&#39;true&#39;,&#39;false&#39;,d)}; then<br>
+               if [ -n &quot;$D&quot; ]; then<br>
+                       OPTS=&quot;--root=$D&quot;<br>
+               fi<br>
+               systemctl $OPTS mask dbus-1.service<br>
+       fi<br>
+<br>
+       if [ -z &quot;$D&quot; ] &amp;&amp; [ -e /etc/init.d/populate-volatile.<wbr>sh ] ; then<br>
+               /etc/init.d/populate-volatile.<wbr>sh update<br>
+       fi<br>
+}<br>
+<br>
+EXTRA_OECONF = &quot;--disable-tests \<br>
+                --disable-xml-docs \<br>
+                --disable-doxygen-docs \<br>
+                --disable-libaudit \<br>
+                --enable-largefile \<br>
+                &quot;<br>
+<br>
+EXTRA_OECONF_append_class-<wbr>target = &quot; SYSTEMCTL=${base_bindir}/<wbr>systemctl&quot;<br>
+EXTRA_OECONF_append_class-<wbr>native = &quot; --disable-selinux&quot;<br>
+<br>
+PACKAGECONFIG ??= &quot;${@bb.utils.filter(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;systemd x11&#39;, d)}&quot;<br>
+PACKAGECONFIG_class-native = &quot;&quot;<br>
+PACKAGECONFIG_class-nativesdk = &quot;&quot;<br>
+<br>
+PACKAGECONFIG[systemd] = &quot;--enable-systemd --with-systemdsystemunitdir=${<wbr>systemd_system_unitdir},--<wbr>disable-systemd --without-<wbr>systemdsystemunitdir,systemd&quot;<br>
+PACKAGECONFIG[x11] = &quot;--with-x --enable-x11-autolaunch,--<wbr>without-x --disable-x11-autolaunch, virtual/libx11 libsm&quot;<br>
+PACKAGECONFIG[user-session] = &quot;--enable-user-session --with-systemduserunitdir=${<wbr>systemd_user_unitdir},--<wbr>disable-user-session&quot;<br>
+<br>
+do_install() {<br>
+       autotools_do_install<br>
+<br>
+       if ${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;sysvinit&#39;, &#39;true&#39;, &#39;false&#39;, d)}; then<br>
+               install -d ${D}${sysconfdir}/init.d<br>
+               sed &#39;s:@bindir@:${bindir}:&#39; &lt; ${WORKDIR}/dbus-1.init &gt;${WORKDIR}/<a href="http://dbus-1.init.sh" rel="noreferrer" target="_blank">dbus-1.init.sh</a><br>
+               install -m 0755 ${WORKDIR}/<a href="http://dbus-1.init.sh" rel="noreferrer" target="_blank">dbus-1.init.sh</a> ${D}${sysconfdir}/init.d/dbus-<wbr>1<br>
+       fi<br>
+<br>
+       if ${@bb.utils.contains(&#39;DISTRO_<wbr>FEATURES&#39;, &#39;systemd&#39;, &#39;true&#39;, &#39;false&#39;, d)}; then<br>
+               for i in dbus.target.wants sockets.target.wants multi-user.target.wants; do \<br>
+                       install -d ${D}${systemd_system_unitdir}/<wbr>$i; done<br>
+               install -m 0644 ${B}/bus/dbus.service ${B}/bus/dbus.socket ${D}${systemd_system_unitdir}/<br>
+               ln -fs ../dbus.socket ${D}${systemd_system_unitdir}/<wbr>dbus.target.wants/dbus.socket<br>
+               ln -fs ../dbus.socket ${D}${systemd_system_unitdir}/<wbr>sockets.target.wants/dbus.<wbr>socket<br>
+               ln -fs ../dbus.service ${D}${systemd_system_unitdir}/<wbr>multi-user.target.wants/dbus.<wbr>service<br>
+       fi<br>
+<br>
+       install -d ${D}${sysconfdir}/default/<wbr>volatiles<br>
+       echo &quot;d messagebus messagebus 0755 ${localstatedir}/run/dbus none&quot; \<br>
+            &gt; ${D}${sysconfdir}/default/<wbr>volatiles/99_dbus<br>
+<br>
+<br>
+       mkdir -p ${D}${localstatedir}/lib/dbus<br>
+<br>
+       chown messagebus:messagebus ${D}${localstatedir}/lib/dbus<br>
+<br>
+       chown root:messagebus ${D}${libexecdir}/dbus-daemon-<wbr>launch-helper<br>
+       chmod 4755 ${D}${libexecdir}/dbus-daemon-<wbr>launch-helper<br>
+<br>
+       # Remove Red Hat initscript<br>
+       rm -rf ${D}${sysconfdir}/rc.d<br>
+<br>
+       # Remove empty testexec directory as we don&#39;t build tests<br>
+       rm -rf ${D}${libdir}/dbus-1.0/test<br>
+<br>
+       # Remove /var/run as it is created on startup<br>
+       rm -rf ${D}${localstatedir}/run<br>
+}<br>
+<br>
+do_install_class-native() {<br>
+       autotools_do_install<br>
+<br>
+       # for dbus-glib-native introspection generation<br>
+       install -d ${D}${STAGING_DATADIR_NATIVE}/<wbr>dbus/<br>
+       # N.B. is below install actually required?<br>
+       install -m 0644 bus/session.conf ${D}${STAGING_DATADIR_NATIVE}/<wbr>dbus/session.conf<br>
+<br>
+       # dbus-glib-native and dbus-glib need this xml file<br>
+       ./bus/dbus-daemon --introspect &gt; ${D}${STAGING_DATADIR_NATIVE}/<wbr>dbus/dbus-bus-introspect.xml<br>
+<br>
+       # dbus-launch has no X support so lets not install it in case the host<br>
+       # has a more featured and useful version<br>
+       rm -f ${D}${bindir}/dbus-launch<br>
+}<br>
+<br>
+do_install_class-nativesdk() {<br>
+       autotools_do_install<br>
+<br>
+       # dbus-launch has no X support so lets not install it in case the host<br>
+       # has a more featured and useful version<br>
+       rm -f ${D}${bindir}/dbus-launch<br>
+<br>
+       # Remove /var/run to avoid QA error<br>
+       rm -rf ${D}${localstatedir}/run<br>
+}<br>
+BBCLASSEXTEND = &quot;native nativesdk&quot;<br>
+<br>
+INSANE_SKIP_${PN}-ptest += &quot;build-deps&quot;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>