From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jookia <166291@gmail.com> Subject: Re: Debugging Guix packages? Date: Thu, 21 Jan 2016 11:21:34 +1100 Message-ID: <20160121002134.GA14628@novena-choice-citizen.lan> References: <20160119024256.GA21542@novena-choice-citizen.lan> <874me7x4zd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <166291@gmail.com>) id 1aM36y-0006Y6-VV for guix-devel@gnu.org; Wed, 20 Jan 2016 19:28:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <166291@gmail.com>) id 1aM36y-0007IL-4S for guix-devel@gnu.org; Wed, 20 Jan 2016 19:28:28 -0500 Content-Disposition: inline In-Reply-To: <874me7x4zd.fsf@gnu.org> 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: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org On Wed, Jan 20, 2016 at 11:26:14PM +0100, Ludovic Courtès wrote: > Yes, I agree that this would be nice. I wonder how this could be implemented, any ideas? > OTOH, for things like GCC, once you start fiddling with the build tree, > you quickly lose track of what state you’re in. > > My workflow has been: > > guix build foo -K > # build fails > cd /tmp/guix-build* > source environment-variables > # Fiddle with the build tree to get additional info about the problem > # and a possible fix. > # Write a phase that hopefully fixes the issue. > # Try again. > > Since the ‘environment-variables’ file always contains the value of > environment variables at the time where the build failed (rather than > their initial value), it usually works quite well. This could be good enough for now but again this doesn't work with this like builds that don't fail. My concrete example is wanting to patch software but not knowing how to get to the pre-patch state so I can then work from that in testing which patches apply and which don't, or make my own. > My 2¢, > Ludo’. Cheers, Jookia.