Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498870 - DISTDIR and PORTDIR should not be mixed together by default
Summary: DISTDIR and PORTDIR should not be mixed together by default
Status: RESOLVED DUPLICATE of bug 378603
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 02:07 UTC by Marat Nepomnyashy
Modified: 2014-01-22 05:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marat Nepomnyashy 2014-01-22 02:07:15 UTC
At this time, DISTDIR, where the downloaded source code archives are stored, is '/usr/portage/distfiles/'

At this time, PORTDIR, where the portage tree snapshot is mixed with the DISTDIR, is '/usr/portage/'

These are different kinds of information that should be kept separate.

Mixing them in the same directory as done now causes problems, like making it more difficult to swap different versions of the portage tree snapshots for testing.

Recommend that PORTDIR be changed to something like '/usr/portage/tree/', and might as well be renamed to 'TREEDIR', while DISTDIR remains '/usr/portage/distfiles/'.

Another option is to change DISTDIR to something else, like '/var/cache/portage/distfiles'.

Either one of these changes would make it easier to try out different versions of the portage tree snaphots without the DISTDIR being in the way.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2014-01-22 04:34:54 UTC
(In reply to Marat Nepomnyashy from comment #0)
> At this time, DISTDIR, where the downloaded source code archives are stored,
> is '/usr/portage/distfiles/'
> 
> At this time, PORTDIR, where the portage tree snapshot is mixed with the
> DISTDIR, is '/usr/portage/'
> 
> These are different kinds of information that should be kept separate.
> 
> Mixing them in the same directory as done now causes problems, like making
> it more difficult to swap different versions of the portage tree snapshots
> for testing.
> 
> Recommend that PORTDIR be changed to something like '/usr/portage/tree/',
> and might as well be renamed to 'TREEDIR', while DISTDIR remains
> '/usr/portage/distfiles/'.
> 
> Another option is to change DISTDIR to something else, like
> '/var/cache/portage/distfiles'.
> 
> Either one of these changes would make it easier to try out different
> versions of the portage tree snaphots without the DISTDIR being in the way.

You are free to set these to whatever you want in make.conf. Is this not working for you?

-A
Comment 2 Marat Nepomnyashy 2014-01-22 04:55:53 UTC
In theory changing these to something else should work on a per-system basis, but in reality changing these might break software that has bugs in properly honoring these settings.


Some examples:

https://bugs.gentoo.org/show_bug.cgi?id=420505
https://bugs.gentoo.org/show_bug.cgi?id=207417


In addition, users should not have to mess with default settings just to get a proper system going.
Comment 3 SpanKY gentoo-dev 2014-01-22 05:18:27 UTC
i see no point in TREEDIR

other packages being buggy is irrelevant

we're not going to bother fixing one without fixing both which means this is simply bug 378603

*** This bug has been marked as a duplicate of bug 378603 ***