From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJtaE-0008EI-8i for guix-patches@gnu.org; Sat, 19 May 2018 00:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJtaB-0002cO-3m for guix-patches@gnu.org; Sat, 19 May 2018 00:35:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJtaB-0002cC-0J for guix-patches@gnu.org; Sat, 19 May 2018 00:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJtaA-00086M-GL for guix-patches@gnu.org; Sat, 19 May 2018 00:35:02 -0400 Subject: [bug#31462] [PATCH] profiles: Add hook to generate "gschemas.compiled". Resent-Message-ID: From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) References: <20180515124917.1751-1-dannym@scratchpost.org> <87bmde4q2m.fsf@gnu.org> <874lj6pkdf.fsf@member.fsf.org> <87k1s2xol9.fsf@gnu.org> Date: Sat, 19 May 2018 12:34:09 +0800 In-Reply-To: <87k1s2xol9.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 17 May 2018 17:56:50 +0200") Message-ID: <87o9hcxnzy.fsf@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 31462@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hey, > > iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Hello! >>> >>> Danny Milosavljevic skribis: >>> >>>> * guix/profiles.scm (glib-schemas): New procedure. >>>> (%default-profile-hooks): Add it. >>> >>> [...] >>> >>>> + (mlet %store-monad ((%glib (manifest-lookup-package manifest "glib"= )) >>>> + ;; XXX: Can't use glib-compile-schemas correspo= nding >>>> + ;; to the glib referenced by 'manifest'. Becau= se >>>> + ;; '%glib' can be either a package or store pat= h, and >>>> + ;; there's no way to get the "bin" output for t= he later. >>>> + (glib-compile-schemas >>>> + -> #~(string-append #+glib:bin >>>> + "/bin/glib-compile-schemas= "))) >>> >>> Oh right, too bad. >>> >>> =E5=AE=8B=E6=96=87=E6=AD=A6, any comments, since you wrote the existing= hooks in that area? >>> >> >> Well, I think this situation is not changed. Our profile hooks >> currently use latest version of zlib, gzip, guile-gdbm-ffi, gtk+, ghc >> and etc. We'd like to use packages from the manifest to avoid >> additional downloads, but it's not awlays possible... > > Right, so that=E2=80=99s not new. > > You=E2=80=99re OK with the rest of the patch? > Yes, it looks good to me, and it's useful for the 'dconf-editor' package, which can edit the dconf database with the support from available gsetting schemas.