From: Sven Neumann <s.neumann@raumfeld.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] gvfs: fix installation of gsettings schemas
Date: Wed, 13 Jul 2011 21:11:18 +0200 [thread overview]
Message-ID: <1310584278.11691.10.camel@bender> (raw)
In-Reply-To: <20110713191135.25b4454b@skate>
On Wed, 2011-07-13 at 19:11 +0200, Thomas Petazzoni wrote:
> Le Wed, 13 Jul 2011 18:54:49 +0200,
> Sven Neumann <s.neumann@raumfeld.com> a ?crit :
>
> > -GVFS_POST_INSTALL_TARGET_HOOKS += GVFS_REMOVE_USELESS_BINARY
> > +define GVFS_REMOVE_TARGET_SCHEMAS
> > + rm $(TARGET_DIR)/usr/share/glib-2.0/schemas/*.xml
> > +endef
> > +
> > +define GVFS_COMPILE_SCHEMAS
> > + $(HOST_DIR)/usr/bin/glib-compile-schemas --targetdir=$(TARGET_DIR)/usr/share/glib-2.0/schemas $(STAGING_DIR)/usr/share/glib-2.0/schemas
> > +endef
> > +
> > +GVFS_POST_INSTALL_TARGET_HOOKS += \
> > + GVFS_REMOVE_USELESS_BINARY \
> > + GVFS_REMOVE_TARGET_SCHEMAS \
> > + GVFS_COMPILE_SCHEMAS
>
> I have no idea what those schemas are, but why do you remove them in
> GVFS_REMOVE_TARGET_SCHEMAS to generate them again in
> GVFS_COMPILE_SCHEMAS ?
The schemas are XML files, usually installed
in /usr/share/glib-2.0/schemas. In that directory there's also a
pre-compiled summary of all schemas, called gschemas.compiled. And this
file is what is actually used at run-time. So each package that provides
such schemas is supposed to add their XML files
to /usr/share/glib-2.0/schemas and then run glib-compile-schemas to
update gschemas.compiled.
The solution I went with is to install the schemas in staging-dir and to
use these as the source for the schema compilation. The compiled form is
then put into the target-dir.
Sven
next prev parent reply other threads:[~2011-07-13 19:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-13 16:54 [Buildroot] [PATCH 1/3] gvfs: update to latest upstream version (1.8.2) Sven Neumann
2011-07-13 16:54 ` [Buildroot] [PATCH 2/3] gvfs: drop dbus-glib dependency Sven Neumann
2011-07-18 21:14 ` Peter Korsgaard
2011-07-13 16:54 ` [Buildroot] [PATCH 3/3] gvfs: fix installation of gsettings schemas Sven Neumann
2011-07-13 17:11 ` Thomas Petazzoni
2011-07-13 19:11 ` Sven Neumann [this message]
2011-07-18 21:18 ` Peter Korsgaard
2011-07-18 21:12 ` [Buildroot] [PATCH 1/3] gvfs: update to latest upstream version (1.8.2) Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1310584278.11691.10.camel@bender \
--to=s.neumann@raumfeld.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox