From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: Debugging Guix packages? Date: Tue, 19 Jan 2016 07:56:29 -0800 Message-ID: <87h9i95zp5.fsf@dustycloud.org> References: <20160119024256.GA21542@novena-choice-citizen.lan> 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]:35461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLYfV-0002PP-9B for guix-devel@gnu.org; Tue, 19 Jan 2016 10:58:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLYfQ-00050X-6S for guix-devel@gnu.org; Tue, 19 Jan 2016 10:58:05 -0500 Received: from dustycloud.org ([50.116.34.160]:45933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLYfQ-00050J-2m for guix-devel@gnu.org; Tue, 19 Jan 2016 10:58:00 -0500 In-reply-to: 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: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus writes: > Jookia <166291@gmail.com> writes: > >> It'd be a nice feature to have where I could step through the build pr= ocess in >> an environment close to the actual build and run build commands myself= like >> 'patch' or 'make' or 'configure', but builders can also include Guile = code. > > We already have =E2=80=9Cguix environment --{pure,container} pkg=E2=80=9D= which spawns a > shell where all declared inputs are available and all environment > variables are set, but it does lack a method to run build phases. It > would be very nice if we had a tool to selectively run build phases as > defined in the arguments field. I hadn't thought othat, and yes it would be nice to run the build phases as such. >> Debugging the builder using Guile seems to be somewhat useful but I ha= ven't >> figured out how to do that as I'm not versed in Guile and this may not= be the >> right level of abstraction. > > I have been packaging many applications for Guix and have only felt the > need for something more advanced than =E2=80=9Cguix environment=E2=80=9D= when building > really large stuff like the icedtea or GCC packages. These packages > also have complicated build phases that patch the sources and set > additional environment variables, and it would have been helpful to hav= e > a tool to run selected build phases in the current directory. I've packaged many fewer packages than you have Ricardo, but maybe even because of that (I'm a lot more inexperienced!) it's sometimes hard for me to figure out what's going on. But anyway your above suggestion to start a container or shell and run certain build phases up to a point would help me a lot.