From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJHVt-0006AO-A1 for guix-patches@gnu.org; Thu, 17 May 2018 07:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJHVq-0001vr-6s for guix-patches@gnu.org; Thu, 17 May 2018 07:56:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58334) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJHVq-0001vF-3M for guix-patches@gnu.org; Thu, 17 May 2018 07:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJHVp-0004q6-Ki for guix-patches@gnu.org; Thu, 17 May 2018 07:56:01 -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> Date: Thu, 17 May 2018 19:55:08 +0800 In-Reply-To: <87bmde4q2m.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 17 May 2018 10:57:37 +0200") Message-ID: <874lj6pkdf.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: > 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 correspond= ing >> + ;; to the glib referenced by 'manifest'. Because >> + ;; '%glib' can be either a package or store path,= and >> + ;; there's no way to get the "bin" output for the= 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 h= ooks 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...