From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: What for 0.5? Date: Mon, 11 Nov 2013 21:35:12 +0100 Message-ID: <87a9haisn3.fsf@gnu.org> References: <87eh6x401c.fsf@gnu.org> <527934B3.2050106@gmail.com> <877gcllm0l.fsf@gnu.org> <20131111175017.GA12274@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfyCe-000233-5l for guix-devel@gnu.org; Mon, 11 Nov 2013 15:35:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfyCY-0007HJ-SX for guix-devel@gnu.org; Mon, 11 Nov 2013 15:35:20 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:10663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfyCY-0007Gl-MA for guix-devel@gnu.org; Mon, 11 Nov 2013 15:35:14 -0500 In-Reply-To: <20131111175017.GA12274@debian> (Andreas Enge's message of "Mon, 11 Nov 2013 18:50:17 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > On Wed, Nov 06, 2013 at 02:04:10PM +0100, Ludovic Court=C3=A8s wrote: >> =E2=80=A2 Use a hack like that of Nixpkgs, which systematically copies= and >> rebuilds (with glib-compile-schemas) the =E2=80=9Cstandard=E2=80=9D = schemas: see >> =E2=80=98doCompileSchemas=E2=80=99 at >> >> and its use at >> . >>=20 >> The latter seems reasonable, and fairly easy to do. > > Could you elaborate on what is happening there? It looks rather mysterious > to me. There=E2=80=99s this snippet: --8<---------------cut here---------------start------------->8--- doCompileSchemas =3D ''=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 for pkg in "${gsettings_desktop_schemas}" "${gtk3}"; do=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 cp -s $pkg/share/glib-2.0/schemas/*.gschema.xml $out/share/glib-2.0/sch= emas/ done=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ${glib}/bin/glib-compile-schemas $out/share/glib-2.0/schemas/=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 '';=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 --8<---------------cut here---------------end--------------->8--- that gets inserted in the post-install phase of Evince and similar programs. In addition, Evince & co. have their $XDG_DATA_DIRS that refers to those schemas: --8<---------------cut here---------------start------------->8--- wrapProgram "$out/bin/evince" \=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 --prefix XDG_DATA_DIRS : "${shared_mime_info}/share:$out/share"=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 --8<---------------cut here---------------end--------------->8--- In effect, it makes sure that all the standard schemas are available along with each application that needs it. Ludo=E2=80=99.