Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Changelogs
Date: Wed, 27 Jul 2005 04:20:29
Message-Id: pan.2005.07.27.04.16.52.411549@cox.net
In Reply to: Re: [gentoo-dev] Changelogs by Georgi Georgiev
1 Georgi Georgiev posted <20050727022212.GB10581@××××××××.net>, excerpted
2 below, on Wed, 27 Jul 2005 11:22:12 +0900:
3
4 > maillog: 26/07/2005-22:05:49(-0400): Alec Warner types
5 >>
6 > ... skip some text that I mostly agree with...
7 >>
8 >>
9 > I mentioned this before, but it would be nice to somehow mark important
10 > messages in the changelog. Prefix them with something, say "WARNING around
11 > there", anything, as long as it is agreed upon and everybody uses it.
12 > Changelogs are huge and even if portage is not made to show only the
13 > relevant *important* information, it would be nice to have an easy way to
14 > see it by grepping the output of emerge -l.
15
16 Note that most of the previously mentioned "stable on foo, bug #000000"
17 entries relate to one of two things. (1) A security bugfix (the majority
18 of the cases). (2) A specific request to stabilize the package, either
19 from the package maintainer to the archs (so the maintainer can remove old
20 versions without removing the latest stable for arch foo), or from users
21 reporting stability of a ~ package and no bugs for 30 days, thus
22 requesting a nudge to stable.
23
24 Thus, it's generally safe (from my experience) to skip-over further
25 investigation of these entries. On critical packages, however, I'll look
26 into all the "fix for #000000" type entries.
27
28 Generally, however, the biggest compatibility issues will be on "version
29 bump" type entries. It's important to realize, however, just what the
30 Gentoo changelogs (as opposed to the upstream changelogs) document --
31 Gentoo, that is, primarily ebuild, changes. A version bump is often a
32 trivial change in terms of the ebuild and where Gentoo is concerned, even
33 where it's a HUGE change in terms of configuration and upstream.
34 Therefore, the Gentoo changelog contains the information it should, simply
35 noting the version bump. If the package is critical and you are on a
36 mission critical machine that you can't afford to have down for a few
37 hours while you straighten things out, every time you see a "version bump"
38 Gentoo changelog entry, it's a flag meaning "go and checkout the upstream
39 changelog, if you care about the smooth operation of your machine!"
40
41 Now, granted, if the Gentoo devs know about a particular config change
42 that could mess things up, putting that in the Gentoo changelog can be a
43 good thing, and actually, it seems to me that Gentoo devs ARE fairly good
44 about this. Where they know there will be issues, they document them both
45 in the changelog, and for big ones, often by creating upgrade guides and
46 the like, and by posting notices on the Gentoo front page and in GWN.
47 However, that in no way means they /have/ to do such things. A
48 responsible sysadmin (which hopefully means every Gentoo user doing
49 upgrades, they being the sysadmins on their systems) WILL checkout version
50 bump info, if it's a mission critical application on a mission critical
51 machine.
52
53 Note that I don't always do so here, but that's because computing is a
54 hobby for me, not a job, I'm running ~arch and occasionally unmasking
55 stuff that's hard masked for testing, so I too can test it, and I
56 expect not entirely smooth upgrades from time to time. I do basic due
57 diligence checking changelogs and keeping up with the general state of
58 things on packages I consider critical, but don't worry too much about
59 individual upgrades causing issues, since it's not a problem for me to
60 reboot, if necessary to a rescue partition, and/or spend an hour or two
61 fixing things, should they break.
62
63 There are, however, two issues with changelogs that DO frustrate me.
64
65 1) I like to know exactly what's behind any of those [ UD] things that
66 come up occasionally, the "forced" downgrades. emerge -pl doesn't work
67 for those, and I wish it did. I have to manually view the changelog,
68 typing in the specific path to it in the portage tree in ordered to do so,
69 to see what's up in these types of cases. It'd be very nice to have
70 portage's changelog viewing functionality take negative ranges as well,
71 since that's effectively what's happening here. This issue has of course
72 been raised before and the feature may get into a future version of
73 portage, but it may be awhile.
74
75 2) I get frustrated with the changelog for portage itself. Again, keeping
76 in mind the purpose of the portage tree changelogs, to document ebuild
77 changes, not upstream code changes, not having a working portage tree
78 changelog for portage itself does make some sense, given the fact that
79 it's a Gentoo project and thus that we ARE the upstream. However, the
80 fact remains, there exists no easy way to access perhaps VERY vital
81 change documentation, without first merging the upgrade to get the
82 changelog in /usr/share/doc/portage-xxxx/. Yes, one can use -p, see
83 portage is on the list, do a fetch, then manually extract the changelog
84 and see what's up, or one can visit the website and check it out there,
85 but for such a critical part of a Gentoo machine's infrastructure, one
86 would certainly wish for something a bit easier than either of these.
87 baselayout and udev, among other Gentoo or semi-Gentoo developed packages,
88 manage decent in-tree logs, why can't portage do so as well?
89
90 Maybe what's needed to address #2 is simply to include a separate portage
91 changelog file, somewhere within the tree, possibly as its own package, or
92 in the profiles root dir, along with the global package.mask, and use.desc
93 and use.local.desc files. Portage could then add an "emerge portinfo"
94 function, similar to "emerge info", that would spit out the "upstream"
95 changelog between what's currently installed, and any new version.
96
97 Expanding on the idea a bit further, what about creating a generic "emerge
98 changelog" function, that fetches the tarball if necessary, then extracts
99 only the changelog, and opens it for viewing (presumably using the $PAGER
100 environmental variable to determine what to display it with)? Naturally,
101 given Gentoo can't control the upstream changelog format, enforcing
102 parseability rules as it does for its own, the entire changelog would of
103 necessity be displayed, leaving the user to figure out the relevant
104 cutoffs instead of doing it automatically as emerge -pl does with the
105 portage tree changelogs, but it'd still be a rather easier way to view
106 upstream changelogs before installation (or for that matter, after) than
107 we have now.
108
109 --
110 Duncan - List replies preferred. No HTML msgs.
111 "Every nonfree program has a lord, a master --
112 and if you use the program, he is your master." Richard Stallman in
113 http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
114
115
116 --
117 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: Changelogs Michael Cummings <mcummings@g.o>
Re: [gentoo-dev] Re: Changelogs Simon Stelling <blubb@g.o>