Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to: Package patching
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
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Sun Aug 03, 2008 2:31 am    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 6:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Aug 03, 2008 3:05 am    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
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
gsilva
Tux's lil' helper
Tux's lil' helper


Joined: 24 Dec 2007
Posts: 84
Location: Portugal

PostPosted: Sun Aug 03, 2008 3:21 am    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
Advocate
Advocate


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

PostPosted: Sun Aug 03, 2008 6: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: 84
Location: Portugal

PostPosted: Sun Aug 03, 2008 3:58 pm    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
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Sun Aug 03, 2008 5: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
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
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