| View previous topic :: View next topic |
| Author |
Message |
gsilva Tux's lil' helper

Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Sun Aug 03, 2008 2:31 am Post subject: [SOLVED] How to: Package patching |
|
|
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 |
|
 |
poly_poly-man Advocate


Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sun Aug 03, 2008 3:05 am Post subject: |
|
|
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 |
|
 |
gsilva Tux's lil' helper

Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Sun Aug 03, 2008 3:21 am Post subject: |
|
|
| 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 |
|
 |
yabbadabbadont Advocate


Joined: 14 Mar 2003 Posts: 4790 Location: 2 exits past crazy
|
Posted: Sun Aug 03, 2008 6:05 am Post subject: |
|
|
No. Portage gives precedence to your local overlay before the portage tree.
(otherwise overlays would be pretty useless... ) |
|
| Back to top |
|
 |
gsilva Tux's lil' helper

Joined: 24 Dec 2007 Posts: 84 Location: Portugal
|
Posted: Sun Aug 03, 2008 3:58 pm Post subject: |
|
|
| 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 |
|
 |
poly_poly-man Advocate


Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Sun Aug 03, 2008 5:45 pm Post subject: |
|
|
| 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 |
|
 |
|