Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 240836 - media-tv/nvtv: C(XX)FLAGS are ignored (at src_configure/compile)
Summary: media-tv/nvtv: C(XX)FLAGS are ignored (at src_configure/compile)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-09 21:34 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2016-07-29 01:41 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-10-09 21:34:30 UTC
I don't know the build system for this program (and this is a generic bug template so I cannot tell you which program exactly is), but my tests shows that it's not respecting CFLAGS (or CXXFLAGS) properly.

Please look into it, since it's important to respect user CFLAGS and CXXFLAGS.

Warning: this bug might look like a false positive because you actually have your CFLAGS being used; this happens if the CFLAGS are "set in stone" in the build system during src_unpack/src_prepare. While QA has not as of this moment expressed to me a preference, I'd sincerely suggest to avoid the set-in-stone approach, so that ebuild commands could work to reproduce the actual results.

To avoid the set in stone approach:

- consider just changing CFLAGS= to CFLAGS+= if the build system enables warnings;
- if the buildsystem does not use CFLAGS variable at all, in the sed use '$(CFLAGS)', single quoted, so that the CFLAGS variable is picked up;
- use '$(OPTCFLAGS)' in the sed and then use make OPTCFLAGS=$CFLAGS.

Thanks,
Diego
Comment 1 Michael Orlitzky gentoo-dev 2016-07-29 01:41:57 UTC
commit 7da5ce67a08a90afbbe4b2c82393cd7fca0d74d6
Author: Michael Orlitzky <mjo@gentoo.org>
Date:   Thu Jul 28 21:37:20 2016 -0400

    media-tv/nvtv: new revision with a patch to respect CFLAGS.

    Gentoo-Bug: 240836

    Package-Manager: portage-2.2.28

 media-tv/nvtv/files/respect-cflags.patch           | 31 +++++++++++++++++++++
 .../{nvtv-0.4.7-r2.ebuild => nvtv-0.4.7-r3.ebuild} | 32 ++++++----------------
 2 files changed, 40 insertions(+), 23 deletions(-)