* [gentoo-dev] about modifying an ebuild in local overlay and $FILESDIR
@ 2017-04-26 20:03 Christian Bricart
2017-04-26 20:28 ` Mike Gilbert
0 siblings, 1 reply; 2+ messages in thread
From: Christian Bricart @ 2017-04-26 20:03 UTC (permalink / raw
To: Gentoo Dev
Hi all,
from time to time, I need to make (and maintain) modifications to an
ebuild from the main tree in my local overlay.
So basically, I create the directory structure from
/usr/portage/<category>/<package>/ under
/usr/local/portage/<category>/<package>/, copy over the ebuild and do my
modifications in the ebuild.
So far how an overlay works ;-)
But if there are references to patches, init-scripts, conf-files, etc
from $FILESDIR w/i the original ebuild, one also needs to copy those
into /usr/local/portage/../../files/ ..
Is it possible to "overlay" such files used in epatch(), newins(),
newconfd(), newinitd(), etc too..?
so i.e:
FILESDIR = "${repository_location}/${CATEGORY}/${PN}/files"
should support a fallback to:
FILESDIR = "${PORTDIR}/${CATEGORY}/${PN}/files"
if not found...
(or actually to the defined $master from the repo used)
Christian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] about modifying an ebuild in local overlay and $FILESDIR
2017-04-26 20:03 [gentoo-dev] about modifying an ebuild in local overlay and $FILESDIR Christian Bricart
@ 2017-04-26 20:28 ` Mike Gilbert
0 siblings, 0 replies; 2+ messages in thread
From: Mike Gilbert @ 2017-04-26 20:28 UTC (permalink / raw
To: Gentoo Dev
On Wed, Apr 26, 2017 at 4:03 PM, Christian Bricart <christian@bricart.de> wrote:
> Hi all,
>
> from time to time, I need to make (and maintain) modifications to an
> ebuild from the main tree in my local overlay.
> So basically, I create the directory structure from
> /usr/portage/<category>/<package>/ under
> /usr/local/portage/<category>/<package>/, copy over the ebuild and do my
> modifications in the ebuild.
> So far how an overlay works ;-)
>
> But if there are references to patches, init-scripts, conf-files, etc
> from $FILESDIR w/i the original ebuild, one also needs to copy those
> into /usr/local/portage/../../files/ ..
>
> Is it possible to "overlay" such files used in epatch(), newins(),
> newconfd(), newinitd(), etc too..?
>
> so i.e:
> FILESDIR = "${repository_location}/${CATEGORY}/${PN}/files"
> should support a fallback to:
> FILESDIR = "${PORTDIR}/${CATEGORY}/${PN}/files"
> if not found...
> (or actually to the defined $master from the repo used)
No, this is not possible. It might be possible to implement in
portage, but I don't think it's a very good/workable idea.
As a workaround, you could symlink individual files, or even the
entire files directory.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-26 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-26 20:03 [gentoo-dev] about modifying an ebuild in local overlay and $FILESDIR Christian Bricart
2017-04-26 20:28 ` Mike Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox