From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: How to deal with system-wide state databases Date: Mon, 13 Jun 2016 17:11:57 +0200 Message-ID: <8737ohcede.fsf@gnu.org> References: <87porppewk.fsf@gnu.org> <87mvmtyyio.fsf@gnu.org> <87wplttout.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]:34739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCTX0-0002ym-Ff for guix-devel@gnu.org; Mon, 13 Jun 2016 11:12:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCTWy-00084D-BK for guix-devel@gnu.org; Mon, 13 Jun 2016 11:12:01 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60943) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCTWy-000847-7t for guix-devel@gnu.org; Mon, 13 Jun 2016 11:12:00 -0400 In-Reply-To: <87wplttout.fsf@gnu.org> (Roel Janssen's message of "Mon, 13 Jun 2016 11:33:30 +0200") 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: Roel Janssen Cc: guix-devel@gnu.org Roel Janssen skribis: > Ludovic Court=C3=A8s writes: > >> Hello! >> >> Roel Janssen skribis: >> >>> How should we deal with mechanisms like this? Should I change the scro= llkeeper >>> database directory per program, so in this case it becomes: >>> /gnu/store/xgbvyqs...-gparted-0.26.0/var/lib/scrollkeeper >>> >>> Or can we deal with this in a more cross-package way? >> >> Maybe we could add a profile hook to =E2=80=98%default-profile-hooks=E2= =80=99 in (guix >> profiles)? > > I think people only need Scrollkeeper when they wish to have the > documentation available in Yelp (GNOME's help browser). So it only > affects a few people I believe. I think documentation is quite useful, in general. :-) > Would it then still make sense? Maybe this hook should only be active > when Yelp is installed in the profile on which the transaction > operates. Is that possible? Definitely. For instance, =E2=80=98ghc-package-cache-file=E2=80=99 does ex= actly this kind of trick. (It=E2=80=99s not completely satisfying, since we=E2=80=99r= e simply matching file names, but it does the job.) > With this construct, I'd have to patch out the 'scrollkeeper-update' > command from the GParted build system. Yes. Thanks, Ludo=E2=80=99.