diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-08-11 13:34:54 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-12 15:39:24 +0100 |
commit | e101642a61fc418273c1cd4d58a9564b4bdecc5c (patch) | |
tree | 8890d90be0403bd1a9161f32ceb3d5cd1b7a27b5 /meta/packages/fontconfig | |
parent | cf1e754b3fee3c7ae907e7ae30233083d7892215 (diff) | |
download | poky-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/fontconfig')
-rw-r--r-- | meta/packages/fontconfig/fontconfig_2.8.0.bb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/meta/packages/fontconfig/fontconfig_2.8.0.bb b/meta/packages/fontconfig/fontconfig_2.8.0.bb index f83d72cdda..e0403ecb3c 100644 --- a/meta/packages/fontconfig/fontconfig_2.8.0.bb +++ b/meta/packages/fontconfig/fontconfig_2.8.0.bb | |||
@@ -11,7 +11,7 @@ SECTION = "libs" | |||
11 | 11 | ||
12 | DEPENDS = "expat freetype zlib" | 12 | DEPENDS = "expat freetype zlib" |
13 | 13 | ||
14 | PR = "r0" | 14 | PR = "r1" |
15 | 15 | ||
16 | SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \ | 16 | SRC_URI = "http://fontconfig.org/release/fontconfig-${PV}.tar.gz \ |
17 | file://fix-pkgconfig.patch \ | 17 | file://fix-pkgconfig.patch \ |
@@ -73,17 +73,9 @@ do_configure_append () { | |||
73 | 73 | ||
74 | } | 74 | } |
75 | 75 | ||
76 | do_install () { | ||
77 | autotools_do_install | ||
78 | } | ||
79 | |||
80 | do_install_append() { | 76 | do_install_append() { |
81 | install -d ${D}${sysconfdir}/default/volatiles | 77 | install -d ${D}${sysconfdir}/default/volatiles |
82 | install -m 0644 ${WORKDIR}/97_fontconfig ${D}${sysconfdir}/default/volatiles | 78 | install -m 0644 ${WORKDIR}/97_fontconfig ${D}${sysconfdir}/default/volatiles |
83 | rmdir ${D}${localstatedir}/cache/fontconfig | 79 | rmdir ${D}${localstatedir}/cache/fontconfig |
84 | rmdir ${D}${localstatedir}/cache/ | 80 | rmdir ${D}${localstatedir}/cache/ |
85 | } | 81 | } |
86 | |||
87 | pkg_postinst_hal () { | ||
88 | /etc/init.d/populate-volatile.sh update | ||
89 | } | ||