Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14918 - emerge --changelog does not cope with non-existent changelogs
Summary: emerge --changelog does not cope with non-existent changelogs
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-01 10:43 UTC by Alex Walker
Modified: 2011-10-30 22:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Walker 2003-02-01 10:43:02 UTC
I know that all packages should have Changelogs, but I also think that emerge should cope with 
the possibility that they might.  I have the kde-cvs ebuilds in /usr/local/portage/ and they don't 
come with ChangeLog files.  Arguably this is a flaw in those ebuilds, I suppose.	 

Reproducible: Always
Steps to Reproduce:
1. Install kde-cvs ebuilds in portage overlay directory 
2. do `emerge -up kdepim --changelog` (assuming you have kde installed already) 
 
Actual Results:  
$ emerge -up kdepim --changelog 
 
These are the packages that I would merge, in order: 
 
Calculating dependencies ...done! 
Traceback (most recent call last): 
  File "/usr/bin/emerge", line 1563, in ? 
    mydepgraph.display(mydepgraph.altlist()) 
  File "/usr/bin/emerge", line 784, in display 
    x[2] 
  File "/usr/bin/emerge", line 831, in calc_changelog 
    changelog = open(changelogpath).read() 
IOError: [Errno 2] No such file or directory: '/usr/local/portage/kde-base/kdepim/ChangeLog' 
 

Expected Results:  
Could it check if the file exists before trying to read it?  Or could it at least die gracefully? 

$ emerge info 
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3) 
================================================================= 
System uname: 2.4.20-gentoo-r1 i686 Pentium III (Coppermine) 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/kde/cvs/share/config /usr/kde/3.1/share/config /usr/share/config 
/opt/quake3/cpma/server.cfg" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/store/distfiles" 
PKGDIR="/store/packages" 
PORTAGE_TMPDIR="/store/portage-tmp" 
PORTDIR_OVERLAY="/usr/local/portage" 
USE="x86 oss 3dnow apm libg++ mikmod nls zlib gtkhtml gdbm berkdb slang aalib nas guile 
mysql X libwww ldap cdr scanner mmx sse nocardbus cups slp x dgs opengl xv kde qt qtmt arts 
gnome gtk gtk2 bonobo evo gtk-html motif tcltk imlib ncurses readline sdl svga lcms gif jpeg 
png tiff avi mpeg quicktime alsa esd dvd xmms oggvorbis flash encode pam ssl crypt imap 
maildir mbox tcpd mozilla spell truetype xml xml2 pdflib tetex java perl python samba smooth 
gpm" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 
-fprefetch-loop-arrays" 
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 
-fprefetch-loop-arrays" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-02-03 07:11:22 UTC
taken care of in 2.0.46-r10
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-02-03 07:11:30 UTC
taken care of in 2.0.46-r10