Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54455 - Genkernel does not create .config.bak, though it says it does.
Summary: Genkernel does not create .config.bak, though it says it does.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-06-19 14:18 UTC by M. Creidieki Crouch
Modified: 2004-07-12 14:28 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 M. Creidieki Crouch 2004-06-19 14:18:25 UTC
I emerge'd the new linux-2.6.7-gentoo sources, changed my /usr/src/linux simlink to point to them, and then copied my .config from my linux-2.6.5-gentoo-r1 directory.  When I type "genkernel all", it then says

"
* Gentoo Linux Genkernel; Version 3.0.2a
* Compiling Linux Kernel 2.6.7-gentoo for x86...
 
* kernel: >> Running mrproper...
* config: Using config from /usr/share/genkernel/x86/kernel-config-2.6
*         Previous config backed up to .config.bak
"

However, .config.bak is not created, because the make mrproper has already deleted it.

Reproducible: Always
Steps to Reproduce:




######] emerge info
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/home/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/home/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm avi berkdb cdr cjk crypt cups divx4linux doc dvd emacs encode
esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad
mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png
python qt quicktime readline sdl slang spell ssl svga tcpd tetex tiff truetype
unicode usb videos x86 xml2 xmms xv xvid zlib"
 
######] emerge -p genkernel gentoo-dev-sources
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild   R   ] sys-kernel/genkernel-3.0.2a
[ebuild   R   ] sys-kernel/gentoo-dev-sources-2.6.7
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-06-19 15:26:32 UTC
Okay; can you try this patch on /usr/share/genkernel/gen_configkernel.sh and tell me if it works?

Below 'cd "${KERNEL_DIR}" || gen_die "Could not switch to the kernel directory!"' add 'isTrue "${CLEAN}" && cp "${KERNEL_DIR}/.config" "${KERNEL_DIR}/.config.bak" > /dev/null 2>&1' and remove the 'cp "${KERNEL_DIR}/.config" "${KERNEL_DIR}/.config.bak"' line further down...

Thanks.
Comment 2 M. Creidieki Crouch 2004-06-19 15:36:22 UTC
That worked!  Thanks.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-07-12 14:28:48 UTC
Now fixed with genkernel 3.0.2c, it should reach Portage within an hour. Thanks!