From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Debugging Guix packages? Date: Fri, 22 Jan 2016 18:05:57 +0100 Message-ID: <87vb6l4k96.fsf@gnu.org> References: <20160119024256.GA21542@novena-choice-citizen.lan> <874me7x4zd.fsf@gnu.org> <20160121002134.GA14628@novena-choice-citizen.lan> <8760ymy7nf.fsf@gnu.org> <20160122041302.GA7694@thebird.nl> 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]:38270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMf9x-0001eS-1q for guix-devel@gnu.org; Fri, 22 Jan 2016 12:06:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMf9s-0007zt-2E for guix-devel@gnu.org; Fri, 22 Jan 2016 12:06:04 -0500 In-Reply-To: <20160122041302.GA7694@thebird.nl> (Pjotr Prins's message of "Fri, 22 Jan 2016 05:13:02 +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: Pjotr Prins Cc: guix-devel@gnu.org Pjotr Prins skribis: > On Thu, Jan 21, 2016 at 09:55:32PM +0100, Ludovic Court=C3=A8s wrote: >> > I wonder how this could be implemented, any ideas? >>=20 >> Roughly, we could generate a Scheme file containing the list of phases >> (the generated build script contains them, but it immediately passes >> them to =E2=80=98gnu-build=E2=80=99 or similar), which could be loaded i= nto Guile. From >> there we could explicitly manipulate the list of phases and run them. >>=20 >> There are complications though, such as the fact that build systems can >> lack the notion of phases altogether (this is the case of >> =E2=80=98trivial-build-system=E2=80=99, but it may be the only one.) I = wonder if we >> should move phases from the build side to the host side at some point=E2= =80=A6 > > How about extending the -K switch with a build phase option where it > should stop?=20 I=E2=80=99m really skeptical about the usefulness of such a feature. As Ri= cardo suggested earlier, stopping at a specific phase is really easy to do by hand, on the rare occasions where you actually want that. (Not to mention that one can also simply hit C-c while the thing is building.) Ludo=E2=80=99.