Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659032 - dev-libs/libnl-3.4.0 - do not enable USE=debug by default
Summary: dev-libs/libnl-3.4.0 - do not enable USE=debug by default
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-25 04:47 UTC by Anton Bolshakov
Modified: 2018-08-02 22:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2018-06-25 04:47:47 UTC
There is a new "+debug" flag in this (3.4.0) ebuild which is enabled by default.
Was it done in purpose? I compiled it without debugging and don't see why it must be enabled.

Could you clarify? Thank you.
Comment 1 Anton Bolshakov 2018-06-25 05:07:03 UTC
ok, I found an article
https://www.infradead.org/~tgr/libnl/doc/core.html#_debugging

which explains that even when debugging has been enabled during compilation, it is actually disabled by default and can be enabled using an environment variable.

They should have called it a "debugger" or similar to avoid this confusion with common "debug" feature.

Ok, closing the bug.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-06-25 05:13:05 UTC
(In reply to Anton Bolshakov from comment #1)
> ok, I found an article
> https://www.infradead.org/~tgr/libnl/doc/core.html#_debugging
> 
> which explains that even when debugging has been enabled during compilation,
> it is actually disabled by default and can be enabled using an environment
> variable.

Right.

> They should have called it a "debugger" or similar to avoid this confusion
> with common "debug" feature.

USE=debug has no common meaning, but in this case the global description is entirely correct:

debug - Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

So no "debugger" is involved at all. You just get extra output.

> Ok, closing the bug.

Thanks.

Also:

  --disable-debug         Do not include debugging statements

It's the upstream default.
Comment 3 Anton Bolshakov 2018-06-25 05:22:33 UTC
(In reply to Jeroen Roovers from comment #2)
> debug - Enable extra debug codepaths, like asserts and extra output. If you
> want to get meaningful backtraces see
> https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

In the global description, it should enable debugging symbols. That can make a code bigger and slower potentially. It might also pollute a system with unnecessary logs. 

That doesn't seem the case with this flag, that's why I got confused initially.