Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Source code for debug lists - where/how to keep it
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 196

PostPosted: Tue Jun 19, 2012 6:36 am    Post subject: Source code for debug lists - where/how to keep it Reply with quote

I compiled a few packages with debug and nostrip
Code:
CFLAGS="-O2 -ggdb -pipe"
FEATURES="${FEATURES} nostrip"

but emerge doesn't keep the source after compilation, so things such as "list" in gdb fail. How should I solve this? Is there a way portage can take care of this and actually keep the source around?
Back to top
View user's profile Send private message
aCOSwt
Advocate
Advocate


Joined: 19 Oct 2007
Posts: 2075
Location: Between the keyboard and the chair

PostPosted: Tue Jun 19, 2012 7:39 am    Post subject: Reply with quote

(Apart from very specific packages) I have no idea if keeping the sources is possible when emerging.

However, you can always :
Code:
# ebuild $PORTDIR/portage_category/package_name/package_version.ebuild unpack

Before running gdb.
_________________
In theory there are no differences between theory and practice. In practice, there are.
Don't try to understand my posts. Immanuel Kant never did, he thinks that only music and laughter do not have to mean anything.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 7678

PostPosted: Wed Jun 20, 2012 2:52 am    Post subject: Reply with quote

It sounds like you want to install the sources as part of the package. According to man make.conf, this is controlled by the FEATURES value installsources.
Back to top
View user's profile Send private message
ManDay
Apprentice
Apprentice


Joined: 22 Jan 2008
Posts: 196

PostPosted: Wed Jun 20, 2012 6:46 am    Post subject: Reply with quote

Thank you, exactly what I needed!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum