From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: Install hook Date: Sun, 19 Mar 2017 13:50:08 +0100 Message-ID: References: <1489919448.1067.2.camel@pelzflorian.de> <20170319112339.GA2875@jocasta.intra> <20170319131437.00d9608e@polymos.lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpaHn-0003z6-La for guix-devel@gnu.org; Sun, 19 Mar 2017 08:50:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpaHj-0001JD-Mf for guix-devel@gnu.org; Sun, 19 Mar 2017 08:50:15 -0400 Received: from pelzflorian.de ([5.45.111.108]:51178 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cpaHj-0001H8-Ce for guix-devel@gnu.org; Sun, 19 Mar 2017 08:50:11 -0400 Received: from [192.168.178.30] (unknown [95.88.191.99]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 6CF5236000F for ; Sun, 19 Mar 2017 13:50:09 +0100 (CET) In-Reply-To: <20170319131437.00d9608e@polymos.lepiller.eu> 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" To: guix-devel@gnu.org On 03/19/2017 01:14 PM, Julien Lepiller wrote: > I think install hooks are scripts run after each package installation, > that are provided by the package itself. We already have a similar > mechanism that takes place when building the user's profile. See > http://git.savannah.gnu.org/cgit/guix.git/tree/guix/profiles.scm. > For instance, we build a icon-theme.cache cache file for every icon > theme in the user's profile. >=20 > I have seen references to gschemas.compiled in our > gtk-or-glib-build-system. Currently we build the file in each package, > which means that only one version will be present in the user's profile > if they install more that one package containing this file. I believe > gschemas.compiled contains important information about some graphical > packages, and in our current system, only one package can be referenced > that way. >=20 > I think we should make sure that this file is never present in the > output of a package, and add a function to build it in profiles.scm. >=20 > Does it make any sense? >=20 Yes, exactly. These profile hooks look similar to what I meant.