1 |
On 5/7/11 5:04 PM, Tomáš Chvátal wrote: |
2 |
> Dne 7.5.2011 16:20, "PaweB Hajdan, Jr." napsal(a): |
3 |
>> This is mostly a nit-like RFC. The developer profile adds a |
4 |
>> profile.bashrc, which prints the "You should enable -g (or higher) for |
5 |
>> debugging!" message when "-g" is not in CFLAGS. |
6 |
> |
7 |
>> I wonder if we can remove that file. It has been added 3 years ago: |
8 |
> |
9 |
>> <http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/profiles/targets/developer/profile.bashrc?view=markup> |
10 |
> |
11 |
>> It is not obvious from looking at emerge output what prints this |
12 |
>> message, it doesn't fit well with the rest of the output, and may be |
13 |
>> easy to miss: |
14 |
> |
15 |
>> * USE: elibc_glibc gtk kernel_linux test userland_GNU x86 |
16 |
>> * FEATURES: sandbox splitdebug test userpriv usersandbox |
17 |
>> You should enable -g (or higher) for debugging! |
18 |
>>>>> Unpacking source... |
19 |
>>>>> Unpacking mtr-0.80.tar.gz to /var/tmp/portage/net-analyzer/mtr-0.80/work |
20 |
> |
21 |
>> I think it is not necessary for every developer to add "-g" to CFLAGS - |
22 |
>> the main point is to have any symbols at all, not just |
23 |
>> to-the-file-and-line-precise debugging info. If the latter is needed, |
24 |
>> the developer will obviously know what to do. |
25 |
> |
26 |
>> What do you think about removing |
27 |
>> gentoo-x86/profiles/targets/developer/profile.bashrc file? |
28 |
> |
29 |
> I would preffer to see there -ggdb and FEATURES=splitdebug to be honest. |
30 |
|
31 |
FEATURES=splitdebug is already a part of the developer profile. And then |
32 |
that bashrc file was added there to avoid adding -ggdb to CFLAGS |
33 |
unconditionally (it increases compile/link time a *lot* for packages |
34 |
like xulrunner, webkit, or chromium). |
35 |
|
36 |
This was the only response to my e-mail, so I guess most people don't |
37 |
care about the bashrc file in question. I'd still like to remove it - |
38 |
was your reply a "no way" or just "I'd prefer something else"? |