Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158258 - media-tv/mythtv: new use flag needed for "profile" compilation option
Summary: media-tv/mythtv: new use flag needed for "profile" compilation option
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-15 21:21 UTC by Michael
Modified: 2006-12-17 20:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2006-12-15 21:21:53 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko)
Build Identifier: 

Mythtv normally allows three different compilation options: debug, profile, and 
release.  The ebuild normally uses release by default and debug by use flag.  
There is no use flag or provision in the ebuild for profile.  Here is my 
modification to add a profile use flag:
 
diff /usr/local/portage/media-tv/mythtv/mythtv-0.20_p11626.ebuild /usr/portage/media-tv/mythtv/mythtv-0.20_p11626.ebuild
13c13
< IUSE="alsa altivec backendonly crciprec debug dbox2 dts dvb dvd freebox 
frontendonly hdhomerun ieee1394 ivtv jack joystick lcd lirc mmx vorbis opengl 
perl xvmc profile ${IUSE_VIDEO_CARDS}"
---
> IUSE="alsa altivec backendonly crciprec debug dbox2 dts dvb dvd freebox 
frontendonly hdhomerun ieee1394 ivtv jack joystick lcd lirc mmx vorbis opengl 
perl xvmc ${IUSE_VIDEO_CARDS}"
142,145c142
<       else
<         if use profile; then
<               myconf="${myconf} --compile-type=profile"
<         else
---
>       else
147d143
<         fi


Reproducible: Always
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2006-12-16 05:54:14 UTC
Why do you want this exactly? Do you even know what it does? Or is it yet another "there's not enough USE flags on this ebuild" request.
Comment 2 Michael 2006-12-16 07:20:49 UTC
I am trying to debug some timing issues with mythtv.  The "profile" compilation allows one to use a profiler such as oprofile to get timing without adding the overhead of the "debug" option.  See http://www.cuymedia.net/doxygen-dev-docs/html/group__profiling__mythtv.html for one write-up.

Regarding yet another use flag, I appreciate the issue.  This is not an option the casual user would normally use (but then again neither is the debug option.)
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2006-12-17 19:10:28 UTC
The debug option is used a lot more and is also standardized within Portage and Gentoo as a whole. The profile USE flag however is not. This has even more limited use then the debug flag. This is something you will have to maintain in your own overlay. 
Comment 4 Michael 2006-12-17 20:36:35 UTC
(In reply to comment #3)
> The debug option is used a lot more and is also standardized within Portage and
> Gentoo as a whole. The profile USE flag however is not. This has even more
> limited use then the debug flag. This is something you will have to maintain in
> your own overlay. 
> 

Fair enough, not hard to do and I understand the reasoning.  (Anyone who can figure out how to use profiling should be able to figure out how to add this to their e-build or they shouldn't be traveling down that road anyway!)  ;^)

Thanks.