* [gentoo-portage-dev] distfiles in overlays?
@ 2015-11-03 12:29 Joakim Tjernlund
2015-11-03 12:38 ` Michał Górny
2015-11-03 17:51 ` Alex Brandt
0 siblings, 2 replies; 5+ messages in thread
From: Joakim Tjernlund @ 2015-11-03 12:29 UTC (permalink / raw
To: gentoo-portage-dev@lists.gentoo.org
Sometimes I have to move files from my layman overlays distfiles to /usr/portage/distfiles
in orders to rebuild older stuff not in gentoo anymore.
Should not emerge search in distfiles where the ebuild resides?
What about eclass? What is the search order here?
If I got a customized user.eclass in my overlay, can I have this eclass take
precedence over the one in /usr/portage/eclass ?
Jocke
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-portage-dev] distfiles in overlays?
2015-11-03 12:29 [gentoo-portage-dev] distfiles in overlays? Joakim Tjernlund
@ 2015-11-03 12:38 ` Michał Górny
2015-11-03 16:51 ` Joakim Tjernlund
2015-11-03 17:51 ` Alex Brandt
1 sibling, 1 reply; 5+ messages in thread
From: Michał Górny @ 2015-11-03 12:38 UTC (permalink / raw
To: Joakim Tjernlund; +Cc: gentoo-portage-dev@lists.gentoo.org
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
On Tue, 3 Nov 2015 12:29:01 +0000
Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:
> Sometimes I have to move files from my layman overlays distfiles to /usr/portage/distfiles
> in orders to rebuild older stuff not in gentoo anymore.
>
> Should not emerge search in distfiles where the ebuild resides?
distfiles are not part of repository. The /usr/portage/distfiles path
is just wrong and you shouldn't be using it.
> What about eclass? What is the search order here?
It follows masters. First the repository with ebuild. If it's not
there, it looks through all masters, then their masters etc.
> If I got a customized user.eclass in my overlay, can I have this eclass take
> precedence over the one in /usr/portage/eclass ?
Yes. 'man 5 portage', look for eclass-overrides. Note that this will
effectively discard metadata cache and therefore make stuff slow after
syncing .
--
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-portage-dev] distfiles in overlays?
2015-11-03 12:38 ` Michał Górny
@ 2015-11-03 16:51 ` Joakim Tjernlund
0 siblings, 0 replies; 5+ messages in thread
From: Joakim Tjernlund @ 2015-11-03 16:51 UTC (permalink / raw
To: mgorny@gentoo.org; +Cc: gentoo-portage-dev@lists.gentoo.org
On Tue, 2015-11-03 at 13:38 +0100, Michał Górny wrote:
> On Tue, 3 Nov 2015 12:29:01 +0000
> Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:
>
> > Sometimes I have to move files from my layman overlays distfiles to /usr/portage/distfiles
> > in orders to rebuild older stuff not in gentoo anymore.
> >
> > Should not emerge search in distfiles where the ebuild resides?
>
> distfiles are not part of repository. The /usr/portage/distfiles path
> is just wrong and you shouldn't be using it.
I am not "using" it, emerge does so by default. It would be nice if portage tried
distfiles in the overlay it found the ebuild in or if one could configure which distfiles
to use in repos.conf. Makes it much easier to keep track of different source files
and then storing then in a git repo so one can find them after they are gone from gentoo.
>
> > What about eclass? What is the search order here?
>
> It follows masters. First the repository with ebuild. If it's not
> there, it looks through all masters, then their masters etc.
>
> > If I got a customized user.eclass in my overlay, can I have this eclass take
> > precedence over the one in /usr/portage/eclass ?
>
> Yes. 'man 5 portage', look for eclass-overrides. Note that this will
> effectively discard metadata cache and therefore make stuff slow after
> syncing .
OK, thanks.
Jocke
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-portage-dev] distfiles in overlays?
2015-11-03 12:29 [gentoo-portage-dev] distfiles in overlays? Joakim Tjernlund
2015-11-03 12:38 ` Michał Górny
@ 2015-11-03 17:51 ` Alex Brandt
2015-11-03 18:04 ` Brian Dolbec
1 sibling, 1 reply; 5+ messages in thread
From: Alex Brandt @ 2015-11-03 17:51 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 796 bytes --]
On Tuesday, November 03, 2015 12:29:01 Joakim Tjernlund wrote:
> Sometimes I have to move files from my layman overlays distfiles to
> /usr/portage/distfiles in orders to rebuild older stuff not in gentoo
> anymore.
Wouldn't it be better to fix the ebuilds in the overlay to point at a current
URL for the tarball?
> Should not emerge search in distfiles where the ebuild resides?
No, the ebuild should specify where to get the tarball.
Not sure these comments are what you're looking for but it sounds like you
just need to fix the ebuilds in your overlay to point at the distfiles in your
overlay as a SRC_URI.
Just my 2¢, disregard if too assumptive.
Regards,
--
Alex Brandt
Software Developer for Rackspace and Developer for Gentoo
http://blog.alunduil.com
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-portage-dev] distfiles in overlays?
2015-11-03 17:51 ` Alex Brandt
@ 2015-11-03 18:04 ` Brian Dolbec
0 siblings, 0 replies; 5+ messages in thread
From: Brian Dolbec @ 2015-11-03 18:04 UTC (permalink / raw
To: gentoo-portage-dev
On Tue, 03 Nov 2015 11:51:53 -0600
Alex Brandt <alunduil@gentoo.org> wrote:
> On Tuesday, November 03, 2015 12:29:01 Joakim Tjernlund wrote:
> > Sometimes I have to move files from my layman overlays distfiles to
> > /usr/portage/distfiles in orders to rebuild older stuff not in
> > gentoo anymore.
>
> Wouldn't it be better to fix the ebuilds in the overlay to point at a
> current URL for the tarball?
>
> > Should not emerge search in distfiles where the ebuild resides?
>
> No, the ebuild should specify where to get the tarball.
>
> Not sure these comments are what you're looking for but it sounds
> like you just need to fix the ebuilds in your overlay to point at the
> distfiles in your overlay as a SRC_URI.
>
> Just my 2¢, disregard if too assumptive.
>
> Regards,
>
It is entirely possible for an ebuild to install a pkg from sources
only from the pkg's files directory. Provided the sources are within
the size limits for the files directory. Although an overlay may be
allowed to go past that for a non-gentoo tree pkg & ebuild.
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-03 18:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 12:29 [gentoo-portage-dev] distfiles in overlays? Joakim Tjernlund
2015-11-03 12:38 ` Michał Górny
2015-11-03 16:51 ` Joakim Tjernlund
2015-11-03 17:51 ` Alex Brandt
2015-11-03 18:04 ` Brian Dolbec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox