Re: Debugging and source code

2017-01-30 Thread Danny Milosavljevic
Hi, for example when you try guix build -S ldc it will not put phobos in the correct place (which is unpacked to the correct place in a phase). It would be nice if there was a way to run gdb after the build phase ran. [I guess easiest would be if one could insert something after the 'build

Re: Debugging and source code

2017-01-30 Thread Ludovic Courtès
Hi Pjotr! Pjotr Prins skribis: > On Thu, Jan 26, 2017 at 10:54:56AM +0100, Ludovic Courtès wrote: >> 0. Status quo: people need to get the source by themselves with “guix >> build -S”. >> >> 1. The “debug” output, when it exists, always includes the source. >> >> 2. When a “source”

Re: Debugging and source code

2017-01-27 Thread Pjotr Prins
On Thu, Jan 26, 2017 at 10:54:56AM +0100, Ludovic Courtès wrote: > 0. Status quo: people need to get the source by themselves with “guix > build -S”. > > 1. The “debug” output, when it exists, always includes the source. > > 2. When a “source” output exists, the source code is copied t

Re: Debugging and source code

2017-01-26 Thread Ludovic Courtès
Tobias Geerinckx-Rice skribis: > On 2017-01-26 09:11, Chris Marusich wrote: >> We have "guix build -S foo" which fetches the source. It sounds like >> you're suggesting that we remove this and replace it with a "source" >> (or >> "debug-full") output for each package, so to get the source you wo

Re: Debugging and source code

2017-01-26 Thread Ludovic Courtès
Pjotr Prins skribis: > On Wed, Jan 25, 2017 at 06:54:30PM +0100, Ludovic Courtès wrote: >> Pjotr Prins skribis: >> >> > On Wed, Jan 25, 2017 at 02:22:48PM +0100, Ludovic Courtès wrote: >> >> You can always get the right source code by running “guix build -S >> >> package”. >> >> >> >> OTOH hav

Re: Debugging and source code

2017-01-26 Thread Tobias Geerinckx-Rice
On 2017-01-26 09:11, Chris Marusich wrote: We have "guix build -S foo" which fetches the source. It sounds like you're suggesting that we remove this and replace it with a "source" (or "debug-full") output for each package, so to get the source you would run "guix build foo:source" instead. I

Re: Debugging and source code

2017-01-26 Thread Pjotr Prins
On Thu, Jan 26, 2017 at 12:11:19AM -0800, Chris Marusich wrote: > Pjotr Prins writes: > > > On Wed, Jan 25, 2017 at 06:54:30PM +0100, Ludovic Courtès wrote: > >> Pjotr Prins skribis: > >> > >> > On Wed, Jan 25, 2017 at 02:22:48PM +0100, Ludovic Courtès wrote: > >> >> You can always get the righ

Re: Debugging and source code

2017-01-26 Thread Chris Marusich
Pjotr Prins writes: > On Wed, Jan 25, 2017 at 06:54:30PM +0100, Ludovic Courtès wrote: >> Pjotr Prins skribis: >> >> > On Wed, Jan 25, 2017 at 02:22:48PM +0100, Ludovic Courtès wrote: >> >> You can always get the right source code by running “guix build -S >> >> package”. >> >> >> >> OTOH havi

Re: Debugging and source code

2017-01-25 Thread Pjotr Prins
On Wed, Jan 25, 2017 at 09:41:09PM +0100, Danny Milosavljevic wrote: > Hi, > > On Wed, 25 Jan 2017 14:22:48 +0100 > l...@gnu.org (Ludovic Courtès) wrote: > > > Pjotr Prins skribis: > > > > > Since we allow for debug symbols using :debug (great feature!), > > Aha? Why's that not available in o

Re: Debugging and source code

2017-01-25 Thread Pjotr Prins
On Wed, Jan 25, 2017 at 06:54:30PM +0100, Ludovic Courtès wrote: > Pjotr Prins skribis: > > > On Wed, Jan 25, 2017 at 02:22:48PM +0100, Ludovic Courtès wrote: > >> You can always get the right source code by running “guix build -S > >> package”. > >> > >> OTOH having the source directly in the “

Re: Debugging and source code

2017-01-25 Thread Danny Milosavljevic
Hi, On Wed, 25 Jan 2017 14:22:48 +0100 l...@gnu.org (Ludovic Courtès) wrote: > Pjotr Prins skribis: > > > Since we allow for debug symbols using :debug (great feature!), Aha? Why's that not available in our icecat package? I have to find out how it's done elsewhere and copy it :) > You can

Re: Debugging and source code

2017-01-25 Thread Ludovic Courtès
Pjotr Prins skribis: > On Wed, Jan 25, 2017 at 02:22:48PM +0100, Ludovic Courtès wrote: >> You can always get the right source code by running “guix build -S >> package”. >> >> OTOH having the source directly in the “debug” (or “source”?) output as >> you suggest would be more convenient. >> >>

Re: Debugging and source code

2017-01-25 Thread Pjotr Prins
On Wed, Jan 25, 2017 at 02:22:48PM +0100, Ludovic Courtès wrote: > You can always get the right source code by running “guix build -S > package”. > > OTOH having the source directly in the “debug” (or “source”?) output as > you suggest would be more convenient. > > The only downside is the extra

Re: Debugging and source code

2017-01-25 Thread Ludovic Courtès
Pjotr Prins skribis: > Since we allow for debug symbols using :debug (great feature!), can we > also add the unpacked source tree to the package by default? Say in > ~/.guix-profile/lib/debug/ or some place. Anyone who wants to debug > has to fetch that anyway and that raises the problem of what

Debugging and source code

2017-01-24 Thread Pjotr Prins
Since we allow for debug symbols using :debug (great feature!), can we also add the unpacked source tree to the package by default? Say in ~/.guix-profile/lib/debug/ or some place. Anyone who wants to debug has to fetch that anyway and that raises the problem of what source code to fetch.