From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Debugging and source code Date: Wed, 25 Jan 2017 14:22:48 +0100 Message-ID: <877f5jxoif.fsf@gnu.org> References: <20170125065343.GB6221@mail.thebird.nl> 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]:53347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWNXJ-0003sm-V6 for guix-devel@gnu.org; Wed, 25 Jan 2017 08:22:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWNXH-00070D-BB for guix-devel@gnu.org; Wed, 25 Jan 2017 08:22:53 -0500 In-Reply-To: <20170125065343.GB6221@mail.thebird.nl> (Pjotr Prins's message of "Wed, 25 Jan 2017 06:53:43 +0000") 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" To: Pjotr Prins Cc: guix-devel@gnu.org 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 source > code to fetch. You can always get the right source code by running =E2=80=9Cguix build -S package=E2=80=9D. OTOH having the source directly in the =E2=80=9Cdebug=E2=80=9D (or =E2=80= =9Csource=E2=80=9D?) output as you suggest would be more convenient. The only downside is the extra size of the =E2=80=9Cdebug=E2=80=9D output. = Most of the time that=E2=80=99s a price people are happy to pay when they are installin= g the =E2=80=9Cdebug=E2=80=9D output. But sometimes maybe not. For example, I always have gcc-toolchain:debug, libgc:debug, and a few others in my profile, =E2=80=9Cjust in case.=E2=80=9D My goal is to have l= ibc and libgc symbols when I something goes wrong, but I typically already have checkouts of these libraries elsewhere. If the source was in the =E2=80=9Cdebug=E2=80=9D output, I=E2=80=99d pay a pretty high cost (esp. fo= r libc) that I could have avoided. Maybe this is a corner case, though. What do people think? Ludo=E2=80=99.