Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62946 - xorg-x11 doesn't honor debug USE flag or '-g'
Summary: xorg-x11 doesn't honor debug USE flag or '-g'
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-05 13:14 UTC by Benjamin Schindler (RETIRED)
Modified: 2009-08-20 11:59 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 Benjamin Schindler (RETIRED) gentoo-dev 2004-09-05 13:14:43 UTC
I'm trying to debug xorg, however, portage tries not make me do so.... I did: 
CFLAGS="-g" CXXFLAGS="-g" FEATURES="nostrip" USE="debug" ebuild /usr/portage/x11-base/xorg-x11/xorg-x11-6.7.99.904.ebuild compile

And then: 
CFLAGS="-g" CXXFLAGS="-g" FEATURES="nostrip" USE="debug" ebuild /usr/portage/x11-base/xorg-x11/xorg-x11-6.7.99.904.ebuild install 

But portage would strip the binaries anyway. 

I haven't tried to reproduce it with another package, but it's for sure an odd behaviour

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Benjamin Schindler (RETIRED) gentoo-dev 2004-09-05 13:17:29 UTC
And I'm using the latest version of portage, sys-apps/portage-2.0.50-r10
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-05 22:51:37 UTC
Please check your build log for the following lines:

Debug build turned on by USE=debug
NOT stripping binaries and libraries

OR the following line:

Stripping binaries and libraries...

USE=debug should essentially append '-g' and not strip things, without needing the C{,XX}FLAGS or FEATURES.

Also please attach the full build log (bzip2'd if absolutely necessary).
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-05 22:53:18 UTC
Please remember to have the package name in the description, as that's the only way we currently have to indicate what it is.
Comment 4 Benjamin Schindler (RETIRED) gentoo-dev 2004-09-05 23:52:01 UTC
I'll build a log, but I already can answer the questions. I've altered the ebuild so it won't strip anything so I can debug xorg, but a log will follow soon.

It explicitly says:
Stripping binaries and libraries...
I also looked at: file `which Xnest`, and it would tell me that it is stripped.
With appending the full build log.... what steps do you mean? compile, install and qmerge? (I'm doing this with ebuild, not with emerge)
Comment 5 Benjamin Schindler (RETIRED) gentoo-dev 2004-09-06 00:31:54 UTC
I now compiled only with USE=debug and it honored my CFLAGS. I guess problems arise when I set things manually as well when using USE=debug. I'll try to reproduce.
And as a side note, I don't think you want a log where it all goes well ;)
Comment 6 Benjamin Schindler (RETIRED) gentoo-dev 2004-09-06 00:39:03 UTC
I cannot reproduce, even with the commandline I gave you...
I'll put the bug on stay until I either can reconfirm or show that it was my fault...
Sorry
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2009-08-20 11:58:52 UTC
reopening
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-08-20 11:59:20 UTC
xorg-server perfectly honors -g. Closing with the proper resolution