From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: [PATCH] profiles: Generate GHC's package database cache. Date: Sun, 5 Apr 2015 22:27:43 +0200 Message-ID: References: <87mw2mcpcj.fsf@gnu.org> 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]:59064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yer90-0006td-2H for guix-devel@gnu.org; Sun, 05 Apr 2015 16:27:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yer8y-0003jY-TC for guix-devel@gnu.org; Sun, 05 Apr 2015 16:27:45 -0400 In-Reply-To: <87mw2mcpcj.fsf@gnu.org> 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix-devel ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Eventually we could think of more sophisticated way to determine whether > to trigger a given =E2=80=9Chook=E2=80=9D (info-dir, ca-certificates, ghc= .) Perhaps > this =E2=80=98ghc-package-cache-file=E2=80=99 procedure could be added as= an > =E2=80=98environment-hook=E2=80=99 field of the ghc package and it would = be triggered > iff GHC is installed. (This approach would work well for GHC, but not > for info-dir or ca-certificates, though.) On top of the mentioned cases above, there are many programs making use of caches. Some are: * GLib's IO modules normally use a cache file 'giomodule.cache'. We set the env. var. GIO_EXTRA_MODULES, but it's use is explicitly discouraged by the project. * XDG icons 'icon-theme.cache': I see some clashes in my profile (e.g., gtk and Inkscape). * TeX 'ls-R' files: it would probably simplify modularization. * I see python's easy_install site.py clashes in my profile. These are probably harmless, but annoying. It would definitely be good to establish a solid and general way to run "hooks" to address this kind of situations. Regards, Fede