summaryrefslogtreecommitdiffstats
path: root/meta/packages/dbus/dbus.inc
diff options
context:
space:
mode:
authorKevin Tian <kevin.tian@intel.com>2010-08-11 13:34:54 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-12 15:39:24 +0100
commite101642a61fc418273c1cd4d58a9564b4bdecc5c (patch)
tree8890d90be0403bd1a9161f32ceb3d5cd1b7a27b5 /meta/packages/dbus/dbus.inc
parentcf1e754b3fee3c7ae907e7ae30233083d7892215 (diff)
downloadpoky-e101642a61fc418273c1cd4d58a9564b4bdecc5c.tar.gz
populate-volatile.sh: cleanup duplicated invocations and remove boot warning
For one, populate-volatile.sh is itself a rcS script which is invoked earlier than package's own postinst method (last one in rcS). If package has already installed their volatile files correctly, it doesn't make sense to update volatile again in postinst since nothing is changed. On the other hand, dbus/hal are special since their user/group are only created in the target. If they pre-install volatiles like others, populate-volatile.sh will report "undefined user" since at that time their user/group haven't been created. The better way solving this is to generate their volatile in the fly after user/group are created, and then update volatiles. This fix [BUGID #121] Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/packages/dbus/dbus.inc')
-rw-r--r--meta/packages/dbus/dbus.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/packages/dbus/dbus.inc b/meta/packages/dbus/dbus.inc
index a085287fc4..90a38e66a9 100644
--- a/meta/packages/dbus/dbus.inc
+++ b/meta/packages/dbus/dbus.inc
@@ -9,8 +9,7 @@ DEPENDS = "expat glib-2.0 virtual/libintl virtual/libx11 libsm"
9SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ 9SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
10 file://tmpdir.patch; \ 10 file://tmpdir.patch; \
11 file://fix-install-daemon.patch; \ 11 file://fix-install-daemon.patch; \
12 file://dbus-1.init \ 12 file://dbus-1.init"
13 file://99_dbus"
14 13
15inherit autotools pkgconfig gettext update-rc.d 14inherit autotools pkgconfig gettext update-rc.d
16 15
@@ -54,6 +53,10 @@ pkg_postinst_dbus() {
54 53
55 grep -q netdev: /etc/group || addgroup netdev 54 grep -q netdev: /etc/group || addgroup netdev
56 chmod u+s /usr/libexec/dbus-daemon-launch-helper 55 chmod u+s /usr/libexec/dbus-daemon-launch-helper
56
57 # add volatile after new user/grp are created
58 echo "d messagebus messagebus 0755 /var/run/dbus none" > /etc/default/volatiles/99_dbus
59 /etc/init.d/populate-volatile.sh update
57} 60}
58 61
59EXTRA_OECONF_X = "--with-x" 62EXTRA_OECONF_X = "--with-x"
@@ -70,9 +73,6 @@ EXTRA_OECONF = "--disable-tests \
70do_install() { 73do_install() {
71 autotools_do_install 74 autotools_do_install
72 75
73 install -d ${D}/etc/default/volatiles
74 install -m 0644 ${WORKDIR}/99_dbus ${D}/etc/default/volatiles/
75
76 install -d ${D}${sysconfdir}/init.d 76 install -d ${D}${sysconfdir}/init.d
77 install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1 77 install -m 0755 ${WORKDIR}/dbus-1.init ${D}${sysconfdir}/init.d/dbus-1
78} 78}