Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12335 - QT ebuild does not respect $CFLAGS
Summary: QT ebuild does not respect $CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 13213 23029 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-17 14:17 UTC by dan
Modified: 2003-09-29 03:45 UTC (History)
2 users (show)

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


Attachments
Patch for qt-3.1.1.ebuild (qt-3.1.1.ebuild.diff,368 bytes, patch)
2003-01-06 06:37 UTC, Robert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dan 2002-12-17 14:17:49 UTC
QT ebuild throws out $CFLAGS and uses -O2. 
There is absolutely no problem with using opt. cflags when building QT. Have done it manually for 
ages. Need to have ebuild modify the makefile to replace -O2 with $CFLAGS before the make.
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2003-01-06 02:07:58 UTC
*** Bug 13213 has been marked as a duplicate of this bug. ***
Comment 2 Robert 2003-01-06 06:37:58 UTC
Created attachment 7014 [details, diff]
Patch for qt-3.1.1.ebuild

This patch fixes the problem in the qt-3.1.1 ebuild.  It is very easy to put
this in other ebuilds, though.	The problem is that the qt build system (qmake)
only uses the flags set in qmake.conf.	This patch edits qmake.conf to put in
the user's CFLAGS.  This patch does not break the alpha fix right above it.
Comment 3 Dan Armak (RETIRED) gentoo-dev 2003-01-09 10:55:30 UTC
I've tried this before in the qt 3.0x, gcc 3.1 era and had all kinds of wierd problems. Therefore I 
abandoned this line of work then. 
I agree that it's time to try again, but it will have to wait 1) for the current freeze to end and 2) 
for me to come back to heavy-duty Gentoo work (Jan 24th). And even then it'll have low-sih 
piority. But I do intend to work on it at some point. 
Because of the nature of the problems I had last time (ex: OOM when compiling on some 
PPCs, and other bugs that only show up in similarly rare configurations), I'll want to test this 
very thoroughly before putting it even in ~. 
Cf. bug #1571 for one of the previous attempts to get this to work. 
Comment 4 Dan Armak (RETIRED) gentoo-dev 2003-04-15 06:49:13 UTC
Well, about time we tested this again... 
Added a masked qt-3.1.2-r2 ebuild with this patch that does this. You can test at will. 
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2003-05-12 23:08:51 UTC
Patch has been applied, in 3.1.2-r2 and -r3.  Seems to work well so far. 
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2003-06-28 01:22:29 UTC
*** Bug 23029 has been marked as a duplicate of this bug. ***
Comment 7 Alexander Holler 2003-09-29 03:45:15 UTC
This bug is now closed for some time, but qt-3.1.2-r4 still doesn't respect
CFLAGS. What's the (real) status of this bug?