Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309297 - app-text/poppler-0.12.3-r3 ignores CXXFLAGS
Summary: app-text/poppler-0.12.3-r3 ignores CXXFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-13 20:43 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2010-04-10 02:14 UTC (History)
2 users (show)

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


Attachments
poppler-0.12.3-r3-build.log (poppler-0.12.3-r3-build.log,209.37 KB, text/plain)
2010-03-13 20:46 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
poppler-0.12.3-r3-environment.bz2 (poppler-0.12.3-r3-environment.bz2,24.27 KB, text/plain)
2010-03-13 20:46 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
files/poppler-0.12.3-cxxflags.patch (poppler-0.12.3-cxxflags.patch,1.39 KB, text/plain)
2010-03-14 00:13 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-13 20:43:59 UTC
CMAKE_VERBOSE=1 is quite revealing.

I have only tested this with app-text/poppler so far, a build.log is coming soon. I confirmed that everything that the calls to g++ displayed by the build.log are accurate by using ``ps -Aef |grep g++''.
Relevant information from environment (will be attached):

ohnopublishing / # grep '^declare.*C.\{0,2\}FLAGS' /var/tmp/portage/app-text/poppler-0.12.3-r3/temp/environment 
declare -x CFLAGS="-Os -pipe -march=i686"
declare -x CFLAGS_default=""
declare -x CPPFLAGS=" -DNDEBUG"
declare -x CXXFLAGS="-Os -pipe -march=i686"

CFLAGS seems to work fine. I cannot explain why CXXFLAGS doesn't as CXXFLAGS appears to be derived using the same method as CFLAGS.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-13 20:46:04 UTC
Created attachment 223443 [details]
poppler-0.12.3-r3-build.log

Compiled with dev-util/cmake-2.6.4-r3. The same problem was also observed with dev-util/cmake-2.8.0-r2.
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-13 20:46:26 UTC
Created attachment 223445 [details]
poppler-0.12.3-r3-environment.bz2
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-13 21:08:41 UTC
wesnoth seems to be getting CXXFLAGS fine, sorry for misfiling this and making
too many assumptions. I'll try to look for the error in the correct place now
:-).

May you reassign to wranglers please?
Comment 4 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-14 00:13:57 UTC
Created attachment 223471 [details]
files/poppler-0.12.3-cxxflags.patch

This applies to all versions of poppler in portage. This is not a clean patch because it seems to go against the design of cmake regarding control over *FLAGS. (considering, for example, ``release'' builds versus ``debug'' builds which cmake would rather handle itself).
Comment 5 Maciej Mrozowski gentoo-dev 2010-04-10 02:14:52 UTC
Indeed, issue was there, it needed to be fixed different way however.
Fixed in 0.12.3-r6 and 0.12.4-r2