Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58515 - commoncpp2's ccgnu2-config is broken
Summary: commoncpp2's ccgnu2-config is broken
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 44833
Blocks:
  Show dependency tree
 
Reported: 2004-07-27 01:30 UTC by Curtis Magyar
Modified: 2004-08-02 01:05 UTC (History)
0 users

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


Attachments
ebuild updated to patch ccgnu2-config, and install docs properly (commoncpp2-1.0.13-r1.ebuild,1.23 KB, text/plain)
2004-07-27 01:33 UTC, Curtis Magyar
Details
Patch to fix ccgnu2-config (commoncpp2-1.0-nocflagsinautotools.patch,470 bytes, patch)
2004-07-27 01:36 UTC, Curtis Magyar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Magyar 2004-07-27 01:30:48 UTC
For some reason the commoncpp2 people put @CXXFLAGS@ into the ccgnu2-config.in file,  This makes "ccgnu2-config --flags" output:

 -I/usr/local/include/cc++2 -Os -march=pentium4 -pipe -I/usr/local/include -D_GNU_SOURCE

(or whatever your $CXXFLAGS happen to be at compile time)

This is very wrong, and even the newer devel versions that aren't in portage (1.2.4) which includes .pc files for pkg-config do it wrong.  I spent an hour or so tracking down where that -march=pentium4 was coming from in my project.  :(

I'll attach a patch that fixes it, and a fixed ebuild.  (This ebuild also contains the fix in BUG #58063  at http://bugs.gentoo.org/show_bug.cgi?id=58063 )
Comment 1 Curtis Magyar 2004-07-27 01:33:31 UTC
Created attachment 36244 [details]
ebuild updated to patch ccgnu2-config, and install docs properly
Comment 2 Curtis Magyar 2004-07-27 01:36:10 UTC
Created attachment 36245 [details, diff]
Patch to fix ccgnu2-config

This patch removes @CXXFLAGS@ from the src/ccgnu-config.in because it should
not appear in the output of the -config script.
Comment 3 Curtis Magyar 2004-08-01 17:51:50 UTC
It appears the autoconf and automake stuff needs some serious work.  My patch breaks libccext2, and according to David Sugar of Commonc++:

"I have already checked in a new branch in cvs, -r stable2, to start 
sorting this and other issues out in for future releases starting with 
1.3...."

Should I set this bug to WONTFIX, or just leave it open?
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2004-08-02 01:05:37 UTC
we'll mark it upstream then