mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
shared-mime-info: Don't run the util for the native version of the package
The whole point of building a native version of this package is to provide the share-mime-info binary so using it in do_install of the native package is incorrect. Add a modified do_install for the native version of the package to avoid this. [BUGID #466] Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
|
|||||||
|
|
||||||
DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
|
DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
|
||||||
DEPENDS_virtclass-native = "libxml2-native intltool-native glib-2.0-native"
|
DEPENDS_virtclass-native = "libxml2-native intltool-native glib-2.0-native"
|
||||||
PR = "r0"
|
PR = "r1"
|
||||||
|
|
||||||
SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2"
|
SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2"
|
||||||
|
|
||||||
@@ -18,11 +18,17 @@ EXTRA_OECONF = "--disable-update-mimedb"
|
|||||||
FILES_${PN} += "${datadir}/mime"
|
FILES_${PN} += "${datadir}/mime"
|
||||||
FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
|
FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
|
||||||
|
|
||||||
do_install_append() {
|
do_install () {
|
||||||
update-mime-database ${D}${datadir}/mime
|
autotools_do_install
|
||||||
|
|
||||||
# we do not need it on device and it is huge
|
update-mime-database ${D}${datadir}/mime
|
||||||
rm ${D}${datadir}/mime/packages/freedesktop.org.xml
|
|
||||||
|
# we do not need it on device and it is huge
|
||||||
|
rm ${D}${datadir}/mime/packages/freedesktop.org.xml
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install_virtclass-native () {
|
||||||
|
autotools_do_install
|
||||||
}
|
}
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|||||||
Reference in New Issue
Block a user