bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Porting to mips64el


From: Ludovic Courtès
Subject: Re: Porting to mips64el
Date: Tue, 12 Feb 2013 10:57:44 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Nikita Karetnikov <address@hidden> 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’s in Makefile.am.
>
> Please append '-linux' to the following:
>
> <http://www.fdn.fr/~lcourtes/software/guix/packages/mips64el>.

Done, sorry about that!

> By the way, can we change 'Makefile.am' not to download unnecessary
> Guile binaries?

Should be possible.  The thing is, ‘make dist’ should always bundle
everything.  Another complication is that on x86_64 it’s interesting 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-bytevector-all))
$3 = "13ls4166y7gnykfphzmr0y7pn8kyikp5px4prnnhj1jyk5vhdgfm"
--8<---------------cut here---------------end--------------->8---

Granted, it’s more verbose.  :-)

Maybe we need a command-line interface to that?

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]