From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 3/3] gnu: Add ruby-i18n. Date: Thu, 02 Oct 2014 10:35:32 +0200 Message-ID: <87zjde6f8r.fsf@gnu.org> References: <1411917760-28557-1-git-send-email-dthompson2@worcester.edu> <1411917760-28557-3-git-send-email-dthompson2@worcester.edu> <877g0j4miz.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]:43945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZbrK-0005T1-Nf for guix-devel@gnu.org; Thu, 02 Oct 2014 04:35:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZbrF-0007LT-E9 for guix-devel@gnu.org; Thu, 02 Oct 2014 04:35:34 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:44820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZbrF-0007LI-6n for guix-devel@gnu.org; Thu, 02 Oct 2014 04:35:29 -0400 In-Reply-To: (David Thompson's message of "Wed, 1 Oct 2014 15:49:08 -0400") 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: "Thompson, David" Cc: guix-devel "Thompson, David" skribis: > On Wed, Oct 1, 2014 at 3:28 PM, Ludovic Court=C3=A8s wrote: >> Hello, >> >> I just noticed this: >> >> $ guix gc --references /gnu/store/whj6j9f34adpzwhfj3qf00fcq9zsb3hp-rub= y-i18n-0.6.11 >> [nothing here] >> >> Apparently the .gem is +/- a gzip archive, which makes it opaque to the >> GC, hence the above result. >> >> Is it something we should worry about, or is it fine because .gem files >> in general don=E2=80=99t won=E2=80=99t hold any reference to something e= lse? >> > > There should be many other files there, too, right? Yes, notably all the .rb files. > The Ruby source should be there in plain text. In the case of the > i18n gem, it doesn't depend on any external librararies, so there's no > references to be found since it doesn't directly refer to the Ruby > interpreter that built the gem (should it?). This is fine. > Now, when a gem has other dependencies, my suspicion is that there > also won't be any references, which is definitely something to worry > about. Actually it depends. I hadn=E2=80=99t noticed, but since all the .rb source files are there, uncompressed, that means that if a reference is embedded in the source, it *will* be scanned correctly by the GC. So maybe there=E2=80=99s no real problem, after all. Thanks, Ludo=E2=80=99.