Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540856 - sys-process/numactl-2.0.10-r1: CFLAGS not respected for /usr/bin/numademo
Summary: sys-process/numactl-2.0.10-r1: CFLAGS not respected for /usr/bin/numademo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 21:11 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2015-04-03 07:22 UTC (History)
0 users

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 Arfrever Frehtes Taifersar Arahesis 2015-02-20 21:11:20 UTC
...
 * QA Notice: Files built without respecting CFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/bin/numademo
...


(QA check for respecting of {C,CXX,FC,F}FLAGS is enabled when -frecord-gcc-switches option is present in ALL of the following variables: CFLAGS, CXXFLAGS, FCFLAGS, FFLAGS.)


Problem is caused by this line in Makefile.am:
numademo_CFLAGS = -O3 -ffast-math -funroll-loops


Example fix (working for me):
sed -e "s/^numademo_CFLAGS = -O3 /numademo_CFLAGS = \$(AM_CFLAGS) /" -i Makefile.am
Comment 1 SpanKY gentoo-dev 2015-04-03 06:10:10 UTC
should be all set now in the tree; thanks for the report!

Commit message: Respect user CFLAGS when building numademo
http://sources.gentoo.org/sys-process/numactl/files/numactl-2.0.10-numademo-cflags.patch?rev=1.1
http://sources.gentoo.org/sys-process/numactl/numactl-2.0.10-r2.ebuild?rev=1.1
Comment 2 Arfrever Frehtes Taifersar Arahesis 2015-04-03 07:12:43 UTC
It happens to work due to maintainer mode or something...

eautoreconf should be called AFTER applying this patch.
Comment 3 Arfrever Frehtes Taifersar Arahesis 2015-04-03 07:15:26 UTC
Lines between 'make' and 'make  all-am' in output are present when patch is applied without calling eautoreconf after it:

>>> Compiling source in /var/tmp/portage/sys-process/numactl-2.0.10-r2/work/numactl-2.0.10 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make 
 cd /var/tmp/portage/sys-process/numactl-2.0.10-r2/work/numactl-2.0.10 && /bin/sh /var/tmp/portage/sys-process/numactl-2.0.10-r2/work/numactl-2.0.10/build-aux/missing automake-1.15 --foreign Makefile
 cd . && /bin/sh ./config.status Makefile depfiles
config.status: creating Makefile
config.status: executing depfiles commands
make  all-am
Comment 4 SpanKY gentoo-dev 2015-04-03 07:22:23 UTC
Commit message: Fix patch/autotools ordering
http://sources.gentoo.org/sys-process/numactl/numactl-2.0.10-r2.ebuild?r1=1.1&r2=1.2