From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jookia <166291@gmail.com> Subject: Re: Debugging Guix packages? Date: Fri, 22 Jan 2016 09:10:10 +1100 Message-ID: <20160121221010.GA29851@novena-choice-citizen.lan> References: <20160119024256.GA21542@novena-choice-citizen.lan> <874me7x4zd.fsf@gnu.org> <20160121002134.GA14628@novena-choice-citizen.lan> <87zivywsxt.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]:40870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <166291@gmail.com>) id 1aMNYJ-00022w-So for guix-devel@gnu.org; Thu, 21 Jan 2016 17:18:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <166291@gmail.com>) id 1aMNYI-000882-WE for guix-devel@gnu.org; Thu, 21 Jan 2016 17:18:03 -0500 Content-Disposition: inline In-Reply-To: <87zivywsxt.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 Thu, Jan 21, 2016 at 09:58:38PM +0100, Ludovic Courtès wrote: > Jookia <166291@gmail.com> skribis: > > > 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. > > To get the unpatched source, you can always comment out the ‘patches’ > field, and then run, say: > > tar xf $(guix build -S my-package) > > Or do I misunderstand? One difficulty with the approach of modifying the package is that in a lot of cases Guix is read-only in a store. So I guess the right way to do this patching is to modify packages and have Guix use that, though this solution applies to everything. Maybe a debugger isn't needed? I find it hard to justify outside 'it makes it easier to try new things quickly'. > Ludo’. Cheers, Jookia.