Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6124 - see-changelogs
Summary: see-changelogs
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 3881 5330 7678 11696 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-06 19:14 UTC by Paul Belt
Modified: 2011-10-30 22:38 UTC (History)
6 users (show)

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


Attachments
Shows changelogs found in an ebuild after unpacking (see-changelogs,2.76 KB, application/octet-stream)
2002-08-06 19:15 UTC, Paul Belt
Details
emerge.diff; changes to portage 2.0.36 to add --changelog (emerge.diff,2.97 KB, patch)
2002-09-18 16:13 UTC, Toby Dickenson
Details | Diff
example output of "emerge --changelog --pretend" (emerge.output,1.13 KB, text/plain)
2002-09-18 16:24 UTC, Toby Dickenson
Details
emerge.diff revision 2 (emerge.diff,3.03 KB, patch)
2002-09-18 17:44 UTC, Toby Dickenson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Belt 2002-08-06 19:14:42 UTC
This is in shell, but a better solution would be to add a --changelogs to emerge...

emerge --changelogs --up would unpack the archive, and look for grep the files
in ${W} for /changelog?/i and if found, display it to the screen.

Going slightly overboard, would be to show all changelogs, one at a time, and
ask the user if they want to merge this update or not.
Comment 1 Paul Belt 2002-08-06 19:15:29 UTC
Created attachment 2882 [details]
Shows changelogs found in an ebuild after unpacking
Comment 2 Paul Belt 2002-08-06 19:16:31 UTC
emerge --changelogs --update --pretend rather...
Comment 3 SpanKY gentoo-dev 2002-08-06 23:31:01 UTC
*** Bug 5330 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2002-09-08 21:54:56 UTC
*** Bug 7678 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2002-09-08 21:56:15 UTC
*** Bug 3881 has been marked as a duplicate of this bug. ***
Comment 6 Toby Dickenson 2002-09-18 16:11:21 UTC
Ive seen several hacks to add this feature, but no solutions that are better 
than hacks. I hope this isnt duplicated work.... 
 
Attached is a patch to portage 2.0.36, and sample output of "emerge 
--changelog --pretend".  For package which are to be upgraded from an older 
revision, this patch parses ChangeLog files, finds the sections corresponding 
to the newer revisions, and displays them all below the normal "emerge 
--pretend output". 
Comment 7 Toby Dickenson 2002-09-18 16:13:36 UTC
Created attachment 4000 [details, diff]
emerge.diff; changes to portage 2.0.36 to add --changelog
Comment 8 Toby Dickenson 2002-09-18 16:24:36 UTC
Created attachment 4001 [details]
example output of "emerge --changelog --pretend"
Comment 9 Brandon Low (RETIRED) gentoo-dev 2002-09-18 16:28:49 UTC
hmm, this doesn't appear to work consistently... I'm not getting output when I
do emerge world -up --changelog (does it only work on gentoo-r bumps but not on
package version bumps?)
Comment 10 Toby Dickenson 2002-09-18 17:38:26 UTC
A couple of problems in that first patch....  
  
1. There is some confusion between, for example, iptables-1.2.7a and  
iptables-1.2.7a-r0. That first patch contains some nasty code to format  
package names... see the bits containing '-'.join. For now I will fix this 
with more nastyness; hopefully some portage guru can make this nice. 
  
2. The regular expression for matching section markers in changelogs needs  
some work, and some changlog section markers need some sanitization. 
  
new patch is on its way...  
Comment 11 Toby Dickenson 2002-09-18 17:44:40 UTC
Created attachment 4003 [details, diff]
emerge.diff revision 2
Comment 12 Toby Dickenson 2002-09-18 17:55:06 UTC
This is now doing the right things for the 24 packages that need updates in 
'world' on this machine, except: 
 
1. gentoolkit, which has a duplicate changelog entry for 0.1.17, and 0.1.17-r1 
is missing 
 
2. fetchmail, where the revision I currently have installed (5.9.11) has no 
changelog entry. Im not sure its worth working around this problem. 
Comment 13 Brandon Low (RETIRED) gentoo-dev 2002-09-18 20:45:56 UTC
Well since this is now a portage patch, it is all your Daniel.
Comment 14 Brandon Low (RETIRED) gentoo-dev 2002-12-16 20:45:44 UTC
this is to remind you to poke this with a stick, carpaski :)
Comment 15 Brandon Low (RETIRED) gentoo-dev 2002-12-16 20:50:48 UTC
*** Bug 11696 has been marked as a duplicate of this bug. ***
Comment 16 Nicholas Jones (RETIRED) gentoo-dev 2002-12-18 02:34:54 UTC
In cvs for .46
thanks