Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to: Package patching
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 83
Location: Portugal

PostPosted: Sat Aug 02, 2008 9:31 pm    Post subject: [SOLVED] How to: Package patching Reply with quote

Hi there!

I've been using Gentoo for almost a year but everytime I have an emerge "problem" I lack the knowledge of how to patch an ebuild. I know how to patch since I've patched the kernel files several times, I simply can't find where portage keeps the source code files and what changes to make in the Manifest... I always end up using flagged version of the package or downgrading it. But that's not right, is it? :)

Thanks!


Last edited by gsilva on Sun Aug 03, 2008 1:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
poly_poly-man
Veteran
Veteran


Joined: 06 Dec 2006
Posts: 2113
Location: where the bennys go, nj, us

PostPosted: Sat Aug 02, 2008 10:05 pm    Post subject: Reply with quote

source code packages: /usr/portage/distfiles/

tip #1: keep your own overlay. Move ebuilds over, fix them up there, digest them there (ebuild <ebuild file> digest), and have fun.

tip #2: never make changes in /usr/portage. Next emerge --sync will take them away.

poly-p man
_________________
http://bash.org/?10626 wrote:
<CompuMan> The tragedy of Canada is they could have had British culture, French cooking, and American technology, but instead they got American culture, British cooking, and French technology.
Back to top
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 83
Location: Portugal

PostPosted: Sat Aug 02, 2008 10:21 pm    Post subject: Reply with quote

poly_poly-man wrote:
source code packages: /usr/portage/distfiles/

tip #1: keep your own overlay. Move ebuilds over, fix them up there, digest them there (ebuild <ebuild file> digest), and have fun.

tip #2: never make changes in /usr/portage. Next emerge --sync will take them away.

poly-p man


Thank you!

Just one more thing... if I move the ebuilds to my overlay and patch them there, I'll have the package in portage tree AND my overlay. Won't portage select his own, if I try to emerge it then?
Back to top
View user's profile Send private message
yabbadabbadont
Veteran
Veteran


Joined: 13 Mar 2003
Posts: 4739

PostPosted: Sun Aug 03, 2008 1:05 am    Post subject: Reply with quote

No. Portage gives precedence to your local overlay before the portage tree.

(otherwise overlays would be pretty useless... ;))
Back to top
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 83
Location: Portugal

PostPosted: Sun Aug 03, 2008 10:58 am    Post subject: Reply with quote

yabbadabbadont wrote:
No. Portage gives precedence to your local overlay before the portage tree.

(otherwise overlays would be pretty useless... ;))


Thank you.

Mods can close this topic, I'm pretty clarified :)
Back to top
View user's profile Send private message
poly_poly-man
Veteran
Veteran


Joined: 06 Dec 2006
Posts: 2113
Location: where the bennys go, nj, us

PostPosted: Sun Aug 03, 2008 12:45 pm    Post subject: Reply with quote

gsilva wrote:
yabbadabbadont wrote:
No. Portage gives precedence to your local overlay before the portage tree.

(otherwise overlays would be pretty useless... ;))


Thank you.

Mods can close this topic, I'm pretty clarified :)


no closing of the topic usually... just throw "[SOLVED]" (without quotes) into the title - use edit on the first post.

poly-p man
_________________
http://bash.org/?10626 wrote:
<CompuMan> The tragedy of Canada is they could have had British culture, French cooking, and American technology, but instead they got American culture, British cooking, and French technology.
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 - 5 Hours
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