From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/3] emacs: Handle compiled and compressed autoloads. Date: Wed, 09 Dec 2015 14:58:28 +0100 Message-ID: <87bn9zsozf.fsf@gnu.org> References: <1449398360-9794-1-git-send-email-alezost@gmail.com> <1449398360-9794-2-git-send-email-alezost@gmail.com> <87poyhsw3q.fsf@gnu.org> <87r3iwngtv.fsf@gmail.com> 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]:43795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6fGO-0005Xt-Vf for guix-devel@gnu.org; Wed, 09 Dec 2015 08:58:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6fGJ-0003Tq-Vw for guix-devel@gnu.org; Wed, 09 Dec 2015 08:58:36 -0500 In-Reply-To: <87r3iwngtv.fsf@gmail.com> (Alex Kost's message of "Wed, 09 Dec 2015 11:53:32 +0300") 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: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > Ludovic Court=C3=A8s (2015-12-08 02:00 +0300) wrote: > >> Alex Kost skribis: >> >>> * emacs/guix-emacs.el (guix-emacs-autoloads-regexp): New variable. >>> (guix-emacs-find-autoloads-in-directory): Return a list of autoloads >>> without extensions. >> >> LGTM. >> >> However, note that autoloads may only be compressed when we know they do >> not embed store file names (which I think is usually the case.) > > Thanks for the info, currently none of the emacs packages provides a > compressed 'autoloads' file. Perfect. >> Otherwise there=E2=80=99s a risk of fooling the GC, as in >> . > > Hm, OK. I don't fully understand the issue though. So *.el files of > 'emacs-w3m-1.4.538+0.20141022' will be compressed, and some of these > *.el.gz files contain store file names. Do these files fool GC? Yes. When a derivation build completes, the daemon scans all the files in the derivation outputs for /gnu/store/=E2=80=A6 patterns, and then recor= ds those patterns in the =E2=80=98References=E2=80=99 table of /var/guix/db/db= .sqlite. This is what makes sure that if /gnu/store/A refers to /gnu/store/B, and if /gnu/store/A is live, then /gnu/store/B will not be GC=E2=80=99.d > If so, I think 'emacs-w3m' should be configured with > '--without-compress-install', right? Sounds like it! Thanks, Ludo=E2=80=99.