Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42500 - kdevelop - adding "debug" USE flag in ebuild
Summary: kdevelop - adding "debug" USE flag in ebuild
Status: RESOLVED DUPLICATE of bug 55708
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Highest major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-22 11:23 UTC by Sascha Herrmann
Modified: 2005-06-10 09:16 UTC (History)
1 user (show)

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


Attachments
Patch for adding debug flag (debug_flag.patch,133 bytes, patch)
2004-02-22 11:25 UTC, Sascha Herrmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Herrmann 2004-02-22 11:23:47 UTC
Hi folks,

just wrote a small patch that adds the use of the "debug" USE flag in the new kdevelop ebuild. I have appended "--enable-debug=full" to myconf if "+debug" is set.

greetings
sascha
Comment 1 Sascha Herrmann 2004-02-22 11:25:19 UTC
Created attachment 26119 [details, diff]
Patch for adding debug flag

see above
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-22 12:23:17 UTC
ivalid, this is already done in kde eclass
Comment 3 Sascha Herrmann 2004-02-22 13:14:30 UTC
Okay, but this is VERY BAD documented. If you try "emerge -v kdevelop" no use of the debug flag is shown. So how should anybody know then??? maybe this should be implemented in portage???
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-22 13:58:28 UTC
Yes, Sascha, you're right. All the kde* eclasses are missing a

IUSE="${IUSE} foo bar"

line.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2004-02-22 14:08:28 UTC
In fact it's only the kde.eclass which needs

IUSE="${IUSE} debug"

added. 
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-02-24 05:53:05 UTC
added the IUSE in the kde.eclass.
Comment 7 Simon Ejsing 2004-06-08 01:13:42 UTC
Caleb, that didn't do the trick:

root@senote kde-base # emerge -pv kdevelop

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-util/kdevelop-3.0.3  -doc +java +python -ruby  0 kB

no debug USE flag... 

<snip from kde.eclass>
ECLASS=kde
INHERITED="$INHERITED $ECLASS"
DESCRIPTION="Based on the $ECLASS eclass"
HOMEPAGE="http://www.kde.org/"
IUSE="${IUSE} debug"


Looks like the IUSE have to go into the individual packages, or is kdevelop special? Also, shouldn't it use nostrip when making debug builds?
Comment 8 Simon Ejsing 2004-06-08 01:15:00 UTC
also, can someone reopen this bug (if I'm not mistaking)?
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-08 01:54:43 UTC
The debug use flag isn't shown, when declared in eclasses, but it works. This is a portage bug and fixed in the development version.
Comment 10 Simon Ejsing 2004-06-08 02:06:36 UTC
what about the nostrip option?
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-08 02:35:15 UTC
nostrip is not a use flag -> man make.conf
Comment 12 Simon Ejsing 2004-06-08 02:46:04 UTC
Yes I know it's not a USE flag!

But that doesn't change the fact that it should be applied for debug builds, or am I missing something???
Comment 13 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-08 07:32:37 UTC
Sorry for my slow mind. You're right of course. On the other hand Portage could be a bit smarter and do this by default, when the debug flag is set.

Caleb: I think it would be better to drop the IUSE again and inherit the debug.eclass.
Comment 14 Eduardo Juan 2004-10-05 09:18:02 UTC
Thank you very much!!

Yes you are right...with less flags (-O2 -march=atholon-xp -pipe -fomit-frame-pointer) get compiled with no errors.

Sorry for this post, the next time i will try before posting..;)

Regards,

ejuan
Comment 15 Caleb Tennis (RETIRED) gentoo-dev 2004-12-06 17:51:00 UTC
what if we add a:

use debug && FEATURE="$FEATURES nostrip" to the eclass?
Comment 16 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-07 06:18:52 UTC
Caleb: If we do this then it should be RESTRICT="nostrip". FEATURES should never be modified. I put this bug aside because of Bug 55708, which is fixed now according to Nicholas. Just need to find out what exactly this means and if Portage adds nostrip by itself, now.
Comment 17 Caleb Tennis (RETIRED) gentoo-dev 2004-12-07 06:24:46 UTC
I'm sorry - yes, I meant RESTRICT instead of FEATURES
Comment 18 Gregorio Guidi (RETIRED) gentoo-dev 2004-12-27 03:02:00 UTC
Did anyone understand what's the opinion of portage-devs on this topic?
Comment 19 Dan Armak (RETIRED) gentoo-dev 2005-02-05 05:17:42 UTC
Don't know about the portage devs, but they haven't been telling people not to
use debug.eclass, right? And (useq debug && RESTRICT=nostrip) is exactly what
it does. So AFAICS we should just inherit debug from kde.eclass...
Comment 20 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-05 05:32:35 UTC
Dan: Dynamic RESTRICT breaks caching. That's why debug should become a feature instead a use flag as described in Bug 55708. I just can't see that it is a valid feature now...
Comment 21 Dan Armak (RETIRED) gentoo-dev 2005-02-05 05:47:55 UTC
Ah OK, sorry.
Comment 22 Gregorio Guidi (RETIRED) gentoo-dev 2005-06-10 09:16:19 UTC
This badly needs a solution at a global level, moving to bug 55708. 

*** This bug has been marked as a duplicate of 55708 ***