From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Porting to mips64el Date: Tue, 12 Feb 2013 10:57:44 +0100 Message-ID: <87zjz9yhuv.fsf@gnu.org> References: <8738yvnslh.fsf@karetnikov.org> <87vca2csfk.fsf@gnu.org> <874nhik225.fsf@gnu.org> <201302112234.27887.andreas@enge.fr> <87sj52ijs1.fsf@gnu.org> <871ucmdzq5.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Cce-0007d3-Hf for bug-guix@gnu.org; Tue, 12 Feb 2013 04:58:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5Ccc-0008RR-Ev for bug-guix@gnu.org; Tue, 12 Feb 2013 04:57:56 -0500 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=53584 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Ccc-0008Oj-83 for bug-guix@gnu.org; Tue, 12 Feb 2013 04:57:54 -0500 In-Reply-To: <871ucmdzq5.fsf@karetnikov.org> (Nikita Karetnikov's message of "Mon, 11 Feb 2013 21:37:15 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov skribis: >> So you can either temporarily modify build-aux/download.scm to point to >> fdn.fr/..., or download the file in question by hand and check its hash >> against the one that=E2=80=99s in Makefile.am. > > Please append '-linux' to the following: > > . Done, sorry about that! > By the way, can we change 'Makefile.am' not to download unnecessary > Guile binaries? Should be possible. The thing is, =E2=80=98make dist=E2=80=99 should alway= s bundle everything. Another complication is that on x86_64 it=E2=80=99s interestin= g to have both i686 and x86_64 binaries... > Also, I used the wrong command (i.e., 'nix-hash --type sha256 --base32') > to compute the hashes in 'bootstrap.scm'. > 'nix-hash --type sha256 --flat --base32' should be used instead. Indeed. Note that you can also do: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (use-modules (guix utils) (guix base32)) scheme@(guile-user)> (use-modules (rnrs io ports)) scheme@(guile-user)> (call-with-input-file "bootstrap/i686-linux/mkdir" (compose bytevector->nix-base32-string sha256 get-by= tevector-all)) $3 =3D "13ls4166y7gnykfphzmr0y7pn8kyikp5px4prnnhj1jyk5vhdgfm" --8<---------------cut here---------------end--------------->8--- Granted, it=E2=80=99s more verbose. :-) Maybe we need a command-line interface to that? Ludo=E2=80=99.