Gentoo Archives: gentoo-dev

From: "Paweł Hajdan
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: remove annoying "You should enable -g (or higher) for debugging!" message
Date: Wed, 08 Jun 2011 13:38:27
Message-Id: 4DEF7B0A.2030306@gentoo.org
In Reply to: [gentoo-dev] RFC: remove annoying "You should enable -g (or higher) for debugging!" message by "Paweł Hajdan
1 On 5/7/11 4:20 PM, "Paweł Hajdan, Jr." wrote:
2 > This is mostly a nit-like RFC. The developer profile adds a
3 > profile.bashrc, which prints the "You should enable -g (or higher) for
4 > debugging!" message when "-g" is not in CFLAGS.
5 >
6 > I wonder if we can remove that file. It has been added 3 years ago:
7 >
8 > <http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/targets/developer/profile.bashrc?view=markup>
9 >
10 > It is not obvious from looking at emerge output what prints this
11 > message, it doesn't fit well with the rest of the output, and may be
12 > easy to miss:
13 >
14 > * USE: elibc_glibc gtk kernel_linux test userland_GNU x86
15 > * FEATURES: sandbox splitdebug test userpriv usersandbox
16 > You should enable -g (or higher) for debugging!
17 >>>> Unpacking source...
18 >>>> Unpacking mtr-0.80.tar.gz to /var/tmp/portage/net-analyzer/mtr-0.80/work
19 >
20 > I think it is not necessary for every developer to add "-g" to CFLAGS -
21 > the main point is to have any symbols at all, not just
22 > to-the-file-and-line-precise debugging info. If the latter is needed,
23 > the developer will obviously know what to do.
24 >
25 > What do you think about removing
26 > gentoo-x86/profiles/targets/developer/profile.bashrc file?
27 >
28
29 FYI: I went ahead and committed the change. Enjoy a slightly simpler
30 developer profile!

Attachments

File name MIME type
signature.asc application/pgp-signature