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
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.
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.)
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.
(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.