On Friday 2011-04-22 14:03, Adam Mizerski wrote:
Dnia 2011-04-22, pią o godzinie 13:42 +0200, Pavol Rusnak pisze:
On 22/04/11 12:54, Adam Mizerski wrote:
Hi,
In spec in %build section I have: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_FLAGS_RELEASE="%{optflags} -DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELEASE="%{optflags} -DNDEBUG" As I tried locally on my machine (just normal, not osc build) it works as expected.
But when running in osc build it is converted to: cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release \ '-DCMAKE_C_FLAGS_RELEASE=-fbla -fbla -fbla -f... -DNDEBUG' \ '-DCMAKE_CXX_FLAGS_RELEASE=-fbla -fbla -fbla -f... -DNDEBUG' (that's how it looks like in compilation log) and it's not working. The build type is changed to Release, but flags are unchanged.
Is it bug in cmake or osc build? What to do with that? Thanks for any help.
I would not see why it would work locally, for %optflags should be the same both with osc local and osc commit. Anyhow, %optflags contains -fmessage-length=0, which triggers the issue. It had been reported against version 2.6.4, and was disregarded long time: http://www.vtk.org/Bug/view.php?id=9214 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org