Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270216 - media-libs/gst-plugins-base doesn't allow debug USE flag
Summary: media-libs/gst-plugins-base doesn't allow debug USE flag
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-17 17:06 UTC by Alex Bennee
Modified: 2009-05-18 07:03 UTC (History)
1 user (show)

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


Attachments
Updated version of gst-plugins-base (gst-plugins-base-0.10.23-r1.ebuild,1.17 KB, text/plain)
2009-05-17 17:07 UTC, Alex Bennee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Bennee 2009-05-17 17:06:21 UTC
While attempting to track down some crashes in gstreamer plugins I found I couldn't generate debug versions of the build by enabling the "debug" use flag and installing with FEATURES="nostrip" emerge -p -v media-plugins/gst-plugins-nnnn.


Reproducible: Always

Steps to Reproduce:
Try and examine a core file of a program that crashed in gstreamer.
Comment 1 Alex Bennee 2009-05-17 17:07:51 UTC
Created attachment 191567 [details]
Updated version of gst-plugins-base

Here is the ebuild I modified to take account of USE="debug". The gst-plugins all inherit from this class.
Comment 2 Sebastian Luther (few) 2009-05-18 06:37:46 UTC
replace-flags and append-flags only change the C(XX)FLAGS you set. You are responsible for setting the right flags. See [1].

If this bug is about the package ignoring your C(XX)FLAGS (which would not be solved by replace-flags and append-flags) then reopen this bug.

And please submit changes to ebuilds as a diff (with diff -u) the next time.

[1] http://www.gentoo.org/proj/en/qa/backtraces.xml

Comment 3 Alex Bennee 2009-05-18 07:03:33 UTC
(In reply to comment #2)
> replace-flags and append-flags only change the C(XX)FLAGS you set. You are
> responsible for setting the right flags. See [1].

So what do you do to enable debug in a package that doesn't have an explicit debug conf option? Is the recommended solution to do a manual build and merge because that's not very useful if your trying to track crashes over an extended period.

I based the changes on other builds in the tree that do things like:

use debug && append-flags -O0 -g3

which means there are a number of packages in the tree needing fixing.

> If this bug is about the package ignoring your C(XX)FLAGS (which would not be
> solved by replace-flags and append-flags) then reopen this bug.
> 
> And please submit changes to ebuilds as a diff (with diff -u) the next time.

Sure. I only bumped the version so my overlay build would get picked over the main portage. I was unsure if emerge would go for my ebuild if it was the same version.
 
> [1] http://www.gentoo.org/proj/en/qa/backtraces.xml