Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 750428 - net-analyzer/netdata - add lto USE flag
Summary: net-analyzer/netdata - add lto USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-20 13:33 UTC by Ed Wildgoose
Modified: 2020-10-20 15:29 UTC (History)
1 user (show)

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


Attachments
net-analyzer/netdata-1.26.0.patch (netdata-1.26.patch,903 bytes, patch)
2020-10-20 13:33 UTC, Ed Wildgoose
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2020-10-20 13:33:13 UTC
Created attachment 667541 [details, diff]
net-analyzer/netdata-1.26.0.patch

I have problems compiling this package with LTO enabled. However, I can't disable LTO as the package is mangling CFLAGS as part of it's configure (and autodetecting that there is some LTO capable gcc around, hence enabling by default).

The attached patch introduces a USE flag to control LTO usage in the netdata configure stage and hence passes --enable-lto/--disable-lto to the configure phase.

Grateful if you could add this as part of the standard ebuild. Ta
Comment 1 Larry the Git Cow gentoo-dev 2020-10-20 15:29:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341afe3203d838514de4fe6a2ee217e7b8378a87

commit 341afe3203d838514de4fe6a2ee217e7b8378a87
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2020-10-20 15:29:00 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-10-20 15:29:26 +0000

    net-analyzer/netdata: add lto USE flag
    
    Closes: https://bugs.gentoo.org/750428
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-analyzer/netdata/metadata.xml          | 1 +
 net-analyzer/netdata/netdata-1.26.0.ebuild | 3 ++-
 net-analyzer/netdata/netdata-9999.ebuild   | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)