diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-11-08 15:31:32 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-10 11:37:10 +0000 |
commit | cb1bc7668eef0804250561309e8669ba0ed9c338 (patch) | |
tree | 4c7509a12b450d8bb06340654ea35128d7af4b86 /meta/recipes-support | |
parent | b81caca23126b7b20535c1993a3972085e65e59b (diff) | |
download | poky-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.inc | 9 | ||||
-rw-r--r-- | meta/recipes-support/shared-mime-info/shared-mime-info_0.91.bb | 2 |
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" | |||
17 | FILES_${PN} += "${datadir}/mime" | 17 | FILES_${PN} += "${datadir}/mime" |
18 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" | 18 | FILES_${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 | ||
22 | PACKAGES += "shared-mime-info-data" | ||
23 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" | ||
24 | RDEPENDS_shared-mime-info-data = "shared-mime-info" | ||
25 | |||
20 | do_install () { | 26 | do_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 | ||
29 | do_install_virtclass-native () { | 32 | do_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 @@ | |||
1 | require shared-mime-info.inc | 1 | require shared-mime-info.inc |
2 | PR = "r1" | 2 | PR = "r2" |
3 | 3 | ||
4 | SRC_URI[md5sum] = "982a211560ba4c47dc791ccff34e8fbc" | 4 | SRC_URI[md5sum] = "982a211560ba4c47dc791ccff34e8fbc" |
5 | SRC_URI[sha256sum] = "98cfebe1d809afb24934e634373821e2a1dfa86fc6462cab230589a1c80988bd" | 5 | SRC_URI[sha256sum] = "98cfebe1d809afb24934e634373821e2a1dfa86fc6462cab230589a1c80988bd" |