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

login
register
mail settings
Submitter Constantin Musca
Date Jan. 7, 2013, 9:18 a.m.
Message ID <1357550291-8035-1-git-send-email-constantinx.musca@intel.com>
Download mbox | patch
Permalink /patch/42149/
State New
Headers show

Comments

Constantin Musca - Jan. 7, 2013, 9:18 a.m.
- modify the recipe according to the meta-gnome variant

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
---
 .../recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
Ross Burton - Jan. 7, 2013, 10:42 a.m.
On 7 January 2013 09:18, Constantin Musca <constantinx.musca@intel.com> wrote:
> +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

Patch

diff --git a/meta/recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb b/meta/recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb
index 720858a..d5784af 100644
--- a/meta/recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb
+++ b/meta/recipes-gnome/gnome/gsettings-desktop-schemas_3.7.3.bb
@@ -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
+}