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

Bug 31177

Summary: genkernel 1.8 repeatedly overwrites /var/log/genkernel.log
Product: Gentoo Hosted Projects Reporter: John Altstadt <altstadt>
Component: genkernelAssignee: John Davis (zhen) (RETIRED) <zhen>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: Patch for genkernel-1.8

Description John Altstadt 2003-10-14 22:05:10 UTC
The function compile() in the genkernel bash script uses single '>' redirection
for the various calls to make, each time overwriting the log file. Simply
replacing the first '>' in each line with '>>' for the 2nd, 3rd, and 4th calls
to make results in a useful log file.

Reproducible: Always
Steps to Reproduce:
1. Run genkernel during the system installation process.
Actual Results:  
The log file only contained the results of the last make command.

Expected Results:  
Each make command should have appended to the log file.

Portage 2.0.49-r13 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.23_pre6-gss-r1)
System uname: 2.4.23_pre6-gss-r1 i686 AMD Duron(tm) Processor
Gentoo Base System version
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
FEATURES="sandbox ccache autoaddcvs"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm jpeg kde gnome
libg++ libwww mad mikmod mpeg ncurses nls oggvorbis pdflib png qt quicktime sdl
spell svga truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo
X tcpd pam ssl python esd imlib gtk motif opengl apache2 doc emacs gd guile imap
-ldap maildir mozilla mysql odbc perl samba sasl slp tcltk tiff usb xml zeo"
Comment 1 Alexander Papaspyrou 2003-10-16 08:55:18 UTC
Created attachment 19322 [details, diff]
Patch for genkernel-1.8

Fixes stated behaviour. Please review and commit upstream.
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2003-10-19 23:24:08 UTC
I will fix this immediately
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2003-10-22 19:24:22 UTC
I checked the source code and the log files, and it looks like this was fixed
awhile ago, but the bug was never closed.
Comment 4 Alexander Papaspyrou 2003-11-03 04:21:37 UTC
I think we should backport the fix to genkernel-1.8, as >=genkernel-1.9 is
still unstable (~x86) *and* masked.