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, 08 Jan 2013 21:50:49 +0100 Message-ID: <876237bdqu.fsf@gnu.org> References: <8738yvnslh.fsf@karetnikov.org> <87y5gfa7t9.fsf@gnu.org> <87vcbjldp5.fsf@karetnikov.org> <87zk0v4e29.fsf@gnu.org> <87wqvzclyj.fsf@karetnikov.org> <87ehi71bl6.fsf@gnu.org> <87pq1rma9g.fsf@karetnikov.org> <87wqvyxvhv.fsf@gnu.org> <87lic3vm8s.fsf@karetnikov.org> <871udv6bny.fsf@gnu.org> <87d2xfk9qb.fsf@karetnikov.org> <87k3rnr61e.fsf@gnu.org> <871udvwna6.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]:57957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsg8O-0006si-V5 for bug-guix@gnu.org; Tue, 08 Jan 2013 15:51:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tsg8L-0003F8-Ft for bug-guix@gnu.org; Tue, 08 Jan 2013 15:50:56 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:15488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsg8K-0003EN-QK for bug-guix@gnu.org; Tue, 08 Jan 2013 15:50:53 -0500 In-Reply-To: <871udvwna6.fsf@karetnikov.org> (Nikita Karetnikov's message of "Tue, 08 Jan 2013 13:18:50 -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: >> With --localstatedir=3D/nix/var/nix (see store.scm and config.scm). > > Actually, it's '--localstatedir=3D/nix/var', but thanks anyway. Oops, sorry. >> Remember: to bootstrap things here, you=E2=80=99re using Nixpkgs. Here = it=E2=80=99s >> Nixpkgs=E2=80=99s glibc that uses kernel.org Linux headers. > > Yes, I understand that I'm using Nixpkgs. But is it possible to use > Linux-libre? Well, you could modify Nixpkgs for that. But note that only the headers are used, and they are bit-for-bit the same as those of the corresponding Linux-Libre. Furthermore, you will no longer need Nixpkgs once you=E2=80=99ve built the bootstrap binaries for Guix, so I would not bother. An unrelated issue that just came to mind: MIPS code for libc is in glibc-ports, right? That means you=E2=80=99ll have to conditionally add th= at to the inputs of glibc, in base.scm. >> At this point, you don=E2=80=99t want to build Hello. ;-) Instead, you= should >> build the bootstrap binaries, as described in HACKING, that will allow >> our distro to be self-contained. Make sure to use =E2=80=98core-updates= =E2=80=99 as a >> starting point. > > Ah, I thought that Guix will bootstrap on the fly if there are no > bootstrap binaries. Well, in a way, yes. That is, instead of using the statically-linked binaries made via make-bootstrap.scm, it will use the dynamically-linked tools provided by Nixpkgs, and then the rest of the procedure is the same=E2=80=93i.e., you end up with binaries that don=E2=80=99t depend on th= ose produced using Nixpkgs. > As far as I can tell, there are errors in 'HACKING'. Here is a snippet: > > ./pre-inst-env guix-build \ > -e '(@@ (distro packages base) %guile-bootstrap-tarball)' \ > --system=3Di686-linux > > There is no '%guile-bootstrap-tarball' in (distro packages base). I > think it should be changed to (distro packages make-bootstrap). Right, will fix. Thanks, Ludo=E2=80=99.