Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to save work directories? [SOLVED]
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
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Nov 01, 2008 2:42 am    Post subject: How to save work directories? [SOLVED] Reply with quote

Sometimes, particularly when emerging an unstable package, I would like to examine the source code to find the source of the bug. My "work" directories seem to be erased after a successful emerge. How do I save them for debugging? Is there a global portage setting or an option to emerge?

Last edited by Tony0945 on Wed Dec 24, 2008 1:50 am; edited 1 time in total
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sat Nov 01, 2008 2:55 am    Post subject: Reply with quote

You can use "ebuild package-ebuild-name unpack" to unpack and patch the sources to the /var/tmp/portage tree.

You may have to use the full path to the ebuild file, but I'm sure that you have to use the full ebuild file name including the version.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9527
Location: beyond the rim

PostPosted: Sat Nov 01, 2008 2:56 am    Post subject: Reply with quote

Code:
FEATURES="keepwork"

Though be careful with enabling that permanently, it may cause weird side effects (it's only intended to be enabled temporary for debugging purposes).
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat Nov 01, 2008 9:29 pm    Post subject: RESOLVED: How to save work directories? Reply with quote

Two methods! Thanks for the prompt help. I'm a gentoo noob, but have embedded programming experience. Maybe I can help with the many ~amd64 packages once I have more experience. I hate pretending that this fine dual-core is an old athlon-xp.
Back to top
View user's profile Send private message
easy target
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2008
Posts: 134

PostPosted: Sat Nov 01, 2008 11:09 pm    Post subject: Reply with quote

You may also try to build this package somewhere inside your home directory and test it as a regular user. This way you can check if a bug is gentoo specific (maybe because of a bug in an ebuild) or if it exists even when you build the package yourself.
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