summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-11-08 15:31:32 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-10 11:37:10 +0000
commitcb1bc7668eef0804250561309e8669ba0ed9c338 (patch)
tree4c7509a12b450d8bb06340654ea35128d7af4b86 /meta/recipes-support
parentb81caca23126b7b20535c1993a3972085e65e59b (diff)
downloadpoky-cb1bc7668eef0804250561309e8669ba0ed9c338.tar.gz
shared-mime-info: package runtime data separately
The freedesktop.org.xml is required when updating the mime database but otherwise not much use. Therefore package it separately, rather than removing it completely, so that it can be used as required for on-device updates without adding almost 2MB to every image which hase shared-mime-info. (From OE-Core rev: 07ee2d7e6b2f571fe405464838e376cf03e5e8e6) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/shared-mime-info/shared-mime-info.inc9
-rw-r--r--meta/recipes-support/shared-mime-info/shared-mime-info_0.91.bb2
2 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info.inc b/meta/recipes-support/shared-mime-info/shared-mime-info.inc
index c8cab291da..57e829c114 100644
--- a/meta/recipes-support/shared-mime-info/shared-mime-info.inc
+++ b/meta/recipes-support/shared-mime-info/shared-mime-info.inc
@@ -17,13 +17,16 @@ EXTRA_OECONF = "--disable-update-mimedb"
17FILES_${PN} += "${datadir}/mime" 17FILES_${PN} += "${datadir}/mime"
18FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" 18FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
19 19
20# freedesktop.org.xml is only required when updating the mime database,
21# package it separately
22PACKAGES += "shared-mime-info-data"
23FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
24RDEPENDS_shared-mime-info-data = "shared-mime-info"
25
20do_install () { 26do_install () {
21 autotools_do_install 27 autotools_do_install
22 28
23 update-mime-database ${D}${datadir}/mime 29 update-mime-database ${D}${datadir}/mime
24
25 # we do not need it on device and it is huge
26 rm ${D}${datadir}/mime/packages/freedesktop.org.xml
27} 30}
28 31
29do_install_virtclass-native () { 32do_install_virtclass-native () {
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info_0.91.bb b/meta/recipes-support/shared-mime-info/shared-mime-info_0.91.bb
index 0c3b01cb9d..bc4a8f70b7 100644
--- a/meta/recipes-support/shared-mime-info/shared-mime-info_0.91.bb
+++ b/meta/recipes-support/shared-mime-info/shared-mime-info_0.91.bb
@@ -1,5 +1,5 @@
1require shared-mime-info.inc 1require shared-mime-info.inc
2PR = "r1" 2PR = "r2"
3 3
4SRC_URI[md5sum] = "982a211560ba4c47dc791ccff34e8fbc" 4SRC_URI[md5sum] = "982a211560ba4c47dc791ccff34e8fbc"
5SRC_URI[sha256sum] = "98cfebe1d809afb24934e634373821e2a1dfa86fc6462cab230589a1c80988bd" 5SRC_URI[sha256sum] = "98cfebe1d809afb24934e634373821e2a1dfa86fc6462cab230589a1c80988bd"