Summary: | net-wireless/inspectrum does not respect CFLAGS (adds -O3) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Julian Ospald <hasufell> |
Component: | Current packages | Assignee: | Rick Farina (Zero_Chaos) <zerochaos> |
Status: | RESOLVED FIXED | ||
Severity: | QA | CC: | radio |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 59506 | ||
Attachments: |
1443911124-install-net-wireless_inspectrum-0.1:0::gentoo.out
cave-info.txt |
Description
Julian Ospald
2015-10-03 22:26:37 UTC
Created attachment 413634 [details]
cave-info.txt
nice catch, thanks. I'll send a patch upstream. https://github.com/miek/inspectrum/commit/75e1049c6aea72916f97c89b90ac0319d700cb6e is this good enough? I don't really understand cmake well enough to easily do better, but this makes the -O3 overridable (yet default) which meets upstream's intention. IMO, it should be completely removed custom CFLAGS/CXXFLAGS can easily be set and even cached in cmake (e.g. via ccmake). Only flags that are _required_ to build the program should be hardcoded. There's really no good reason to hardcode optimziation flags at all, _especially_ if you do development. (In reply to Julian Ospald (hasufell) from comment #4) > IMO, it should be completely removed > > custom CFLAGS/CXXFLAGS can easily be set and even cached in cmake (e.g. via > ccmake). Only flags that are _required_ to build the program should be > hardcoded. > > There's really no good reason to hardcode optimziation flags at all, > _especially_ if you do development. While I agree with your opinion, do you see any actual harm in upstream setting an optimization default that gets overridden like this? backported upstream's slightly more complete fix. thanks for the report. (In reply to Rick Farina (Zero_Chaos) from comment #5) > (In reply to Julian Ospald (hasufell) from comment #4) > > IMO, it should be completely removed > > > > custom CFLAGS/CXXFLAGS can easily be set and even cached in cmake (e.g. via > > ccmake). Only flags that are _required_ to build the program should be > > hardcoded. > > > > There's really no good reason to hardcode optimziation flags at all, > > _especially_ if you do development. > > While I agree with your opinion, do you see any actual harm in upstream > setting an optimization default that gets overridden like this? hmm, you could argue that it is unexpected behavior if the user has no -O* flag in his CFLAGS whatsoever, but then again that's rather a minor use case and we probably can expect people to do -O0 if they don't want any optimization (In reply to Julian Ospald (hasufell) from comment #7) > hmm, you could argue that it is unexpected behavior if the user has no -O* > flag in his CFLAGS whatsoever, but then again that's rather a minor use case > and we probably can expect people to do -O0 if they don't want any > optimization that was my assumption as well. numerous autotools packages behave in this way as well. I will leave it like this and if someone complains we can care then. |