From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: =?utf-8?B?4oCYc25pcHBldOKAmQ==?= in Date: Fri, 08 Nov 2013 22:15:14 +0100 Message-ID: <878uwyvbml.fsf@gnu.org> References: <87ob6gpd5k.fsf@karetnikov.org> <20131023115728.GA17339@debian.eduroam.u-bordeaux.fr> <87iow8km91.fsf_-_@karetnikov.org> <87eh6tk75p.fsf@gnu.org> <87a9hfq1df.fsf_-_@gnu.org> <87r4ars8sn.fsf@netris.org> <87wqkjavxf.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]:54720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VetSc-0002be-Bc for guix-devel@gnu.org; Fri, 08 Nov 2013 16:23:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VetOe-0002ni-FD for guix-devel@gnu.org; Fri, 08 Nov 2013 16:19:22 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:57933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VetOe-0002n3-8l for guix-devel@gnu.org; Fri, 08 Nov 2013 16:15:16 -0500 In-Reply-To: <87wqkjavxf.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 08 Nov 2013 14:02:20 +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: Mark H Weaver Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Now, I think we could replace =E2=80=98snippet=E2=80=99 by =E2=80=98phase= s=E2=80=99. That field would > contain an object with exactly 4 fields: unpack, patch, > user (default to #f), and repack. > > In the LAPACK case, we=E2=80=99d do: > > (origin > (uri ...) > (sha256 ...) > (phases (origin-phases (inherit %standard-origin-phases) > (user '(for-each delete-file ...))))) > > I think that would address your problem. The set of phases would be > fixed, though, unlike what =E2=80=98gnu-build-system=E2=80=99 does, but I= think that=E2=80=99s > fine. The problem with that is that it makes the semantics less obvious: the =E2=80=98phases=E2=80=99 field is only used when it has a =E2=80=98user=E2= =80=99 value other than #f, or when the origin has a =E2=80=98patches=E2=80=99 field. It seems that it needs more thought. Ludo=E2=80=99.