mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b81caca231
commit
cb1bc7668e
@@ -17,13 +17,16 @@ EXTRA_OECONF = "--disable-update-mimedb"
|
||||
FILES_${PN} += "${datadir}/mime"
|
||||
FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
|
||||
|
||||
# freedesktop.org.xml is only required when updating the mime database,
|
||||
# package it separately
|
||||
PACKAGES += "shared-mime-info-data"
|
||||
FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
|
||||
RDEPENDS_shared-mime-info-data = "shared-mime-info"
|
||||
|
||||
do_install () {
|
||||
autotools_do_install
|
||||
|
||||
update-mime-database ${D}${datadir}/mime
|
||||
|
||||
# we do not need it on device and it is huge
|
||||
rm ${D}${datadir}/mime/packages/freedesktop.org.xml
|
||||
}
|
||||
|
||||
do_install_virtclass-native () {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
require shared-mime-info.inc
|
||||
PR = "r1"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI[md5sum] = "982a211560ba4c47dc791ccff34e8fbc"
|
||||
SRC_URI[sha256sum] = "98cfebe1d809afb24934e634373821e2a1dfa86fc6462cab230589a1c80988bd"
|
||||
|
||||
Reference in New Issue
Block a user