Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] .gitignore
Date: Thu, 13 Aug 2015 01:32:24
Message-Id: CAJ0EP42gaWJ_XmnGzAT+Y5Ep9ws+riEbzU2+y=1YdsJkuw4zfA@mail.gmail.com
In Reply to: Re: [gentoo-dev] .gitignore by Alan McKinnon
1 On Wed, Aug 12, 2015 at 6:22 PM, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
2 > On 13/08/2015 00:21, James Le Cuirot wrote:
3 >> On Thu, 13 Aug 2015 00:11:45 +0200
4 >> Alan McKinnon <alan.mckinnon@×××××.com> wrote:
5 >>
6 >>> On 12/08/2015 23:29, James Le Cuirot wrote:
7 >>>> Mike Frysinger <vapier <at> gentoo.org> writes:
8 >>>>>
9 >>>>> On 10 Aug 2015 09:17, Michał Górny wrote:
10 >>>>>> Dnia 2015-08-10, o godz. 02:42:21 Mike Frysinger napisał(a):
11 >>>>>>> On 10 Aug 2015 08:28, Justin (jlec) wrote:
12 >>>>>>>> I like to propose to add the md5-cache into it. Which other
13 >>>>>>>> files are of interest?
14 >>>>>>>
15 >>>>>>> /distfiles/
16 >>>>>>> /local/
17 >>>>>>> /packages/
18 >>>>>>
19 >>>>>> Those directories should not be ignored. Those should not exist
20 >>>>>> for a long time.
21 >>>>>
22 >>>>> there's no reason people can't use these on their own system.
23 >>>>> there's no reason they should be added to the git repo which means,
24 >>>>> if a user opted to utilize them, they should be ignored.
25 >>>>
26 >>>> I agree and I'm not sure what mgorny is basing his statement on
27 >>>> anyway. Apart from /local/, which I forget the purpose of, the
28 >>>> default locations for DISTDIR and PKGDIR still seem to
29 >>>> be /usr/portage/distfiles and /usr/portage/packages. I must admit
30 >>>> that I'm struggling to find the logic for this in Portage but those
31 >>>> are the defaults nonetheless. So why would they not exist? I'm
32 >>>> certainly using them here and I would like to see them
33 >>>> in .gitignore.
34 >>>
35 >>> /usr/portage/local was the original location for the user's own
36 >>> personal ebuild space - an "overlay" if you will.
37 >>> /usr/portage/distfiles and /usr/portage/packages are there because
38 >>> that's where ports has put them for decades, and no-one has gotten
39 >>> around to changing it in portage yet. FreeBSD defines the use of /usr
40 >>> very differently to what Linux users are used to.
41 >>>
42 >>> Those dirs really should be in /var/portage, and the user's overlay
43 >>> has no business being under main tree itself
44 >>
45 >> I didn't say they were the most appropriate locations and I agree
46 >> that /var/portage is best but that doesn't change the fact that they
47 >> are still the defaults. :)
48 >>
49 >
50 > Indeed. And it's equally true they should be git ignored.
51
52 I went ahead and added them.
53
54 commit 0f87115a27f70502eed95cd27b71449eb66dc7b1
55 Author: Mike Gilbert <floppym@g.o>
56 Date: Wed Aug 12 21:27:59 2015 -0400
57
58 Add some additional legacy directories to .gitignore
59
60 diff --git a/.gitignore b/.gitignore
61 index 87c1cce..1f8c184 100644
62 --- a/.gitignore
63 +++ b/.gitignore
64 @@ -1,2 +1,5 @@
65 /.ebuild.x
66 -profiles/use.local.desc
67 +/distfiles/
68 +/local/
69 +/packages/
70 +/profiles/use.local.desc