guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging Guix packages?


From: Ben Woodcroft
Subject: Re: Debugging Guix packages?
Date: Thu, 21 Jan 2016 11:59:00 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Hi there,

On 21/01/16 10:21, Jookia wrote:
On Wed, Jan 20, 2016 at 11:26:14PM +0100, Ludovic Courtès wrote:
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.
Can I ask, why Ricardo's suggestion does not address this concern? This approach makes builds fail, so then you can inspect. I often use this.

My 2c here, would it be possible to echo any system* commands used in the build to the log? This would help make things concrete and put flags in the build log sand.

Thanks,
ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]