[OE-core] [PATCH 1/1] xcursor-transparent-theme: install index.theme explicitly
wenzong.fan at windriver.com
wenzong.fan at windriver.com
Wed Apr 10 03:26:35 UTC 2013
The xcursor-transparent-theme doesn't install index.theme by default,
this might cause below command fails on target:
$ gtk-update-icon-cache -q /usr/share/icons/xcursor-transparent
Error: "gtk-update-icon-cache: No theme index file"
Just install index.theme explicitly to remove those error, its content
is from xcursor-transparent-theme's README file.
[YOCTO #4234]
Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
---
.../xcursor-transparent-theme-0.1.1/index.theme | 2 ++
.../xcursor-transparent-theme_0.1.1.bb | 17 ++++++++++++++---
2 files changed, 16 insertions(+), 3 deletions(-)
create mode 100644 meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/index.theme
diff --git a/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/index.theme b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/index.theme
new file mode 100644
index 0000000..5300850
--- /dev/null
+++ b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme-0.1.1/index.theme
@@ -0,0 +1,2 @@
+[Icon Theme]
+Inherits=xcursor-transparent
diff --git a/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb
index fecc8ea..93770c1 100644
--- a/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb
+++ b/meta/recipes-graphics/xcursor-transparent-theme/xcursor-transparent-theme_0.1.1.bb
@@ -6,14 +6,25 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SECTION = "x11/base"
-PR = "r4"
+PR = "r5"
SRC_URI = "http://downloads.yoctoproject.org/releases/matchbox/utils/xcursor-transparent-theme-${PV}.tar.gz \
file://use-relative-symlinks.patch \
- file://fix_watch_cursor.patch"
+ file://fix_watch_cursor.patch \
+ file://index.theme"
SRC_URI[md5sum] = "7b0c623049d4aab20600d6473f8aab23"
SRC_URI[sha256sum] = "b26adf2d503d01299718390ae39dab4691a67220de09423be0364e9a060bf7e4"
-FILES_${PN} = "${datadir}/icons/xcursor-transparent/cursors/*"
+FILES_${PN} = "${datadir}/icons/xcursor-transparent/cursors/* \
+ ${datadir}/icons/xcursor-transparent/index.theme"
inherit autotools allarch
+
+# This package doesn't provide index.theme by default, this might cause
+# below command fails on target with error: "No theme index file".
+#
+# gtk-update-icon-cache -q /usr/share/icons/xcursor-transparent
+#
+do_install_append(){
+ install -m 0644 -D ${WORKDIR}/index.theme ${D}${datadir}/icons/xcursor-transparent/index.theme
+}
--
1.7.10.4
More information about the Openembedded-core
mailing list