Skip to contentSkip to conversation

gsettings-desktop-schemas: add missing elements from meta-gnome

PATCH Superseded Constantin Musca 2 participants 2 messages Jan 7, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gsettings-desktop-schemas: add missing elements from meta-gnome

- modify the recipe according to the meta-gnome variant

---
 .../recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
meta/recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb +11 -3
index 720858a..d5784af 100644
@@ -4,12 +4,20 @@ BUGTRACKER = "https://bugzilla.gnome.org/"
 
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+PR = "r1"
+RDEPENDS_${PN} = "glib-2.0-utils"
 
-DEPENDS = "glib-2.0"
-
-inherit gnome pkgconfig autotools gettext
+inherit gnome
 
 GNOME_COMPRESS_TYPE = "xz"
 
 SRC_URI[archive.md5sum] = "6dbede8f6112b7e0dd4864e979b91771"
 SRC_URI[archive.sha256sum] = "1da53e1b960f08ce4b0d472e6f339b7beaf19a7889c15911775abf4efe2ec760"
+
+pkg_postinst_${PN} () {
+    if [ -n "$D" ]; then
+        exit 1
+    fi
+
+    glib-compile-schemas ${datadir}/glib-2.0/schemas
+}
Signature · 1 line
1.7.11.7
#1 lore raw

meta/recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb BUGTRACKER = "https://bugzilla.gnome.org/" · line 23

Quoted 7 lines · Constantin Musca
meta/recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb +7 -0
+pkg_postinst_${PN} () {
+    if [ -n "$D" ]; then
+        exit 1
+    fi
+
+    glib-compile-schemas ${datadir}/glib-2.0/schemas
+}

The compiled form is little-endian and we're already built a native glib-compile-schemas, so you can drop the $D check and perform this postinst on the build host with glib-compile-schemas $D${datadir}/glib-2.0/schemas.

Ross