From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: MIPS64/N64 support Date: Fri, 27 Sep 2013 21:00:24 +0200 Message-ID: <874n96qed3.fsf@gnu.org> References: <87vc2o4qwc.fsf@gnu.org> <87y57kljro.fsf@karetnikov.org> <87li3dd844.fsf_-_@karetnikov.org> <87d2opy6qa.fsf@gnu.org> <87r4d577ab.fsf@karetnikov.org> <87zjrswzin.fsf@gnu.org> <87hadygxe8.fsf@karetnikov.org> <87mwnq470w.fsf@gnu.org> <87y5791h9f.fsf@karetnikov.org> <87eh907psx.fsf@gnu.org> <87li37z967.fsf@karetnikov.org> <8761ub143g.fsf@gnu.org> <87k3iqa71l.fsf@karetnikov.org> <87k3iqhrh5.fsf@gnu.org> <877ge3c8lf.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 ([2001:4830:134:3::10]:43241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPdM5-0002lm-JL for guix-devel@gnu.org; Fri, 27 Sep 2013 15:05:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPdLz-0004Em-TO for guix-devel@gnu.org; Fri, 27 Sep 2013 15:05:33 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:37335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPdLz-0004Ed-IA for guix-devel@gnu.org; Fri, 27 Sep 2013 15:05:27 -0400 In-Reply-To: <877ge3c8lf.fsf@karetnikov.org> (Nikita Karetnikov's message of "Fri, 27 Sep 2013 06:16:28 +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: Nikita Karetnikov Cc: guix-devel@gnu.org Nikita Karetnikov skribis: >> Instead of a URL, you can also change bootstrap.scm to refer directly to >> a local file name, like this: > >> (package >> ... >> (source "/home/nikita/my-guile-that-works.tar.gz") >> ...) > > I=E2=80=99m sorry to say that we probably won=E2=80=99t be able to includ= e the MIPS > binaries in 0.4 because it takes like three days to build everything. No problem. We had a tight schedule, and there=E2=80=99ll be a 0.5 eventua= lly anyway. ;-) > The attached error is raised when I=E2=80=99m trying to build =E2=80=98he= llo=E2=80=99. It seems > that the code is trying to use a string as a procedure. > > I can=E2=80=99t spend more time on this issue today, but I=E2=80=99ll try= to look into > it tomorrow. That would be a nice assignment for the hackathon. :-) > -(define (package-from-tarball name* source* program-to-test description*) > - "Return a package that correspond to the extraction of SOURCE*. > -PROGRAM-TO-TEST is a program to run after extraction of SOURCE*, to > -check whether everything is alright." > +;; (define (package-from-tarball name* source* program-to-test descripti= on*) You should keep this procedure as is... > +;; (define %bootstrap-coreutils&co > +;; (package-from-tarball "bootstrap-binaries" > +;; (lambda (system) > +;; (origin > +;; (method url-fetch) > +;; (uri (map (cut string-append <> "/" system > +;; "/20130105/static-binaries.= tar.xz") > +;; %bootstrap-base-urls)) ... and instead modify the =E2=80=98uri=E2=80=99 fields like the one above.= .. > (define %bootstrap-coreutils&co > - (package-from-tarball "bootstrap-binaries" > - (lambda (system) > - (origin > - (method url-fetch) > - (uri (map (cut string-append <> "/" system > - "/20130105/static-binaries.tar= .xz") > - %bootstrap-base-urls)) ... and this one, etc. In short: anytime you see a URL or URL list, replace it with a string containing the local file name. HTH, Ludo=E2=80=99.