From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: =?utf-8?B?4oCYc3RyaXDigJk=?= phase Date: Mon, 27 Oct 2014 05:28:45 -0400 Message-ID: <87d29dj1yq.fsf@netris.org> References: <20141026203111.GA20849@thebird.nl> <87wq7mpfs0.fsf@yeeloong.lan> <20141026234436.GA21721@thebird.nl> <87siiap9s5.fsf@yeeloong.lan> <20141027015650.GB21971@thebird.nl> <87k33m179b.fsf@netris.org> <87tx2panmi.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]:59314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xigbm-0003uR-9X for guix-devel@gnu.org; Mon, 27 Oct 2014 05:29:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xigbd-0008SM-DW for guix-devel@gnu.org; Mon, 27 Oct 2014 05:29:02 -0400 In-Reply-To: <87tx2panmi.fsf_-_@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Mon, 27 Oct 2014 10:05:41 +0100") 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >>> I DO get a load of messages such as >>> >>> strip:/gnu/store/icz59y35qqmm4jcrnkqx7d73xlzsq0lq-ruby-1.8.7-p374/lib= /ruby/1.8/rexml/attlistdecl.rb: >>> File format not recognized >>> >>> is there a way to prevent files with a .rb extension or ruby shebang >>> to be stripped? >> >> In theory the default 'strip' phase could be replaced by one that's more >> selective, but please don't do that. >> >> The problem happens in almost every package, so the improvements should >> be made in the default 'strip' phase. The relevant procedure is 'strip' >> in guix/build/gnu-build-system.scm, but beware that changing that file >> (or just about anything else in that directory) will trigger a full >> rebuild of all packages. It would be nice to do at some point, but it's >> quite far down on our TODO list. > > I think the =E2=80=98strip=E2=80=99 phase is fine this way: sure, it ends= up invoking > =E2=80=98strip=E2=80=99 on files that are not ELF files, but it=E2=80=99s= harmless. So we get > these extra warnings in the build log, but they are really harmless. Large numbers of spurious warnings are not harmless, because they make it unlikely that anyone will notice the warnings worth our attention. They condition us to ignore all warnings, because it's too much work to look through them all. > Conversely, attempts to be more selective may miss actual ELF files. True, but this is more harmless than the spurious warnings, IMO. It merely means that we failed to save some disk space. IMO, the best solution is to check for the presence of ELF headers ourselves. We already have ELF code in Guile master. What do you think? Mark