Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 6124

Summary: see-changelogs
Product: Portage Development Reporter: Paul Belt <gaarde>
Component: CoreAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED FIXED    
Severity: enhancement CC: drobbins, lostlogic, stocke2, thecoop, toby, vapier
Priority: High    
Version: 2.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Shows changelogs found in an ebuild after unpacking
emerge.diff; changes to portage 2.0.36 to add --changelog
example output of "emerge --changelog --pretend"
emerge.diff revision 2

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