[gentoo-user] patching an ebuild file
For my raspberry cross-compilation project I need to do simple modifications locally to some ebuilds. I can edit the ebuild and then rebuild the manifest but on every update I have to repeat. Is there a way to patch an ebuild in a similar way we can patch sources? thanks, raffaele
Re: [gentoo-user] patching an ebuild file
On Fri 17 May 2024 19:26:02 GMT, ralfconn wrote: > For my raspberry cross-compilation project I need to do simple > modifications locally to some ebuilds. > > I can edit the ebuild and then rebuild the manifest but on every update > I have to repeat. > > Is there a way to patch an ebuild in a similar way we can patch sources? > > thanks, > > raffaele You can make an overlay and mask the pacakges from ::gentoo
Re: [gentoo-user] patching an ebuild file
On Fri, 2024-05-17 at 20:17 +0200, Alarig Le Lay wrote: > > Is there a way to patch an ebuild in a similar way we can patch > > sources? > > > > thanks, > > > > raffaele > > You can make an overlay and mask the pacakges from ::gentoo +1 for an overlay, because others may want to use those ebuilds as well for similar work.
Re: [gentoo-user] patching an ebuild file
On Fri, 17 May 2024 20:17:14 +0200, Alarig Le Lay wrote: > > I can edit the ebuild and then rebuild the manifest but on every > > update I have to repeat. > > > > Is there a way to patch an ebuild in a similar way we can patch > > sources? > You can make an overlay and mask the pacakges from ::gentoo No need to mask anything, just set the priority of your overlay higher than that for gentoo. Otherwise you could end up not getting updates if you don't check the gentoo repo regularly. -- Neil Bothwick Accept that some days you're the pigeon, and some days you're the statue. pgp_hEiwpYeF2.pgp Description: OpenPGP digital signature
Re: [gentoo-user] patching an ebuild file
Il 17/05/24 20:41, Neil Bothwick ha scritto: On Fri, 17 May 2024 20:17:14 +0200, Alarig Le Lay wrote: I can edit the ebuild and then rebuild the manifest but on every update I have to repeat. Is there a way to patch an ebuild in a similar way we can patch sources? You can make an overlay and mask the pacakges from ::gentoo No need to mask anything, just set the priority of your overlay higher than that for gentoo. Otherwise you could end up not getting updates if you don't check the gentoo repo regularly. Creating the local overlay did not work, portage kept on pulling in the original ebuilds (from a public overlay themselves). Then I found that the modifications I needed could be done more simply via /etc/portage/package.accept_keywords, but that did not work either. Then I finally found that for my crossdev environment you need to edit /usr/aarch64-unknown-linux-gnu/etc/portage/package.accept_keywords. Probably the same holds for the local overlay but I have not verified yet. thanks, raf