Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Bug #565566: Why is it still not fixed?
Date: Wed, 24 Feb 2016 00:33:52
Message-Id: pan$a384b$63485ebc$afb3ed09$e63bbc29@cox.net
In Reply to: Re: [gentoo-dev] Bug #565566: Why is it still not fixed? by Patrick Lauer
1 Patrick Lauer posted on Tue, 23 Feb 2016 22:53:32 +0100 as excerpted:
2
3 > On 02/23/2016 07:07 PM, Alec Warner wrote:
4 >> On Tue, Feb 23, 2016 at 9:14 AM, Patrick Lauer <patrick@g.o
5 >> <mailto:patrick@g.o>> wrote:
6 >>
7 >> See https://bugs.gentoo.org/show_bug.cgi?id=565566
8 >>
9 >> Since we have ChangeLogs again (November) they've been in backwards
10 >> order. Which is not really good - it breaks tools (like emerge
11 >> --changelog) and makes it harder to read for humans.
12 >>
13 >> As a bonus it's inconsistent because the old Changelog-2015 files
14 >> are in normal order, and the new ones are reversed. Which sense no
15 >> makes.
16 >>
17 >> The suggestions in the bug are of great entertainment value, but
18 >> they all avoid the simple idea of generating ChangeLogs in
19 >> changelog (reverse chronological) order. Which would fix all tools
20 >> and make almost every consumer of changelogs happy.
21 >>
22 >> So, can we please, after over 4 months of stalling, just fix this
23 >> embarassment?
24 >>
25 >>
26 >> I don't see any attached patches...so it looks like there is room for
27 >> you to contribute.
28 >>
29 >> -A
30 >>
31 >>
32 > from gitweb.gentoo.org -
33 > infra/mastermirror-scripts.git
34 >
35 > ~line 167:
36 >
37 > |
38 >
39 > case $HOURS in
40 > 3|9|15|21) EGENCACHE_CHANGELOG="--update-changelogs
41 > --changelog-reversed
42 > --changelog-output ChangeLog" ;;
43 > esac
44 >
45 >
46 > remove "--changelog-reversed"
47 >
48 > Enjoy cookie.
49 > (Of course this may require removing the existing changelogs first etc.
50 > ...)
51
52 If you read the previous threads on the topic, here and on the portage-
53 devel list...
54
55 That option is there, and indeed, a patch providing it was specifically
56 added to portage for infra to use, because appending entries to existing
57 files is vastly easier and more performant than trying to prepend entries
58 and having to rewrite the entire file as a result.
59
60
61 So chronological order (not traditional changelog reverse chronological
62 order) is deliberate, helping to get the changelogs out there in the
63 first place, given that they were missing /entirely/ for awhile (as of
64 course you well know, given previous threads, one of which did seem to
65 help get the ball moving on getting changelogs of /any/ kind available
66 again).
67
68 And it's unlikely to change, as long as infra is generating the
69 changelogs from git logs at least, because prepends aren't ever going to
70 be as cheap as appends.
71
72 Which means it's the tools that expect reverse-chronological order that
73 must change. Either that, or people /that/ concerned about the
74 changelogs can simply switch to the git repos and use the existing git
75 tools to read their changelogs, as many (including me, as I regularly
76 check changelog entries, and now that I can, sometimes the actual diff,
77 on one or more packages at nearly every update) already are.
78
79
80 IMO, what's actually happening here is the slow deprecation of rsync
81 mirrors in favor of git. I doubt they'd be created at all if gentoo were
82 being created today -- git would be the only choice and they'd be git
83 mirrors. Just like the switch to git for the main tree itself, it's
84 taking time, but /unlike/ the main tree switch, it doesn't have to be as
85 formalized and is happening in a much more ad hoc manner.
86
87 At some point, gentoo will need to start mirroring its git repo (with
88 metadata and etc added), much as it does the rsync repo, and the various
89 handbook documentation and etc will need to change. Right now, it's
90 available, but AFAIK, only via the github mirror, at least at any serious
91 scaling level, tho admittedly that leaves gentoo in a somewhat precarious
92 position with github dependencies for those doing git. But when the git
93 mirror structure is up and people are switching, the rsync mirrors can
94 gradually be phased out as people do switch and the rsync demand requires
95 fewer servers. Tho I don't believe there's anything yet replacing the
96 signed security of webrsync with the appropriate security features turned
97 on, so that will need to stay around for awhile.
98
99 --
100 Duncan - List replies preferred. No HTML msgs.
101 "Every nonfree program has a lord, a master --
102 and if you use the program, he is your master." Richard Stallman

Replies